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.type - Function Up: coordsys - Tool Previous: coordsys.toworld - Function


coordsys.toworldmany - Function



Package general
Module images
Tool coordsys


Convert many absolute pixel coordinates to numeric world


Synopsis
toworldmany(value)


Arguments

value in Absolute pixel coordinates
    Allowed: Numeric matrix


Returns
Numeric matrix or fail



Description

This function converts many absolute pixel coordinates to world coordinates. It exists so you can efficiently make many conversions (which would be rather slow if you did them all with toworld). Because speed is the object, the interface is purely in terms of numeric matrices, rather than being able to produce strings and quanta etc. like toworld can.

The units of the output world values are the native units given by function units.



Example
- cs := coordsys(direction=T, spectral=T)    # 3 axes
-
- rp := cs.referencepixel();                 # reference pixel
- off := 0:99;                               # offset for third axis
-
- pabs := array (rp, 3, 100);                # 100 conversions each of length 3
- pabs[3,] +:= off;                          # Make spectral axis values change
-
- wabs  := cs.toworldmany (pabs);            # Convert
- wabs[,1]                                   # First absolute pixel coordinate
[0 0 1.415e+09]  
- wabs[,100]                                 # 100th absolute pixel coordinate
[0 0 1.415099e+09]


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