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


next up previous contents index
Next: coordsys.restfrequency - Function Up: coordsys - Tool Previous: coordsys.reorder - Function


coordsys.replace - Function



Package general
Module images
Tool coordsys


Replace a coordinate


Synopsis
replace(csys, whichin, whichout)


Arguments

csys in Coordinate System to replace from
    Allowed: Coordsys tool
whichin in Index of input coordinate
    Allowed: Integer
whichout in Index of output coordinate
    Allowed: Integer


Returns
T or fail



Description

This function replaces on coordinate in the current Coordinate System by one coordinate in the given Coordinate System. The specified coordinates must have the same number of axes.



Example
- cs := coordsys(direction=T, linear=1)
- cs.coordinatetype()
Direction Linear
- cs2 := coordsys(spectral=T)
- cs2.replace (cs2,2,1)
- cs.coordinatetype()
Direction Spectral





next up previous contents index
Next: coordsys.restfrequency - Function Up: coordsys - Tool Previous: coordsys.reorder - 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