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


next up previous contents index
Next: imageprofilesupport.getordinateunit - Function Up: imageprofilesupport - Tool Previous: imageprofilesupport.getmask - Function


imageprofilesupport.getordinate - Function



Package general
Module images
Tool imageprofilesupport


Recover the profile ordinate


Synopsis
getordinate(which)


Arguments

which in ordinate index
    Allowed: Integer
    Default: 1



Returns
Record



Description
This function recovers a record holding the ordinate for the specified profile. There are two subfields: 'unit' (string) and 'data' (vector float) in the record holding the ordinate.



Example
- im := image('ngc1313.cube')              
- csys := im.coordsys()                    
- shp := im.shape()                        
-
- p := imageprofilesupport(csys=csys, shp=shp, widgetset=dws)  
- p.setprofileaxis(axis);
- p.makemenus()
- pos := csys.referencepixel()             
- p.makeabcissa(pos)                       
- r := drm.box()                           
- idx := p.makeordinate (im, r)                   
- o := p.getordinate(idx)
- print o.unit
Jy/beam
- print o.data
[0.0692182779 0.313889951 0.221464232 -0.339388996 0.196267739 0.00308039412 0.145770207 
0.083701618 -0.0170051232 -0.0674641132 -0.147130117 -0.0748230442 -0.0087018162 
0.042476207 0.0843885541 0.0214372594 0.0204261355 -0.0142198177 -0.150894299 -
0.292182982 -0.287655115 -0.220203012 -0.311543584 -0.696057141 -0.594372749 
-0.591924787 -0.640231609 -0.751704574 -0.889986157 -0.973421454 -0.9192608 
-0.853011549 -1.01908207 -1.15568936 -1.04332018 -0.943786085 -0.671383262 
-0.398980319 -0.274277657 -0.602319181 -0.813411593 -0.665026307 -0.283517033 
-0.198741049 -0.649372399 -0.961182058 -0.79399693 -0.628294706 -0.550167799 -0.513776541 
-0.453341246 -0.401189208 -0.362751096 -0.153813794 -0.0688151047 -0.11182557 -0.106346995
-0.0373723656 -0.0238029882 0.014433424 -0.106619254 -0.173805982 -0.253587902 -0.561424077]





next up previous contents index
Next: imageprofilesupport.getordinateunit - Function Up: imageprofilesupport - Tool Previous: imageprofilesupport.getmask - 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