Closed zkbt closed 6 years ago
@hdiamondlowe, looking a bit at your IMACS branch, I think you have IMACS-specific createStitched
and lots of CCD management stuff inside CCD.py
and Calibration.py
. Ultimately (long-term, no rush), it'd be great if we could move those into the IMACS.py definition, so that they don't affect other spectrographs. This is not urgent at all, but I thought I'd mention it here, while this was fresh from just having done it with DIS
.
OK, @hdiamondlowe, as we discussed, I've moved my createStitched
back to CCD.py
. I think all you need to do now is use IMACS.py
to define IMACS-specific instrument functions for loadSingleCCD
(I used to call this loadAndTrim
, and it's basically your stitchChips
), darkexptime
, and gain
.
I think we have DIS, LDSS, and IMACS nicely separated. Each of these can also be a template for adding future instruments if we like!
In CCD.py, the createStitched function assumes there are two amplifiers and a particular geometry for how they're stitched together. This would have to be generalized.
Some aspects of the detector geometry are defined in .obs files. That would have to be modified for other cameras. Also, the gain.
The wavelength calibration guess files depend on the grism specified in the .obs file. New guess files would have to be generated for a different spectrograph.