Application to generate CAOM2 Observations from DAO FITS files.
These are Linux-centric instructions.
In an empty directory (the 'working directory'), on a machine with Docker installed:
Set up credentials. Due to the current state of CADC hosts, proxy certificates will not work, therefore you must use a netrc file.
In the 'working directory', create a file named 'netrc'. This is the expected netrc file that will have the credentials required for the CADC services. These credentials allow the user to read, write, and delete CAOM2 observations, read file header metadata and files from data, and store thumbnails and previews to CADC storage. This file should have content that looks like the following:
machine www.cadc-ccda.hia-iha.nrc-cnrc.gc.ca login canfarusername password canfarpassword
machine www.canfar.net login canfarusername password canfarpassword
machine sc2.canfar.net login canfarusername password canfarpassword
machine ws-cadc.canfar.net login canfarusername password canfarpassword
Replace canfarusername and canfarpassword with your CADC username and password values.
The permissions for this file must be 600 (owner rw only):
chmod 600 netrc
The man page for netrc: https://www.systutorials.com/docs/linux/man/5-netrc/
The name and location of this file may be changed by modifying the netrc_filename entry in the config.yml file. This entry requires a fully-qualified pathname.
In the master branch of this repository, one time only, find the scripts directory, and copy the file dao_run.sh to the working directory. e.g.:
wget https://raw.github.com/opencadc-metadata-curation/dao2caom2/master/scripts/dao_run.sh
Ensure the script is executable, one time only:
chmod +x dao_run.sh
To run the application:
./dao_run.sh
The config.yml file will be created in the 'working directory'. This file controls the execution of the application. See here for a description of the entries in this file.
To debug the application from inside the container:
user@dockerhost:<cwd># docker run --rm -ti -v ${PWD}:/usr/src/app --name dao_run opencadc/dao2caom2 /bin/bash
root@53bef30d8af3:/usr/src/app# dao_run
For some instructions that might be helpful on using containers, see: https://github.com/opencadc-metadata-curation/collection2caom2/wiki/Docker-and-Collections
For some insight into what's happening, see: https://github.com/opencadc-metadata-curation/collection2caom2
In an empty directory (the 'working directory'), on a machine with Docker installed:
wget https://raw.github.com/opencadc-metadata-curation/dao2caom2/master/scripts/dao_run_state.sh
chmod +x dao_run_state.sh
./dao_run_state.sh
Note that the e-transfer script daoFileIngest knows whether or not the files should be compressed before being stored at CADC.
Current active instruments/detectors for "DAO" collection.
I'm ignoring "DAOPLATES" collection which is currently static.
('c' in file name indicated a ccd is the detector; see later text...)
1.2m McKellar Spectrograph
1.8m Cassegrain Spectrograph
1.8m Cassegrain Spectropolarimeter
1.8m Newtonian Imager
Old data with the Reticon detector ('r' in file name).
Limited files so far. Original headers very limited.
1.2m spectra
1.8m spectra
Processed data (limited 'experimental' amounts; any suffix after odometer number indicates it's a processed file)
Spectra
Images
Content type
Image
Digest
sha256:f79fc85b3…
Size
169.2 MB
Last updated
6 months ago
docker pull opencadc/dao2caom2