Changeset 11702 for trunk/psastro/src/psastroWCS.c
- Timestamp:
- Feb 7, 2007, 5:52:32 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroWCS.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroWCS.c
r10613 r11702 142 142 fpa->toSky = toSky; 143 143 } else { 144 if (fpa->toTPA == NULL) psAbort ("wcs","projection defined, tangent-plane not defined");145 if (fpa->fromTPA == NULL) psAbort ("wcs","projection defined, tangent-plane not defined");144 if (fpa->toTPA == NULL) psAbort("projection defined, tangent-plane not defined"); 145 if (fpa->fromTPA == NULL) psAbort("projection defined, tangent-plane not defined"); 146 146 147 147 // adjust for common toSky for mosaic: … … 212 212 213 213 // techinically, we can have a plate scale here (toTPA:dx,dy != 1) 214 if (!psPlaneDistortIsIdentity (toTPA)) psAbort ("psastro","invalid TPA transformation");214 if (!psPlaneDistortIsIdentity (toTPA)) psAbort("invalid TPA transformation"); 215 215 216 216 // XXX require toFPA->x->nX == toFPA->x->nY … … 395 395 psMetadataAddF32 (header, PS_LIST_TAIL, "CDELT2", PS_META_REPLACE, "", 1.0); 396 396 397 if (toFPA->x->nX != toFPA->x->nY) psAbort ("psastro","mis-matched tangent plane orders (1)");398 if (toFPA->x->nX != toFPA->y->nX) psAbort ("psastro","mis-matched tangent plane orders (2)");399 if (toFPA->x->nX != toFPA->y->nY) psAbort ("psastro","mis-matched tangent plane orders (3)");397 if (toFPA->x->nX != toFPA->x->nY) psAbort("mis-matched tangent plane orders (1)"); 398 if (toFPA->x->nX != toFPA->y->nX) psAbort("mis-matched tangent plane orders (2)"); 399 if (toFPA->x->nX != toFPA->y->nY) psAbort("mis-matched tangent plane orders (3)"); 400 400 401 401 switch (toFPA->x->nX) { … … 428 428 429 429 case 0: 430 psAbort ("psastro","invalid tangent plane order");430 psAbort("invalid tangent plane order"); 431 431 } 432 432 return true; … … 450 450 psMetadataAddF32 (header, PS_LIST_TAIL, "CDELT2", PS_META_REPLACE, "", toSky->Ys*DEG_RAD*plateScale); 451 451 452 if (toTP->x->nX != toTP->x->nY) psAbort ("psastro","mis-matched tangent plane orders (1)");453 if (toTP->x->nX != toTP->y->nX) psAbort ("psastro","mis-matched tangent plane orders (2)");454 if (toTP->x->nX != toTP->y->nY) psAbort ("psastro","mis-matched tangent plane orders (3)");452 if (toTP->x->nX != toTP->x->nY) psAbort("mis-matched tangent plane orders (1)"); 453 if (toTP->x->nX != toTP->y->nX) psAbort("mis-matched tangent plane orders (2)"); 454 if (toTP->x->nX != toTP->y->nY) psAbort("mis-matched tangent plane orders (3)"); 455 455 456 456 switch (toTP->x->nX) { … … 483 483 484 484 case 0: 485 psAbort ("psastro","invalid tangent plane order");485 psAbort("invalid tangent plane order"); 486 486 } 487 487 return header; … … 493 493 psPlaneDistort *distort; 494 494 495 if (order < 1) psAbort ("psastro","invalid order");496 if (order > 3) psAbort ("psastro","invalid order");495 if (order < 1) psAbort("invalid order"); 496 if (order > 3) psAbort("invalid order"); 497 497 498 498 // all coeffs and masks initially set to 0
Note:
See TracChangeset
for help on using the changeset viewer.
