I just merged a change to the metadata translation command line which should make things a little easier. Previously, when you wanted to translate an LSSTCam header you would have to say:
$ astrometadata -p lsst.obs.lsst.translators translate *.fts
The -p
option can be a bit laborious to type and gets even harder if you are wanting to use the fiber spectrograph or generic camera. With the new changes you can now type:
$ astrometadata -p obs_lsst translate *.fits
and hopefully that is easier to remember (similarly for obs_fiberspectrograph
and obs_rubinGenericCamera
).
Furthermore, if you forget what you should type you can use the new --list-plugins
option:
$ astrometadata --list-plugins
Builtin translators:
- DECam
- HSC
- MegaPrime
- SDSS
- SuprimeCam
Available translator plugins grouped by label (use '-p <label>' to activate):
* obs_fiberspectrograph:
- FiberSpectrograph
* obs_lsst:
- LSSTCam
- LSST_LATISS
- LSSTComCam
- LSSTComCamSim
- LSSTCamSim
- LSSTCam-imSim
- LSST-UCDCam
- LSSTCam-PhoSim
* obs_rubinGenericCamera:
- StarTrackerNarrow
- StarTrackerWide
- StarTrackerFast
I considered pre-loading all the translators behind the scenes but this would have significantly impacted performance for non-LSST translations since it takes quite a long time (multiple seconds) to load the obs_lsst
packages.