sunpy/sunpy — Issue #91: submap does not update the header information
Author: ehsteve
Created: 2011-11-13 00:16:17+00:00
State: open

Though the code seems to be in place to update the header information (on lines 309 to 314 in basemap.py) when inspecting the final map the header is not updated. Perhaps the header is not copied into the new map? Here is some code.

aia = sunpy.Map(sunpy.AIA_171_IMAGE)
aia_small = aia.submap([-200,300], [-200, 300], units = 'arcseconds')
aia_small.yrange
# result is
# [-250.80000000000004, 248.39999999999995]
aia_small.xrange
# result is
# [-250.80000000000004, 248.39999999999995]
aia_small.header.get('naxis1')
# result is
# 1024