IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5588


Ignore:
Timestamp:
Nov 23, 2005, 1:54:43 PM (21 years ago)
Author:
gusciora
Message:

....

Location:
trunk/psLib/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/astro/psCoord.c

    r5578 r5588  
    1010*  @author GLG, MHPCC
    1111*
    12 *  @version $Revision: 1.92 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2005-11-23 00:59:58 $
     12*  @version $Revision: 1.93 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2005-11-23 23:54:43 $
    1414*
    1515*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    458458
    459459    // Remove plate scales
    460     psF64  x = coord->x * projection->Xs;
    461     psF64  y = coord->y * projection->Ys;
     460    // XXX: Verify this.  EAM suggested we do a multiply, however that does
     461    // not make sense if we also do the multiply in psProject().
     462    psF64  x = coord->x/projection->Xs;
     463    psF64  y = coord->y/projection->Ys;
    462464
    463465    // Perform inverse projection
  • trunk/psLib/src/math/psConstants.h

    r5586 r5588  
    66 *  @author GLG, MHPCC
    77 *
    8  *  @version $Revision: 1.80 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2005-11-23 21:18:12 $
     8 *  @version $Revision: 1.81 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2005-11-23 23:54:43 $
    1010 *
    1111 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    592592
    593593#define PS_POLY_PRINT_1D(NAME) \
     594printf("Poly %s: (nX) is (%d)\n", #NAME, NAME->nX);\
    594595for (psS32 i = 0 ; i < NAME->nX+1 ; i++) {\
    595596    printf("%s->coeff[%d] is %f\n", #NAME, i, NAME->coeff[i]); \
     
    597598
    598599#define PS_POLY_PRINT_2D(NAME) \
     600printf("Poly %s: (nX, nY) is (%d, %d)\n", #NAME, NAME->nX, NAME->nY);\
    599601for (psS32 i = 0 ; i < NAME->nX+1 ; i++) {\
    600602    for (psS32 j = 0 ; j < NAME->nY+1 ; j++) {\
     
    602604    }\
    603605}\
     606
     607#define PS_PRINT_PLANE_TRANSFORM(NAME) \
     608{ \
     609    printf("---------------------- Plane Transform ----------------------\n"); \
     610    printf("x:\n"); \
     611    PS_POLY_PRINT_2D(NAME->x); \
     612    printf("y:\n"); \
     613    PS_POLY_PRINT_2D(NAME->y); \
     614} \
     615
    604616
    605617/*****************************************************************************
Note: See TracChangeset for help on using the changeset viewer.