NRAO Home > CASA > CASA Cookbook and User Reference Manual

A.4 Startup Customization

There are two initialization files that are loaded upon startup. The first is loaded very early in the startup of casapy:

~/.casa/prelude.py

This allows for limited customization of the casapy environment, e.g. setting the path to an alternate logger. The second startup file should be used for most purposes:

~/.casa/init.py

This file is loaded just before the casapy prompt is display. This is the place where users can load their own python modules and casa tasks. For example  /.casa/init.py might contain:

import os  
sys.path.insert(1,os.environ[’HOME’]+os.sep+"python")  
import analysisUtils as aU

and analysisUtils.py might contain:

import numpy as np  
from mpfit import mpfit  
from pylab import *  
from numpy.fft import fft  
from scipy import polyfit  
import taskinit as ti  
from importasdm import importasdm  
 

Many options can also be set in the file

~/.casarc

E.g.

#  
# Set these so that bug(), ask(), etc. know who you are  
#  
userinfo.name:  Sheila User  
userinfo.email: suser@nrao.edu  
userinfo.org:   NRAO  
 
#NOTE: Fill this value in as appropriate - the units are MB  
#It is important that you not set this value larger than your actual  
#physical memory  
#system.resources.memory: 2000  
#help.popup.type: mb3long  
 
#catalog  
catalog.gui.auto:       T  
catalog.confirm:        T  
catalog.view.PostScript:        ghostview  
catalog.edit.ascii:             xterm -e vi  
 
#logger  
#logger.file:    ./aips++.log  
#logger.height:  12  
logger.default: screen  
 
 
#progress meter GUI pop-ups - disable  
progress.show: F  
 
#toolmanager - disable  
toolmanager.gui.auto:   F  
 
 
#Use current working directory for cache/scratch files  
user.aipsdir: .  
user.cache: .  
user.directories.work:  .  
user.initfiles: almainit.g  
 
#viewer  
display.axislabels: on  
display.colormaps.defaultcolormap: Hot Metal 1  
 
#development  
 
#ms.async: ddd ./ms %s


More information about CASA may be found at the CASA web page

Copyright © 2010 Associated Universities Inc., Washington, D.C.

This code is available under the terms of the GNU General Public Lincense


Home | Contact Us | Directories | Site Map | Help | Privacy Policy | Search