Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1488
News FAQ
Search Home


next up previous contents index
Next: quanta.map - Function Up: quanta - Tool Previous: quanta.convert - Function


quanta.define - Function



Package general
Module quanta
Tool quanta


define a new unit name


Synopsis
define(name, v)


Arguments

name in name of unit to define
    Allowed: string
v in quantity value of new unit
    Allowed: string or quantity
    Default: '1'


Returns
bool


Description
define defines the name and value of a user defined unit



Example
- dq.define('JY','1Jy')			# your misspelling
T 
- dq.define('VLAunit', '0.898 JY')	# a special unit using it
T 
- dq.quantity('5 VLAunit') 			# check its use
[value=5, unit=VLAunit] 
- dq.convert('5 VLAunit','Jy')
[value=4.49, unit=Jy]





next up previous contents index
Next: quanta.map - Function Up: quanta - Tool Previous: quanta.convert - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-08-01