CDBDSK

Summary

This command installs calibration reference files and tables, listed by rootname in a release catalog, in the reference file directories if there is sufficient disk space.  The installation can consist of converting incoming files from FITS to GEIS format when necessary and moving new files to the reference file directories.
 

Description

Reads each release catalog identified by the first command line argument, and verifies that reference files/tables listed in the catalog can be found on disk in either the incoming (CDB_RETRIEVAL_DIR) or reference file directories.  The reference file directories are defined by environment variables (logicals) in opus_login (e.g. uref, nref, mtab, ttab, etc.)  If files are found for every catalog entry, then a disk check is performed to ensure that there is sufficient disk space in each of the reference file directories to hold the files in the catalog installation.  If all file checks and disk space checks succeed, the files are copied and/or converted from the incoming directory to the reference file directories.  Resource items (CDB_PIPELINE_CAL_*) indicate the file type required by the pipeline for each reference file/table type.  If the pipeline file type needed is GEIS and the incoming file is FITS, then the STSDAS task strfits is run to perform the conversion.  If the pipeline requires FITS format and the incoming file is FITS, then the file is just moved into the reference file directory.
 

Usage

cdbdsk release_name path_name The flags (preceded by a dash '-') are optional and can be specified in any order by any number of unique characters (e.g. -localfiles, -loc, -l are treated equally). The positional parameters 'release_name' and 'path_name' are required and MUST occur in the order listed.

 

Input

Output

Constraint

        The FITS-to-GEIS conversion task strfits will not overwrite an existing file with the same name in a reference file directory.  A mangled name is used for the resulting file (usually a numeric string like "_01" is appended to the filename).   This is done by the IRAF software that runs under strfits.   Existing files with the same name will not occur under normal pipeline operation, but if you are attempting to install a catalog that might have been attempted before, carefully check the output messages for indications that file renaming occurred.
 

Resource File

Required Command-Line Arguments

Optional Command-Line Arguments

Examples