Changeset 5547
- Timestamp:
- Nov 18, 2005, 10:22:35 AM (21 years ago)
- File:
-
- 1 edited
-
branches/eam_rel8_b0/psLib/src/astro/psCoord.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_rel8_b0/psLib/src/astro/psCoord.c
r5294 r5547 10 10 * @author GLG, MHPCC 11 11 * 12 * @version $Revision: 1.88 $ $Name: not supported by cvs2svn $13 * @date $Date: 2005-1 0-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 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 215 215 216 216 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); 219 219 220 220 psMemSetDeallocator(pt, (psFreeFunc) planeTransformFree); … … 286 286 287 287 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); 290 290 291 291 psMemSetDeallocator(pt, (psFreeFunc) planeDistortFree); … … 428 428 429 429 // Apply plate scales 430 out->x *= projection->Xs;431 out->y *= projection->Ys;430 out->x /= projection->Xs; 431 out->y /= projection->Ys; 432 432 433 433 // Return output … … 448 448 449 449 // 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; 452 452 453 453 // Perform inverse projection
Note:
See TracChangeset
for help on using the changeset viewer.
