nraonrao
 
NRAO Home > CASA > CasaRef
quanta.formxxx - Function

1.4.1 Format a quantity using given format, allowed are hms, dms, deg, rad, +deg.
Description

form.xxx (xxx can be lat, long, len, vel, freq, dtime, unit) will format the input into a string using the global format information set by setformat().

Arguments





Inputs

v

value to be converted

allowed:

any

Default:

variant

format

xxx can be hms, dms, deg, rad or +deg

allowed:

string

Default:

dms

Returns
string

Example

"""  
#  
print "\t----\t formxxx Ex 1 \t----"  
#qa.setformat(’freq’,’cm’)  
#T  
#qa.formxxx(’freq’,qa.quantity(’5GHz’))  
#form_xxx NOT IMPLEMENTED YET!  
#5.99584916 cm  
print "Last example, exiting! ..."  
exit()  
#  
"""

__________________________________________________________________

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

Copyright © 2008 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.