|
|||
NRAO Home > CASA > CASA Toolkit Reference Manual |
|
coordsys.subimage - Function
1.1.3 delivers a coordinate origin re-referenced for a subimage
Description
You can convert a Coordinate System to another coordinatesystem applicable
to a subImage. The newshape does not matter as this is the coordinatesystem
not the image except for Stokes axis; therefore you can ignore newshape
except when your sub-image you are considering has only a section of your
original Stokes axis.
Arguments
Inputs |
| ||
originshft |
| The shift value from original reference (vector of values
in pixels)
| |
| allowed: | any |
|
| Default: | variant |
|
newshape |
| The new shape of the image it will applicable to (pixel
shape)
| |
| allowed: | intArray |
|
| Default: |
|
|
record
Example
"""
#
print "\t----\t subimage Ex 1 \t----"
ia.open(’original.image’)
csys = ia.coordsys()
imshape=ia.shape()
#want to make an empty sub image of the 11th channel
#keeping other reference pixel as is
refshft=[0,0,0,10]
subcoordsysrec=csys.subimage(neworigin=refshft)
imshape[3]=1
ia.fromshape(outfile=’Eleventh_chan_template.image’, shape=imshape, csys=subcoordsysrec)
"""
__________________________________________________________________
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