IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5547


Ignore:
Timestamp:
Nov 18, 2005, 10:22:35 AM (21 years ago)
Author:
magnier
Message:

changed psProjection Xs,Ys units from pix/rad to rad/pix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_rel8_b0/psLib/src/astro/psCoord.c

    r5294 r5547  
    1010*  @author GLG, MHPCC
    1111*
    12 *  @version $Revision: 1.88 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2005-10-12 21:02:20 $
     12*  @version $Revision: 1.88.4.1 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2005-11-18 20:22:35 $
    1414*
    1515*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    215215
    216216    psPlaneTransform *pt = psAlloc(sizeof(psPlaneTransform));
    217     pt->x = psPolynomial2DAlloc(n1-1, n2-1, PS_POLYNOMIAL_ORD);
    218     pt->y = psPolynomial2DAlloc(n1-1, n2-1, PS_POLYNOMIAL_ORD);
     217    pt->x = psPolynomial2DAlloc(n1, n2, PS_POLYNOMIAL_ORD);
     218    pt->y = psPolynomial2DAlloc(n1, n2, PS_POLYNOMIAL_ORD);
    219219
    220220    psMemSetDeallocator(pt, (psFreeFunc) planeTransformFree);
     
    286286
    287287    psPlaneDistort *pt = psAlloc(sizeof(psPlaneDistort));
    288     pt->x = psPolynomial4DAlloc(n1-1, n2-1, n3-1, n4-1, PS_POLYNOMIAL_ORD);
    289     pt->y = psPolynomial4DAlloc(n1-1, n2-1, n3-1, n4-1, PS_POLYNOMIAL_ORD);
     288    pt->x = psPolynomial4DAlloc(n1, n2, n3, n4, PS_POLYNOMIAL_ORD);
     289    pt->y = psPolynomial4DAlloc(n1, n2, n3, n4, PS_POLYNOMIAL_ORD);
    290290
    291291    psMemSetDeallocator(pt, (psFreeFunc) planeDistortFree);
     
    428428
    429429    // Apply plate scales
    430     out->x *= projection->Xs;
    431     out->y *= projection->Ys;
     430    out->x /= projection->Xs;
     431    out->y /= projection->Ys;
    432432
    433433    // Return output
     
    448448
    449449    // Remove plate scales
    450     psF64  x = coord->x/projection->Xs;
    451     psF64  y = coord->y/projection->Ys;
     450    psF64  x = coord->x*projection->Xs;
     451    psF64  y = coord->y*projection->Ys;
    452452
    453453    // Perform inverse projection
Note: See TracChangeset for help on using the changeset viewer.