Edge Enhancing Coronal Loops#

How to edge enhance coronal loops in an SDO/AIA image.

import matplotlib.pyplot as plt
import numpy as np
from scipy import ndimage

import astropy.units as u
from astropy.coordinates import SkyCoord

import sunpy.map
from sunpy.data.sample import AIA_171_IMAGE

We start with the sample data and crop it down to a region featuring coronal loops.

Next we apply an edge enhance filter to the data in both x and y directions and combine the two images together.

sx = ndimage.sobel(aia_smap.data, axis=0, mode='constant')
sy = ndimage.sobel(aia_smap.data, axis=1, mode='constant')
edge_enhanced_im = np.hypot(sx, sy)

Finally we create a new map with the edge enhanced data.

Let’s plot the results.

AIA $171 \; \mathrm{\mathring{A}}$ 2011-06-07 06:33:02

Total running time of the script: (0 minutes 0.171 seconds)

🏷 Tags: Computer Vision, Coronal Loops, AIA, Map, Coordinates

Gallery generated by Sphinx-Gallery