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.setprofile - Function Up: imageprofilesupport - Tool Previous: imageprofilesupport.setnoprofile - Function


imageprofilesupport.setordinate - Function



Package general
Module images
Tool imageprofilesupport


Set an ordinate


Synopsis
setordinate(data, mask, err, ci, ls, which)


Arguments

data in The ordinate data
    Allowed: Vector of float
mask in The ordinate mask
    Allowed: Vector of Bool
    Default: All good
err in The ordinate error
    Allowed: Vector of float
    Default: None
ci in PGPlot color index of this ordinate when plotted
    Allowed: Integer
    Default: 1
ls in PGPlot line style (pos) or graph marker (neg) of this ordinate when plotted
    Allowed: Integer
    Default: 1
which in Which ordinate index to set
    Allowed: Integer
    Default: Next slot



Returns
Integer or fail



Description

This function sets an ordinate directly, whereas function makeordinate generates it for you from an image.

If you don't set the mask it is assumed to be all T (good).

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

If argument ls is positive, then the points are drawn as a line with PGPLOT linestyle ls. If it is negative, then the points are drawn as graph markers with PGPLOT marker value abs(ls).

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)
- local data, mask
- im.getregion(data, mask, region=r, dropdeg=T)
- idx := p.setordinate (data, mask, 1)                  
- p.plot()




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