![]()
|
|||
|
|
|||
| NRAO Home > CASA > CasaRef |
|
||
quanta tool handles units and quantities
Requires:
Synopsis
| convertfreq | convert a frequency quantity to another unit |
| convertdop | convert a doppler velocity quantity to another unit |
| quantity | make a quantity from a string or from a numeric value and a unit string |
| getvalue | get the internal value of a quantity |
| getunit | get the internal unit of a quantity |
| canonical | get canonical value of quantity |
| canon | get canonical value of quantity |
| convert | convert a quantity to another unit |
| define | define a new unit name |
| map | list known unit names and constants |
| maprec | create record containing list of known unit names and constants |
| fits | define some FITS units |
| angle | show an angle as a formatted string |
| time | show a time (or date) as a formatted string |
| add | add quantities |
| sub | subtract quantities |
| mul | multiply quantities |
| div | divides quantities |
| neg | negate quantities |
| norm | normalise angle |
| le | compare quantities |
| lt | compare quantities |
| eq | compare quantities |
| ne | compare quantities |
| gt | compare quantities |
| ge | compare quantities |
| sin | sine of quantity |
| cos | cosine of quantity |
| tan | tangent of quantity |
| asin | arcsine of quantity |
| acos | arccosine of quantity |
| atan | arctangent of quantity |
| atan2 | arctangent of two quantity |
| abs | absolute value of quantity |
| ceil | ceil value of quantity |
| floor | floor value of quantity |
| log | logarithm of quantity |
| log10 | logarithm of quantity |
| exp | exponential of quantity |
| sqrt | square root of quantity |
| compare | compare dimensionality of units |
| check | check for proper unit string |
| checkfreq | check for proper frequency unit |
| pow | raise quantity to power |
| constants | get a constant |
| isangle | check if valid angle or time quantity |
| totime | convert an angle (or a time) to a time |
| toangle | convert a time (or an angle) to an angle |
| splitdate | split a date/time into a record |
| tos | convert quantity to string |
| type | type of tool |
| done | Free resources used by tool. Current implementation ignores input parameter, does nothing and returns true |
| unit | quantity from value v and unit string |
| isquantity | Check if quantity |
| setformat | set format for output of numbers. (NOT IMPLEMENTED YET!) |
| getformat | get current output format (NOT IMPLEMENTED YET!) |
| formxxx | Format a quantity using given format, allowed are hms, dms, deg, rad, +deg. |
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.