|
|||
NRAO Home > CASA > CASA Toolkit Reference Manual |
|
quanta.maprec - Function
1.5.1 create record containing list of known unit names and constants
Description
maprec returns a record with the known mapping of units and constants.
It has a single argument, which can be a coded string (no-case, minimax
match):
- all
- all of the following units (not constants): also the default
- Prefix
- known decimal prefixes
- SI
- known SI units
- Customary
- a set of customary units known to programs
- User
- units defined by the user
Arguments
Inputs |
| ||
v |
| type of information to list - coded string
| |
| allowed: | string |
|
| Default: | all |
|
record
Example
"""
#
print "\t----\t maprec Ex 1 \t----"
p = qa.maprec(’pre’) # list decimal prefixes
print p[’Prefix_G’]
# G (giga) 1000000000
s = qa.maprec(’SI’) # list SI units
print s[’SI_Jy’]
#Jy (jansky) 1e-26 kg.s-2
#
"""
__________________________________________________________________
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