nraonrao
 
NRAO Home > CASA > CasaRef
coordsys.findcoordinate - Function

1.1.3 Find axes of specified coordinate
Description

This function finds the axes in the Coordinate System for the specified coordinate (minimum match is active for argument type). By default it finds the first coordinate, but if there is more than one (can happen for linear coordinates), you can specify which. If the coordinate does not exist, it returns F.

See also the function axesmap which returns the mapping between pixel and world axes.

Arguments





Outputs

pixel

Pixel axes

allowed:

intArray

Default:

world

World axes

allowed:

intArray

Default:

Inputs

type

Type of coordinate to find: direction, stokes, spectral, linear, or tabular

allowed:

string

Default:

direction

which

Which coordinate if more than one

allowed:

int

Default:

0

Returns
bool

Example

"""  
#  
print "\t----\t findcoordinate Ex 1 \t----"  
csys=cs.newcoordsys(direction=T)  
rtn=cs.findcoordinate(’direction’)  
print rtn  
#{’world’: [0L, 1L], ’return’: True, ’pixel’: [0L, 1L]}  
print ’pixel, world axes =’, rtn[’pixel’], rtn[’world’]  
#pixel, world axes = [0 1] [0 1]  
#  
"""

Please send any comments or questions about CASA or AIPS++ to aips2-requests@nrao.edu

Copyright © 2008 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

Updated daily during alpha development.