Updating_Cdbs

Rationale

This document was written to assist anyone (including myself) who may need to update the cdbs tasks to support new reference files or instruments. Since the calibration pipelines are continually being updated, there is a need to also update the cdbs tasks to track these changes. Although I have tried to make these tasks as independent of instrument specific information as possible, that is not completely possible. This document only describes changes to the cdbs tasks, it does not describe the changes to the cdbs database which are also necessary. I will continue to update this document as I discover more dependencies on instrument specific information.

Key assumptions

When the new version of the cdbs tasks were written, certain key assumptions were made in its design. Violating these assumptions may require rewriting significant of the cdbs code and I hope this can be avoided. The current cdbs code assumes that:

Adding Reference Files

If a new reference file is added to cdbs, the data files in the data subdirectory must be modified. A new entry must be made in the file cdbscatalog.dat for both the reference file and its associated loadfile. And template files must be contructed for the reference file and its associated loadfile. This change to cdbscatalog.dat is necessary so that the cdbs tasks can properly identify the file and the template files are necessary so that certify can be run on the new files.

Adding a New Instrument

If a new instrument is added, additional changes are needed to cdbs beyond the changes necessary for any of its new reference files.


Back to index of cdbs tasks.