![]()
|
|||
|
|
|||
| NRAO Home > CASA > CasaRef |
|
||
1.4.1 make a quantity from a string or from a numeric value and a unit
string
Description
quantity makes a quantity from a string, or from a value and a string. Note
that a function unit exists which is a synonym for quantity. If only a string is
given, it can be a scalar string. The result will be a scalar quantity.
If a numeric value and a unit string are given, the numeric value can be any numeric type, and can also be a vector of numeric values. print qa.map() to get a list of recognized units. ’d’ is usually days, but can be degrees (see example).
Arguments
| Inputs |
| ||
| v |
| quantity or numeric or string to convert to quantity
| |
| allowed: | variant | |
| Default: | ||
| unitname |
| unit string if v numeric
| |
| allowed: | string |
|
| Default: |
|
|
Example
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.