Difference between revisions of "Analysis Utilities"

From CASA Guides
Jump to: navigation, search
(Created page with "Analysis Utilities (or analysisUtils for short) is a small set of Python source code files that provide a number of analysis and plotting utilities. The utilities were developed...")
 
Line 9: Line 9:
 
</source>
 
</source>
  
Edit your casapy init file in $HOME/.casa/init.py, and add the following
+
Edit your casapy init file in <tt>$HOME/.casa/init.py</tt>, and add the following
  
 
<source lang="Python">
 
<source lang="Python">
 
import sys
 
import sys
sys.path.append("/PATH_TO_ANALYSIS_SCRIPTS/")
+
sys.path.append("/PATH_TO_ANALYSIS_SCRIPTS")
 
import analysisUtils as au
 
import analysisUtils as au
 
</source>
 
</source>
  
Then, start casapy and you will have access to all Analysis Utilities functions described below.
+
where <tt>/PATH_TO_ANALYSIS_SCRIPTS</tt> is the path to the directory you just extracted from the tar ball.  When this is done, start casapy and you will have access to all Analysis Utilities functions described below.

Revision as of 13:38, 15 December 2011

Analysis Utilities (or analysisUtils for short) is a small set of Python source code files that provide a number of analysis and plotting utilities. The utilities were developed for ALMA data reduction and are, in many cases, also useful for EVLA data reduction.

Getting Started

First, download Analysis Utilities from LINKHERE and extract the tar ball. From a Unix command line this can be done with

$ tar xvf analysis_scripts.tar

Edit your casapy init file in $HOME/.casa/init.py, and add the following

import sys
sys.path.append("/PATH_TO_ANALYSIS_SCRIPTS")
import analysisUtils as au

where /PATH_TO_ANALYSIS_SCRIPTS is the path to the directory you just extracted from the tar ball. When this is done, start casapy and you will have access to all Analysis Utilities functions described below.