|
|||
NRAO Home > CASA > CASA Toolkit Reference Manual |
|
measures.ismeasure - Function
1.4.1 Check if measure
Description
Checks if the operand is a correct measure
Arguments
Inputs |
| ||
v |
| value to be tested
| |
| allowed: | record |
|
| Default: |
|
|
bool
Example
print "\t----\t ismeasure Ex 1 \t----"
x=me.epoch(’utc’,’today’)
print x
#{’m0’: {’value’: 54056.043754386577, ’unit’: ’d’},
# ’refer’: ’UTC’,
# ’type’: ’epoch’}
print me.ismeasure(x)
#True
y=me.getvalue(x)
print y
#{’m0’: {’value’: 54056.043754386577, ’unit’: ’d’}}
print me.ismeasure(y)
#False
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