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.npoints - Function Up: imageprofilesupport - Tool Previous: imageprofilesupport.makeabcissa - Function


imageprofilesupport.makeordinate - Function



Package general
Module images
Tool imageprofilesupport


Make an ordinate


Synopsis
makeordinate(im, region, ci, ls, which)


Arguments

im in The image
    Allowed: Image tool
region in The region of interest
    Allowed: Region tool or naked record
ci in PGPlot color index of this ordinate when plotted
    Allowed: Integer
    Default: 1
ls in PGPlot line style of this ordinate when plotted
    Allowed: Integer
    Default: 1
which in Which ordinate index to set
    Allowed: Integer or unset
    Default: Next slot



Returns
Integer or fail



Description
This function creates an ordinate. You specify an Image tool and a Region tool. The image data in the region are averaged over all axes except the profile axis. The region may also be specified as a naked record with fields 'blc' and 'trc' holding vectors of absolute pixel coordinates.

This function returns an index identifying the ordinate number that you are displaying. You can display many profiles simultaneously this way. To reset the number of profiles to zero use function setnoprofile.

You must call function setprofileaxis before calling this function so that it knows which axis is the profile axis.



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)                      
-
- blc := pos; blc[3] := 1                 
- trc := pos; trc[3] := shp[3]
- r := drm.box(blc, trc)
- idx := p.makeordinate (im, r)                  
-
- p.plot(which=idx)




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