NRAO Home > CASA > CASA Toolkit Reference Manual
quanta.getformat - Function

1.5.1 get current output format (NOT IMPLEMENTED YET!)


Description

getformat returns the current format value set for the different format possibilities. See the setformat function for the different format type descriptions. The known types are:
prec, aprec, tprec, long, lat, len, dtime, elev, auto, vel, freq, dop, unit.

Arguments





Inputs

t

type - coded string

allowed:

string

Default:

Returns
string

Example

 
 
"""  
#  
print "\t----\t getformat Ex 1 \t----"  
print qa.getformat(’prec’)  
#6  
#setformat is NOT IMPLEMENTED YET!  
#qa.setformat(’prec’, 12) # set precision to 12 significant digits  
#T  
#print qa.getformat(’prec’)  
#12  
print qa.getformat(’long’)  
#hms  
#  
"""  
 

__________________________________________________________________


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