Drawing the Extent of a WCS#

This example demonstrates how to draw the extent of a WCS on a Map

import matplotlib.pyplot as plt

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

import sunpy.data.sample
import sunpy.map
import sunpy.visualization.drawing

First, load an AIA map and create a submap around a band of active regions.

AIA $193 \; \mathrm{\mathring{A}}$ 2012-06-01 00:00:07
<matplotlib.image.AxesImage object at 0x70966fe2d950>

To show the context of the submap, we can draw the extent of the submap on top of the full-disk map.

AIA $193 \; \mathrm{\mathring{A}}$ 2012-06-01 00:00:07
(<matplotlib.patches.Polygon object at 0x709674eabd90>, None)

Additionally, we can draw the extent of the submap on top of an EUV observation from STEREO A which was separated from SDO by over 116 degrees. Note that using sunpy.visualization.drawing.extent allows for drawing the extent of any WCS which contains two celestial axes.

EUVI-A $195 \; \mathrm{\mathring{A}}$ 2012-06-01 00:05:30

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

🏷 Tags: Map, AIA, WCS, Visualization

Gallery generated by Sphinx-Gallery