NRAO Home > CASA > CASA Toolkit Reference Manual
image.sethistory - Function

1.1.1 Set the history for an image


Description

A CASA image file can accumulate history information from an input FITS file or by you writing something into it explicitly with this function. Each element of the input vector is one line of history. The new history is appended to the old.

You can recover the history information with function history.

Arguments





Inputs

origin

Used to set message origin. Default is image::sethistory.

allowed:

string

Default:

history

New history

allowed:

stringArray

Default:

Returns
bool

Example

 
 
"""  
#  
print "\t----\t sethistory Ex 1 \t----"  
ia.maketestimage(’myfile’,overwrite=true)  
h = ia.history()  
# Adds three lines, ’I’, ’like’ and ’fish’  
ia.sethistory(origin="sethistory", history=["I","like","fish"])  
ia.close()  
#  
"""  
 

__________________________________________________________________


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

Copyright 2016 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