Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagetext
titleCLI Arguments
linenumberstrue
collapsetrue
usage: elwaIngest [-h] [-P PROFILE] [-p PATH] [-E EMAIL] filename

ELWA IDIFITS Ingestion, version 4.0.1b1: Initiates an ingestion workflow to attach the  provided
    IDIFITS file to its corresponding EVLA EB

positional arguments:
  filename              Filename(s) to ingest

optional arguments:
  -h, --help            show this help message and exit
  -P PROFILE, --profile PROFILE
                        profile name to use, e.g. nmtestdsoc-test, mnproddsoc-prod
  -p PATH, --path PATH  Path to the IDIFITS file to ingeste (overrides CAPO setting)
  -E EMAIL, --email EMAIL
                        Optional email address for a completion message

The two path arguments are provided for flexibility, but it is assumed that the default values in the CAPO profiles (dsoc-test, dsoc-prod) are the typical location.  If those paths are correct, the command can then be invoked with:

...

The workflow will stage the file for ingestion and perform some preparatory work.  Then it will call ingestion to set up the metadata and place the files in NGAS (if desired).  There is not currently an external sign of the ingestion (we don't yet display any collection information).  It would be possible to hook the command into a simple feedback utility I've written for other CLIs, so you could get an email about basic success or failure, if that is desired, so I've hooked the utility into a simplistic feedback system I created for another purpose.  You should be provided with the working directory for the ingestion workflow (where the logs for some pieces of the process will show up), and if you provide an email address (-E), you'll get an email about whether the process completed with an error or not.


There are a set of values in the CAPO profiles for use with this workflow: 

...