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


next up previous contents index
Next: regionmanager.deletefromtable - Function Up: regionmanager - Tool Previous: regionmanager.copyregions - Function


regionmanager.def - Function



Package general
Module images
Tool regionmanager


Default pixel coordinate value


Synopsis
def()


Returns
Integer



Description
This function returns a value which can be used as a default when creating pixel regions. For example, you might wish to make a pixel box and default the value of the first axis of the trc argument (to the shape) but specify the value for the second axis.



Example
- im := image('quintin')
- im.shape()
[155 178 256]  
-
- blc := [12,drm.def(),43]
- trc := [drm.def(),50]
- r1 := drm.box(blc, trc)
-
- im.boundingbox(r1)
[blc=[12 1 43] , trc=[155 50 256] , inc=[1 1 1] , bbShape=[144 50 214] , 
regionShape=[144 50 214] , imageShape=[155 178 256] ]

So you can see that the blc and trc elements which were given the value drm.def() have been given default values; 1 for the blc and shape=128 for the trc. Note that trc[3] was not given. It has been returned as 256. It didn't need a drm.def() because it was the last dimension.



Example

Typing drm.def() is rather cumbersome. However, it is unique. To make it easier, you could define your own symbol according to

- const rmd := drm.def()      
- blc := [1,23,43]
- trc := [rmd,50]
- r1 := drm.box(blc, trc)





next up previous contents index
Next: regionmanager.deletefromtable - Function Up: regionmanager - Tool Previous: regionmanager.copyregions - 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