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


next up previous contents index
Next: measures.epochgui - Function Up: measures - Tool Previous: measures.dirshow - Function


measures.show - Function



Package general
Module measures
Tool measures


Format a measure using globally set formats


Synopsis
show(v, refcode)


Arguments

v in value to be converted to string
    Allowed: any measure
refcode in add the reference code to output
    Allowed: boolean
    Default: T


Returns
string


Description
show will convert a measure to a string, using the formats set globally for various types of variables (see setformat). All measures are catered for (at this moment direction, position, epoch, radialvelocity, frequency, doppler, baseline, uvw, earthmagnetic ).



Example
- dm.show(dm.frequency('lsrk', dq.constants('HI')))
1420.40575 MHz LSRK 
- dq.setformat('freq', 'keV')
T 
- dm.show(dm.frequency('lsrk', dq.constants('HI')))
5.87432838e-09 keV LSRK 
- dm.show(dm.frequency('lsrk', dq.constants('HI')), refcode=F)
5.87432838e-09 keV





next up previous contents index
Next: measures.epochgui - Function Up: measures - Tool Previous: measures.dirshow - 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