Changeset 24716
- Timestamp:
- Jul 8, 2009, 10:07:36 AM (17 years ago)
- Location:
- trunk/magic/remove/src
- Files:
-
- 3 edited
-
streaksastrom.c (modified) (1 diff)
-
streaksastrom.h (modified) (1 diff)
-
streaksremove.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/magic/remove/src/streaksastrom.c
r24382 r24716 377 377 } 378 378 379 void 379 bool 380 380 linearizeTransforms(strkAstrom *astrom) 381 381 { 382 382 if (!pmAstromLinearizeTransforms((pmFPA *) astrom->fpa, (pmChip *) astrom->chip)) { 383 streaksExit("linear fit to astrometry failed\n", PS_EXIT_UNKNOWN_ERROR); 384 } 385 } 383 // streaksExit("linear fit to astrometry failed\n", PS_EXIT_UNKNOWN_ERROR); 384 psError(PS_ERR_UNKNOWN, false, "linear fit to astrometry failed ignoring"); 385 return false; 386 } 387 return true; 388 } -
trunk/magic/remove/src/streaksastrom.h
r24382 r24716 30 30 extern bool skyToCell(strkPt *, strkAstrom *astrom, double ra, double dec); 31 31 extern bool cellToSky(strkPt *, strkAstrom *astrom, double x, double y); 32 extern voidlinearizeTransforms(strkAstrom *astrom);32 extern bool linearizeTransforms(strkAstrom *astrom); 33 33 34 34 extern bool SkyToLocal(strkPt *outPt, strkAstrom *astrom, double ra, double dec); -
trunk/magic/remove/src/streaksremove.c
r24691 r24716 483 483 if (sf->bilevelAstrometry) { 484 484 485 linearizeTransforms(sf->astrom); 485 if (!linearizeTransforms(sf->astrom)) { 486 // fit failed, leave the astrometry unchanged 487 return; 488 } 486 489 487 490 if (!pmAstromWriteWCS(sf->outImage->header, sf->inAstrom->fpa, sf->chip, 0.001)) {
Note:
See TracChangeset
for help on using the changeset viewer.
