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


next up previous contents index
Next: image.unlock - Function Up: image - Tool Previous: image.topixel - Function


image.toworld - Function



Package general
Module images
Tool image


Convert from pixel to world coordinate


Synopsis
toworld(value, format)


Arguments

value in Absolute pixel coordinate
    Allowed: Numeric vector
    Default: Reference pixel
format in What type of formatting ?
    Allowed: String from combination of 'n' (numeric), 'q' (quantity), 'm' (measure), 's' (string)
    Default: 'n'


Returns
Vector float, vector quantity, record, string or fail



Description

This function converts between absolute pixel coordinate (1-rel) and world (physical coordinate).

This function is just a wrapper for the Coordsys tool function toworld so see the documentation there for a description of the arguments and more examples.



Example
- im := image('hcn')
- w := cs.toworld([10,10], 'n')
- w := cs.toworld([10,10], 'nmq')
Convert to a vector of floats and then to a record holding a vector of floats, a vector of quantities and a subrecord of measures.





next up previous contents index
Next: image.unlock - Function Up: image - Tool Previous: image.topixel - 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