Running a MIR Calibration Script
The linked MIR calibration script is still under development and should be used as a guide only. The example below shows how to run such a script from the command line.
Script: calibratesmaswarm
This script requires three arguments:
(1) the path to the data
(2) the data directory name
(3) the rechunk factor (1 if not rechunked)
Here the output is piped to tee
so the output is written both the screen and a log file.
$ idl -e calibratesmaswarm -args /sma/data/science/mir_data.2017/ 170101_12:01:01 8 | tee mylog.txt
To run this test script you will need three external files: planets.txt, gaincallist-1mmnoflux, and bandpasscalibrators.txt.
This particular script also requires you to create an output directory in your cwd. This should be the data directory name (as provided as arg 2), but without any colons.
Examples
(1) Data directory is in your working directory and has been rechunked by a factor of 8.
$ idl -e calibratesmaswarm -args /path/to/cwd/ 170101_12:01:01rebin 8
(2) Data directory is called from the SMA archive. It has not been rechunked.
$ idl -e calibratesmaswarm -args /sma/data/science/mir_data.2017/ 170101_12:01:01 1