What global variables are available in scriptForPI.py?
Posted by Erica Keller, Last modified by Sarah Wood on 09 February 2017 09:46 PM
The global variables SPACESAVING and USEMS can be set prior to executing scriptForPI.py. The variables can be used independently or in conjunction.
USEMS can be set to use pre-imported measurements sets(MS) rather than import them from the ASDMs in the raw directory. The imported MSs should be in the calibrated directory prior to executing the script. It can be set to either 0 or 1 with the following meaning.
USEMS = 0 same as not set, ASDMs will be imported from the raw directory
= 1 MSs have been pre-imported in the calibrated directory
SPACESAVING limits the disk space usage during and after execution of the script. It can be set to an integer from 0 to 3 with the following meaning.
SPACESAVING = 0 same as not set (all intermediate MSs are kept)
With SPACESAVING=0, the required additional diskspace is up to 14 times as large as the delivered data (products and rawdata) while with SPACESAVING=3 (maximum savings), it is up to 6 times as large. The script will estimate the required disk space and will not execute if there is not sufficient free space available.
For example, after initiating CASA in the script directory, the following commands would use pre-imported MSs and and the highest degree of spacesaving.
SPACESAVING = 3
USEMS = 1