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.box - Function Up: regionmanager - Tool Previous: regionmanager - Constructor


regionmanager.absreltype - Function



Package general
Module images
Tool regionmanager


Convert region type value to a string


Synopsis
absreltype(absrelvalue)


Arguments

absrelvalue in Region type value
    Allowed: Integer - 1, 2, 3, 4


Returns
String or fail



Description

This function is not intended for general user use.

Regions may be specified with coordinates which are absolute or relative. This function converts the integer code defining the absolute/relative type of the coordinates (which is stored in the region) into a string (maybe for printing purposes).

The different types are

Integer     String      Description
1            abs        Absolute coordinate
2            relref     Relative reference pixel
3            relcen     Relative to center of image
4            reldir     Relative to some direction



Example
- r := drm.box(blc=[3,40], trc=[80,90])   # Create region
- v := r.get('arblc')                     # Get absrel value vector for blc
- n := length(v)
- for (i in 1:n) {
+   print drm.absreltype(v[i])            # Print string conversion for each axis
+  }
-





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