An application to generate CAOM2 Observations from CFHT FITS files for the instruments MegaPrime, WIRCam, SPIRou, SITELLE, and ESPaDOnS.
In an empty directory (the 'working directory'), on a machine with Docker installed:
- In the master branch of this repository, find the scripts directory, and copy the file cfht_run.sh to the working directory. e.g.:
wget https://raw.github.com/opencadc-metadata-curation/cfht2caom2/master/scripts/cfht_run.sh
- Ensure the script is executable:
chmod +x cfht_run.sh
- To run the application:
./cfht_run.sh
-
The
config.ymlfile is configuration information for the ingestion. This file will be created in the executing directory the first time the scriptcfht_run.shis run. It will work with the files names and described here. For a complete description of its content, see https://github.com/opencadc-metadata-curation/collection2caom2/wiki/config.yml. -
The ways to tell this tool the work to be done:
- provide a file containing the list of file names to process, one per line, and the
config.ymlfile containing the entriesuse_local_filesset toFalse. The 'todo' file is provided as a file namedtodo.txtin the working directory, as specified inconfig.yml. - provide the files to be processed in a list of
data_sourcesdirectories (may be a list of length 1), and theconfig.ymlfile containing the entriesuse_local_filesset toTrue
If the
storetask type is present, the files will be transferred to CADC, and stored in theCFHTarchive. Ifuse_local_filesis set toTrue, andstore_newer_files_onlyis also set toTrue, only newer files will be transferred to CADC. - provide a file containing the list of file names to process, one per line, and the