|
|||
NRAO Home > CASA > CASA Toolkit Reference Manual |
|
quanta.formxxx - Function
1.5.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 |
|
prec |
| digits in fractional part of output string for dms,hms
| |
| allowed: | int |
|
| Default: | 2 |
|
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()
#
"""
__________________________________________________________________
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