|
|||
NRAO Home > CASA > CASA Toolkit Reference Manual |
|
regionmanager.absreltype - Function
1.1.2 Convert region type value to a string
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
Arguments
Inputs |
| ||
absrelvalue |
| Region type value
| |
| allowed: | int |
|
| Default: | 0 Integer - 1, 2, 3, 4 |
|
string
Example
- r = rg.box(blc=[3,40], trc=[80,90]) # Create region
- v = r.get(’arblc’) # Get absrel value vector for blc
- for i in range( len(v) ):
+ print rg.absreltype(v[i]) # Print string conversion for each axis
-
__________________________________________________________________
More information about CASA may be found at the
CASA web page
Copyright © 2016 Associated Universities Inc., Washington, D.C.
This code is available under the terms of the GNU General Public Lincense
Home |
Contact Us |
Directories |
Site Map |
Help |
Privacy Policy |
Search