1.3.1 Check if measure
Description
Checks if the operand is a correct measure
Arguments
| Inputs |
| ||
| v |
| value to be tested
| |
| allowed: | any |
|
| Default: | record |
|
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() # """ |
__________________________________________________________________
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.