Masking HMI based on the intensity of AIA#
In this example we will demonstrate how to mask out regions within a HMI image based on the intensity values of AIA.
We will use an AIA 171 image from the sample data and crop it to capture a region of interest.
Now we will identify separate regions below a threshold in the AIA Map.
In this case, we want the darker patches that have pixel values below 200.
skimage, we can
and calculate the properties of each region using
Now to plot and label the first 7 regions seen in AIA with the region “0” being the largest.
Now let’s plot those same regions on the reprojected HMI Map.
<matplotlib.colorbar.Colorbar object at 0x7f2e0bc75120>
Now we have the regions, we need to create a new HMI map that masks out everything but the largest region.
To do so, we need to create the mask from the bounding box returned by
Finally, plot the largest HMI region.
Total running time of the script: (0 minutes 1.119 seconds)