spacetelescope / nircam_calib

A collection of software for creating NIRCam reference files, pipeline testing, etc.
2 stars 15 forks source link

Add reformat code #89

Closed aliciacanipe closed 5 years ago

aliciacanipe commented 5 years ago

I'm adding a modified version of Matt Hill's DMS to FITSwriter tool that I updated.

I removed the configparser dependency in favor of a YAML config file to be able to add any missing headers (not just mnemonic headers) and preserve the header data types. I am also adding a script to create the input YAML file with the mnemonics or header keywords to add to the reformatted exposure.

The DMS to FITSwriter tool has the functionality to use the engineering database built in to add mnemonic headers, but it will need to be modified slightly once the database is ready to use.

aliciacanipe commented 5 years ago

I'm going to go ahead and merge this since I'm just adding new scripts to the commissioning repo that isn't being used yet.