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


next up previous
Next: Conceptually Complicated and Uncleanly Divided Up: No Title Previous: No Title

The Coordinate System is Cumbersome

Any application programmer must know a lot about the underlying conceptual structure of the Image and its three coordinate systems. For example, if I want to set the parameters associated with a coordinate system, I must write something like

    nx = outImage.GetDim(1); ny = outImage.GetDim(2);

    CoordSys *myCoords = outImage.GetCoordSys();

    ImageCoord myDelta = myCoords.GetDeltaCoord();
    double xcell = myDelta.GetImageCoord(1);
    double ycell = myDelta.GetImageCoord(2);

    ImPixelCoord myRefPix = myCoords.GetRefPix();
    double xrefpix = myRefPix.GetImPixCoord(1);
    double yrefpix = myRefPix.GetImPixCoord(2);
                   .
                   .
while in the system SDE the analogous operation is implemented with a single line of code:
CALL CRDPUT (IMAGE, NAX, TYPE, NAXIS, RVAL, RPIX, DELT, ROTA)


next up previous
Next: Conceptually Complicated and Uncleanly Divided Up: No Title Previous: No Title
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-03-28