How to build ALMA TelCal on the CV Lustre cluster

TelCal is the software executed online during ALMA observations to compute things like Tsys spectra and pointing solutions. Its tasks can be executed offline on JAO machines like osf-red and the scops cluster. It is built against an older, static version of CASA (4.1). An old version of TelCal (from June 2014) exists on the CV cluster and was built against that same version of CASA.

How to execute the old version of TelCal contained in the Lustre "image", you do the following:

  1. bash
  2. source /lustre/naasc/opt/services/telcal/telcal_env.sh
  3. casapy-telcal
  4. CASA <2>: execfile(os.getenv('CASA_TELCAL'))

The following instructions document how Todd installed this week's current version (July 17, 2015) in his area on Lustre.

How to install the newest version of TelCal (updated weekly in Chile):

  1. Make a local copy of the casapy-stable-41.0.22971-001-64b contained in the Lustre "image". (This step should only need to be performed the first time, and it will work until JAO updates the version of CASA linked with TelCal.)
    1. mkdir /lustre/naasc/thunter/telcal
    2. cd /lustre/naasc/thunter/telcal
    3. rsync -vau /lustre/naasc/opt/services/telcal/casapy-stable-41.0.22971-001-64b .
  2. Copy the current tarball version of TelCal from Chile
    1. ssh login.alma.cl
    2. ssh sciops02
    3. cd /opt/telcalsa/current/telcalsa
    4. rsync -vau telcalsa-*bz2 polaris:/lustre/naasc/thunter/telcal/casapy-stable-41.0.22971-001-64b/
  3. Unpack it on Lustre
    1. cd /lustre/naasc/thunter/telcal/lcasapy-stable-41.0.22971-001-64b/
    2. bzip2 -d telcalsa-*bz2
    3. cd telcalsa-20150717-2014-06-b-64b
  4. Follow the instruction in the INSTALL file
    1. ./telcalsa-install.sh -v --casa-dir ../
  5. To import telcal tasks automatically into casapy-telcal, add the following to your ~/.casa/init.py. This will work for as long as the linked version stays with casa 4.1.
    • if (casadef.casa_version < '4.2'):
      execfile(os.getenv('CASA_TELCAL'))
  6. Create shell script called /lustre/naasc/thunter/telcal/telcal_env_todd.sh with the following contents:
# The following 2 lines will only need to be changed if JAO upgrades the
# CASA version to which Telcal is linked.
CASA_ROOT=/lustre/naasc/thunter/telcal/casapy-stable-41.0.22971-001-64b
CASA_DIR=/lustre/naasc/thunter/telcal/casapy-stable-41.0.22971-001-64b

CASAPATH=${CASA_ROOT}
export INTROOT SCIPIPE_LOGDIR SCIPIPE_SCRIPTDIR JAVA_OPTIONS
export SCIPIPE_HEURISTICS SCIPIPE_ROOTDIR CASAPATH ACSROOT CASA_ROOT CASA_DIR
PATH=$CASAPATH:$PATH
MATPLOTLIBRC=$HOME/.casa/matplotlib
export PATH MATPLOTLIBRC
export PATH=/lustre/naasc/thunter/telcal/casapy-stable-41.0.22971-001-64b/telcalsa-20150717-2014-06-b-64b/bin:$PATH
export LD_LIBRARY_PATH=/lustre/naasc/thunter/telcal/casapy-stable-41.0.22971-001-64b/telcalsa-20150717-2014-06-b-64b/lib:$LD_LIBRARY_PATH

Finally, to run this new version, do the following:
  1. bash
  2. source /lustre/naasc/thunter/telcal/telcal_env_todd.sh
  3. casapy-telcal

Location of Telcal source code:

-- ToddHunter - 2015-07-20
Topic revision: r2 - 2017-05-19, ToddHunter
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback