Do not replace "DN" with "ct" in Map.unit
#7544
Labels
Discussion
An issue opened for, or undergoing discussion.
io
Affects the io submodule
map
Affects the map submodule
Priority Low
Slow action required
Provide a general description of the issue or problem.
Currently, when parsing the unit from a
Map
, we replace any use of "DN" inMap.unit
with "ct"/"count",sunpy/sunpy/map/mapbase.py
Lines 727 to 742 in 0886efa
The logic here is that "DN" is not a recognized unit in the FITS standard so we shouldn't allow it as a valid value for the
BUNIT
key. However, I think there are three reasons we should NOT be making this replacement:astropy.io.fits
can write and read files with "DN" in theBUNIT
key without issue.The text was updated successfully, but these errors were encountered: