NRAO Home > CASA > CASA Cookbook and User Reference Manual
1.4.5.8 The .last file

Whenever you successfully execute a CASA task, a Python script file called <taskname>.last will be written (or over-written) into the current working directory. For example, if you ran the listobs task as detailed above, then

CASA <14>: vis = ’ngc5921.ms’  
 
CASA <15>: verbose = True  
 
CASA <16>: listobs()  
 
CASA <17>: !more ’listobs.last’  
IPython system call: more listobs.last  
taskname           = "listobs"  
vis                =  "ngc5921.ms"  
verbose            =  True  
listfile           =  ""  
#listobs(vis="ngc5921.ms",verbose=False,listfile="")

You can restore the parameter values from the save file using

CASA <18>: execfile(’listobs.last’)

or

CASA <19>: run listobs.last

Note that the .last file in generally not created until the task actually finished (successfully), so it is often best to manually create a save file beforehand using the saveinputs command if you are running a critical task that you strongly desire to have the inputs saved for.


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