Requesting cutouts of AIA images from the JSOC#
This example shows how to request a cutout of a series of AIA images from the JSOC.
import os import matplotlib.pyplot as plt import astropy.units as u from astropy.coordinates import SkyCoord from astropy.time import Time from astropy.visualization import ImageNormalize, SqrtStretch import sunpy.coordinates # NOQA import sunpy.map from sunpy.net import Fido from sunpy.net import attrs as a
As this is an example, we have already worked out where we need to crop for the active region we want to showcase.
Now construct the cutout from the coordinates above
above using the
Exporting data from the JSOC requires registering your email first. Please replace this with your email address once you have registered. See this page for more details.
Now we are ready to construct the query. Note that all of this is the same for a full-frame image except for the cutout component. We will download images from a 12 hour interval centered on the time of the above cutout. We request one image every 2 hours.
Results from 1 Provider: 7 Results from the JSOCClient: Source: http://jsoc.stanford.edu T_REC TELESCOP INSTRUME WAVELNTH CAR_ROT -------------------- -------- -------- -------- ------- 2012-09-24T08:56:01Z SDO/AIA AIA_3 171 2128 2012-09-24T10:56:01Z SDO/AIA AIA_3 171 2128 2012-09-24T12:56:01Z SDO/AIA AIA_3 171 2128 2012-09-24T14:56:01Z SDO/AIA AIA_3 171 2128 2012-09-24T16:56:01Z SDO/AIA AIA_3 171 2128 2012-09-24T18:56:01Z SDO/AIA AIA_3 171 2128 2012-09-24T20:56:01Z SDO/AIA AIA_3 171 2128
Submit the export request and download the data.
Export request pending. [id=JSOC_20230921_1386, status=2] Waiting for 0 seconds... 7 URLs found for download. Full request totalling 7MB
Now that we’ve downloaded the files, we can create
MapSequence from them and animate