-
Notifications
You must be signed in to change notification settings - Fork 88
CasaAipsRC
- summary Defining and finding runtime casacore variables.
- labels Featured
It is possible to define runtime variables (e.g. the path of the Measures data files) by means of so-called casarc (aipsrc) resource files, which resemble a file like .
Class Aipsrc searches variables in the resource files until a match is found. The resource files to be looked at can be defined in the environment variable CASARCFILES. If undefined, the resource files searched are (in the following order):
* ~/.casarc * ~/.aipsrc * $AIPSROOT/.aipsrc * $AIPSHOST/aipsrc * $AIPSSITE/aipsrc * $AIPSARCH/aipsrc
The aipsrc files are still present to support the old *aips++* way used by casapy.
The variables in these files are defined as a *keyword: value* pair per line, where the keyword can be a dot-separated name. Each part of the name can be wildcarded using an asterisk.
The Measures module is the greatest user of these variables, in particular to know where the various tables it needs are located. A typical $HOME/.casarc file could look like:
or explicitly for each table