Adding more metadata to fits files and EISMap #102
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Copied additional header keywords to the
EISCube.meta['mod_index']
. This will automatically propagate the metadata out to any output "fits" file orEISMap
Short list of keywords added:
Also set the uncertainty types of
EISCube
andEISMap
objects toStdDevUncertainty
, since AstroPy still lacks a proper class for measured uncertainties, and added default data masks. (closes #55 and closes #84, respectively)Furthermore, all new fits files created with
export_fits
will now include extra binary tables with the exact observation and exposure time for each raster step (i.e. slit position along the x-axis). Like uncertainties, these arrays are only read when the fits file is loaded directly witheispac.EISMap
. The arrays can be accessed withEISMap.step_date_obs
andEISMap.step_exptime
. Loading the files withsunpy.map.Map
(of just loading older output fits files) will yield estimated times based ondate_obs
anddate_end
.Lastly, added copies of the date keywords to all new fits files with the "_" characters replaced with "-". This gives full compliance with the FITS-4 standard while maintaining the customary keywords used in solar physics and the Hinode mission. (closes #100)