Changeset 5588
- Timestamp:
- Nov 23, 2005, 1:54:43 PM (21 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 2 edited
-
astro/psCoord.c (modified) (2 diffs)
-
math/psConstants.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astro/psCoord.c
r5578 r5588 10 10 * @author GLG, MHPCC 11 11 * 12 * @version $Revision: 1.9 2$ $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 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 458 458 459 459 // 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; 462 464 463 465 // Perform inverse projection -
trunk/psLib/src/math/psConstants.h
r5586 r5588 6 6 * @author GLG, MHPCC 7 7 * 8 * @version $Revision: 1.8 0$ $Name: not supported by cvs2svn $9 * @date $Date: 2005-11-23 2 1:18:12$8 * @version $Revision: 1.81 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2005-11-23 23:54:43 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 592 592 593 593 #define PS_POLY_PRINT_1D(NAME) \ 594 printf("Poly %s: (nX) is (%d)\n", #NAME, NAME->nX);\ 594 595 for (psS32 i = 0 ; i < NAME->nX+1 ; i++) {\ 595 596 printf("%s->coeff[%d] is %f\n", #NAME, i, NAME->coeff[i]); \ … … 597 598 598 599 #define PS_POLY_PRINT_2D(NAME) \ 600 printf("Poly %s: (nX, nY) is (%d, %d)\n", #NAME, NAME->nX, NAME->nY);\ 599 601 for (psS32 i = 0 ; i < NAME->nX+1 ; i++) {\ 600 602 for (psS32 j = 0 ; j < NAME->nY+1 ; j++) {\ … … 602 604 }\ 603 605 }\ 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 604 616 605 617 /*****************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.
