nraonrao
 
 NRAO Home > CASA > CasaDocument
image.setmiscinfo - Function

1.1.1 Set the miscellaneous information record for an image
Description

A CASA image file can accumulate miscellaneous information during its lifetime; it is stored in a record called the miscinfo record. For example, the FITS reader (fromfits) puts header keywords it doesn’t otherwise use into the miscinfo record. The miscinfo record is not guaranteed to have any entries, so it’s up to you to check for any fields that you require.

This function sets the miscinfo record of the image file. Note that this function replaces the record, it doesn’t add to it, so if you want to augment the existing record, you should first capture it with the miscinfo function, add to the record, and then put it back. The FITS writer will attempt to write all the fields in the miscinfo record to the FITS file. It can do so for scalars and 1-dimensional arrays. Records will be omitted, and multi-dimensional arrays will be flattened into 1-dimensional arrays.

Arguments





Inputs

info

Miscellaneous REPLACEMENT header

allowed:

any

Default:

record

Returns
bool

Example

"""  
#  
print "\t----\t setmiscinfo Ex 1 \t----"  
ia.maketestimage(’myfile’,overwrite=true)  
info = ia.miscinfo()            # capture the miscinfo record  
info[’extra’] = ’a test entry’  # add our information  
ia.setmiscinfo(info)            # put it back into the image  
ia.close()  
#  
"""

Please send any comments or questions about CASA or AIPS++ to aips2-requests@nrao.edu

Copyright © 2007 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

Updated daily during alpha development.