An application to generate CAOM2 Observations for PHANGS observations.
This container will find all files ending in '.fits' or '.fits.gz', and will attempt to store them at CADC in the PHANGS archive. This container will also create CAOM2 records for the PHANGS collection based on the metadata from these files.
These instructions assume a linux-type environment, with bash syntax.
In a directory (the 'working directory'), on a machine with Docker installed:
-
This is the working directory, so it should be where the .fits/fits.gz files are located.
-
Set up credentials. A CADC account is required (you can request one here: http://www.cadc-ccda.hia-iha.nrc-cnrc.gc.ca/en/auth/request.html) In this directory, run the following command:
user@dockerhost:<cwd># docker run --rm -ti -v ${PWD}:/usr/src/app --name phangs_run opencadc/phangs2caom2 cadc-get-cert --days-valid 10 --cert-filename ./cadcproxy.pem -u canfarusername Password: canfarpasswordThis will create the the proxy certificate credentials required for the CADC services. These credentials allow the user to read, write, and delete CAOM2 observations, and read and write file header metadata and files.
-
Replace canfarusername and canfarpassword with your CADC username and password values.
-
The name and location of this file may be changed by modifying the
proxy_file_nameentry in theconfig.ymlfile. This entry requires a fully-qualified pathname.
-
-
Get the script that executes the pipeline by doing the following:
wget https://raw.github.com/opencadc-metadata-curation/phangs2caom2/master/scripts/phangs_run.sh -
Ensure the script is executable:
chmod +x phangs_run.sh -
To run the application:
./phangs_run.sh -
To debug the application from inside the container:
user@dockerhost:<cwd># docker run --rm -ti -v <cwd>:/usr/src/app --name phangs_run opencadc/phangs2caom2 /bin/bash root@53bef30d8af3:/usr/src/app# phangs_run -
For a description of the
config.ymlfile, see: https://github.com/opencadc-metadata-curation/collection2caom2/wiki/config.yml -
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