Changeset 19519
- Timestamp:
- Sep 11, 2008, 3:10:59 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroMosaicDistortion.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroMosaicDistortion.c
r19314 r19519 1 1 # include "psastroInternal.h" 2 # define DEBUG 0 2 3 3 bool psastroMosaicDistortion (pmFPA *fpa, psMetadata *recipe ) {4 bool psastroMosaicDistortion (pmFPA *fpa, psMetadata *recipe, int pass) { 4 5 5 6 // fit a linear transformation from reference TP to observed FP coords … … 9 10 return false; 10 11 } 12 13 if (DEBUG && (pass == 0)) psastroDumpCorners ("corners.up.v1.dat", "corners.dn.v1.dat", fpa); 11 14 12 15 // Correct the current reference star TP coordinates to the nearly-FP … … 21 24 } 22 25 26 if (DEBUG && (pass == 0)) psastroDumpCorners ("corners.up.v2.dat", "corners.dn.v2.dat", fpa); 27 23 28 if (!psastroMosaicDistortionFromGradients (fpa, recipe)) { 24 29 psError(PSASTRO_ERR_UNKNOWN, false, "failed to fit the distortion field\n"); … … 26 31 return false; 27 32 } 33 34 if (DEBUG && (pass == 0)) psastroDumpCorners ("corners.up.v3.dat", "corners.dn.v3.dat", fpa); 28 35 29 36 if (!psastroMosaicCorrectDistortion (fpa, TPtoFP)) { … … 33 40 } 34 41 42 if (DEBUG && (pass == 0)) psastroDumpCorners ("corners.up.v4.dat", "corners.dn.v4.dat", fpa); 43 35 44 if (!psastroMosaicSetAstrom (fpa)) { 36 45 psError(PSASTRO_ERR_UNKNOWN, false, "failed to apply mosaic distortion terms\n"); … … 39 48 } 40 49 50 if (DEBUG && (pass == 0)) psastroDumpCorners ("corners.up.v5.dat", "corners.dn.v5.dat", fpa); 51 41 52 psFree (TPtoFP); 42 53 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
