blob: 80c1d46ebfae3dea5d083da2d6b2d02717632183 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--- a/examples/arrayanimatorwcs.py 2025-03-13 08:52:10.000000000 +0800
+++ b/examples/arrayanimatorwcs.py 2025-03-16 14:12:19.155765820 +0800
@@ -13,7 +13,7 @@
from astropy.visualization import AsinhStretch, ImageNormalize
import sunpy.map
-from sunpy.data.sample import AIA_171_IMAGE, AIA_193_IMAGE
+#from sunpy.data.sample import AIA_171_IMAGE, AIA_193_IMAGE
from sunpy.time import parse_time
from mpl_animators import ArrayAnimatorWCS
@@ -27,7 +27,9 @@
# The easiest method for the array is to create a `~sunpy.map.MapSequence`.
# Here we only use two files but you could pass in a larger selection of files.
-map_sequence = sunpy.map.Map(AIA_171_IMAGE, AIA_193_IMAGE, sequence=True)
+# Use local fits if no network while doc building
+#map_sequence = sunpy.map.Map(AIA_171_IMAGE, AIA_193_IMAGE, sequence=True)
+map_sequence = sunpy.map.Map("AIA20110607_063302_0171_lowres.fits", "AIA20110607_063307_0193_lowres.fits", sequence=True)
# Now we can just cast the sequence away into a NumPy array.
sequence_array = map_sequence.as_array()
|