Skip to content

Commit 6fa2a7d

Browse files
Apply suggestion from @Cadair
Co-authored-by: Stuart Mumford <stuart@cadair.com>
1 parent 012f324 commit 6fa2a7d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/changing_resolution_via_reproject.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
# We start by creating an NDCube from sample solar data provided by SunPy.
2121
# Here we use an AIA 171 image, but the same approach can be applied to other datasets, including those with non celestial axes.
2222

23-
image_data = fits.getdata(AIA_171_IMAGE)
24-
image_header = fits.getheader(AIA_171_IMAGE)
23+
image_data = fits.getdata(AIA_171_IMAGE, ext=1)
24+
image_header = fits.getheader(AIA_171_IMAGE, ext=1)
2525
cube = NDCube(image_data, WCS(image_header))
2626

2727
###########################################################################

0 commit comments

Comments
 (0)