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


next up previous contents index
Next: coordsys.reorder - Function Up: coordsys - Tool Previous: coordsys.referencepixel - Function


coordsys.referencevalue - Function



Package general
Module images
Tool coordsys


Recover the reference value


Synopsis
referencevalue(format, type)


Arguments

format in Format string
    Allowed: String from combination of "n", "q", "s", "m"
    Default: 'n'
type in Coordinate type
    Allowed: String from "direction", "stokes", "spectral", "linear", "tabular" or unset
    Default: All


Returns
Vector of doubles, vector of quantities, vector of string, record or fail



Description

Each axis associated with the Coordinate System has a reference value, reference pixel and an increment (per pixel). These are used in the mapping from pixel to world coordinate.

This function (short-hand name rv) returns the reference value (in world axis order). You can recover the reference value either for all coordinates (leave type unset) or for a specific coordinate type (mimumum match of the allowed types will do). If you ask for a non-existent coordinate an exception is generated.

See the discussion regarding the formatting possibilities available via argument format.

You can set the reference value with function setreferencevalue.



Example
- cs := coordsys(direction=T, spectral=T)
- cs.referencevalue(format='q')
[__*0=[value=0, unit='], __*1=[value=0, unit='], __*2=[value=1.415e+09, unit=Hz]] 
-
- cs.referencevalue(format='n')
[0 0 1.415e+09]  
-
- cs.referencevalue(format='n', type='spec')
1.415e+09





next up previous contents index
Next: coordsys.reorder - Function Up: coordsys - Tool Previous: coordsys.referencepixel - 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