Update dimensions metadata when resampling a map #1870
Labels
Effort Medium
Requires a moderate time investment
map
Affects the map submodule
Package Novice
Requires little knowledge of the internal structure of SunPy
Priority Low
Slow action required
Currently, after resampling a map, the
naxis1
andnaxis2
entries in the metadata, which hold the dimension of each axis, are not updated. See the resample method insunpy/map/mapbase.py
.This should be just a matter of adding two lines in the update metadata section of the resample method.
See example below
Map from sample data. Note that the metadata gives the x and y dimensions as 1024 and that it gives the same output as the
dimensions
property.Now resample the map to 100-by-100 pixels
So after resampling, the metadata remains unchanged though the dimensions are updated with the resampling.
Though maybe the original resolution of the map should be preserved in the metadata.
The text was updated successfully, but these errors were encountered: