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/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.yml
file is configuration information for the ingestion. This file will be created in the executing directory the first time the scriptcfht_run.sh
is run. It will work with the files names and described here. For a complete description of its content, see https://github.com/opencadc/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.yml
file containing the entriesuse_local_files
set toFalse
. The 'todo' file is provided as a file namedtodo.txt
in the working directory, as specified inconfig.yml
. - provide the files to be processed in a list of
data_sources
directories (may be a list of length 1), and theconfig.yml
file containing the entriesuse_local_files
set toTrue
If the
store
task type is present, the files will be transferred to CADC, and stored in theCFHT
archive. Ifuse_local_files
is set toTrue
, andstore_newer_files_only
is 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