astroumd / lmtoy

Toy Codes for LMT
https://www.astro.umd.edu/~teuben/LMT/lmtoy/html/
0 stars 2 forks source link

SDFITS files in LMTOY #53

Open teuben opened 1 week ago

teuben commented 1 week ago

There has been a long standing desire to export our calibrated spectra as an SDFITS file.

The gridder that can read sdfits has been writting (slgridder), but may have diverged in places with the current spec_driver_fits, which reads the old style netCDF file.

There is a script (sp2sdfits) to convert a FITS spectrum into an SDFITS file, but this is probably not the ideal export format for simple spectra. Perhaps useful for RSR spectra?

teuben commented 3 days ago

new proposal: let each instrument enumerate the files that need to go into the _SDFITS.zip file for archiving. wildcards are allowed. For RSR, in order to avoid a nearly empty ZIP file, use an upgraded version of sp2sdfits that implements the --rsr option.