Installation and setup

Warning

To use XDGNIRS in the Gemini Virtual Machine, you will have to first copy (or clone) the code to your host machine and copy the folder to the VM (see details here). Then, the .bashrc or .cshrc files below will need to be edited/created inside the VM.

Cloning the Pipeline

The pipeline is hosted on the USNGO’s GitLab. To access it, you must use the ‘git clone’ command. First, move into the directory where you want to store the pipeline, then enter the following command into your terminal.

git clone https://gitlab.com/nsf-noirlab/csdc/usngo/xdgnirs.git

This command will download the entire repository. Alternatively, you can go directly to the code directory in GitLab and click on the download icon directly to the left of the blue Clone icon. You will be given the option to download the directory as a zip file, meaning you will need to unzip it before accessing the code.

Before Running the Pipeline

To use the pipeline, you need to add a couple of lines to your .bashrc or .cshrc files, depending on which shell you use. These files are hidden in your home directory, but can be viewed with the ls -a command. Include the following lines the appropriate file:

.bashrc

1XDGNIRSDIR={PATH_TO}/xdgnirs/code/
2export XDGNIRSDIR
3alias xdpiped="csh ${XDGNIRSDIR}/XDpiped.csh"

.cshrc

1setenv XDGNIRSDIR {PATH_TO}/xdgnirs/code/
2alias xdpiped "csh ${XDGNIRSDIR}/XDpiped.csh"