Skip to content

Application to augment CAOM2 Observations from NEOSSat observations.

License

Notifications You must be signed in to change notification settings

opencadc/neossat2caom2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

neossat2caom2

An application to generate CAOM2 Observations from NEOSSat FITS files.

How To Run NEOSSat

In an empty directory (the 'working directory'), on a machine with Docker installed:

  1. One time only:

    1. In the master branch of this repository, find the scripts directory, and copy the file state.yml to the working directory. e.g.:

      wget https://raw.github.com/opencadc/neossat2caom2/master/scripts/state.yml
      
    2. In the master branch of this repository, find the config directory, and copy the file config.yml to the working directory. e.g.:

      wget https://raw.github.com/opencadc/neossat2caom2/master/config/config.yml
      
    3. In the master branch of this repository, find the scripts directory, and copy the file neossat_run_state.sh to the working directory. e.g.:

      wget https://raw.github.com/opencadc/neossat2caom2/master/scripts/neossat_run_state.sh
      
    4. Ensure the script is executable:

      chmod +x neossat_run_state.sh
      
    5. Set up the file transfer location. neossat2caom2 can be configured to work one of two ways: 1) move files post-transfer 2) leave files in place post-transfer.

      1. For Option (1), there are three directories required: (a) the pick-up directory, (b) the successful transfer directory, and (c) the failed transfer directory.

        1. Create the pick-up directory. If the pick-up directory will have a directory hierarchy, the success and failure locations must be rooted in a separate directory hierarchy. Add the following fragment to the docker run command in neossat_run_state.sh: --mount "type=bind,src=<fully-qualified pick-up directory name here>,dst=/data"
        2. Create the successful transfer directory (default name success). This can be a sub-directory of the pick-up directory, or a different path. If it's a different path, add the following fragment to the docker run command in neossat_run_state.sh: --mount "type=bind,src=<fully-qualified successful transfer directory name here>,dst=/data/success"
        3. Create the failed transfer directory (default name failure). This can be a sub-directory of the pick-up directory, or a different path. If it's a different path, add the following fragment to the docker run command in neossat_run_state.sh: --mount "type=bind,src=<fully-qualified failed transfer directory name here>,dst=/data/failure"
        4. Edit the config.yml file accordingly:
          1. Set use_local_files: True

          2. Set

            data_sources: 
              - data
            
          3. Set

            data_source_extensions: 
              - .fits
            
          4. If the pick-up directory will have a hierarchy, set recurse_data_sources: True. If the success and failure directories are sub-directories of the pick-up directory, this cannot be True.

          5. Set cleanup_files_when_storing: True

          6. Set cleanup_success_destination: /data/success

          7. Set cleanup_failure_destination: /data/failure

      2. For Option (2), there is one directory required: (a) the pick-up directory.

        1. Create the pick-up directory
        2. Add the following fragment to the docker run command in neossat_run_state.sh: --mount "type=bind,src=<fully-qualified pick-up directory name here>,dst=/data"
        3. Edit the config.yml file accordingly:
          1. Set use_local_files: True

          2. Set

            data_sources: 
              - data
            
          3. Set

            data_source_extensions: 
              - .fits
            
          4. If the pick-up directory will have a hierarchy, set recurse_data_sources: True

          5. Set cleanup_files_when_storing: False

  2. The application requires a X509 certificate for authentication and authorization. The following commands will generate a valid 10-day proxy. Note that you will be prompted for the Password:

    docker run --rm -ti --mount "type=bind,src=${PWD},dst=/usr/src/app" opencadc/neossat2caom2 /bin/bash
    cadcops@c34e8321f722:/usr/src/app$ cadc-get-cert --days-valid 10 --cert-file /usr/src/app/cadcproxy.pem -u <CADC User Name>
    Password:
    exit
    
  3. To run the application:

    ./neossat_run_state.sh
    

About

Application to augment CAOM2 Observations from NEOSSat observations.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published