spacetelescope / nircam_calib

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

Initial copy of distortion reffile scripts using pysiaf #106

Closed bhilbert4 closed 4 years ago

bhilbert4 commented 4 years ago

This PR contains updated code that can be used to create imaging mode distortion reference files from pysiaf. Previous versions of this code read in the siaf information from an excel file.

I'm going to wait for the latest siaf update to be delivered to the PRD before testing this code. That delivery should be in the next week or two.

bhilbert4 commented 4 years ago

This code was used to successfully create a new set of distortion reference files for all exposure types and all detectors. One set of files was made for imaging/wfss, another for the coronagraphic bar masks, and another for the coronagraphic round masks. Files have been delivered to CRDS. Note that as of this delivery, the astrometric solution does not have any filter dependence. This will most likely change once we have in-flight data.

Note that I am also putting a copy of these scripts into the spacetelescope/jwreftools repo. This is because I left the metadata in the delivered reference files pointing to that repository, but in practice NIRCam team members come to this repo when looking for reference file scripts.