Changeset 19311
- Timestamp:
- Sep 2, 2008, 9:09:51 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroMosaicGradients.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroMosaicGradients.c
r15671 r19311 2 2 static int nPass = 0; 3 3 4 bool psastroMosaic Gradients (pmFPA *fpa, psMetadata *recipe) {4 bool psastroMosaicDistortionFromGradients (pmFPA *fpa, psMetadata *recipe) { 5 5 6 6 bool status; … … 9 9 pmReadout *readout = NULL; 10 10 psArray *gradients = NULL; 11 12 // Measure the gradient as a function of position. This must be performed between the 13 // corrected ref->TP and the observed raw->FP, for which the distortion is a perturbation. 11 14 12 15 pmFPAview *view = pmFPAviewAlloc (0); … … 59 62 } 60 63 64 // Fit the gradient field and convert to the distortion terms. 65 61 66 // allocate mosaic-level polynomial transformation and set masks needed by DVO 62 67 int order = psMetadataLookupF32 (&status, recipe, "PSASTRO.MOSAIC.ORDER"); … … 95 100 } 96 101 97 if (!psastroMosaicSetAstrom (fpa)) {98 psError(PSASTRO_ERR_UNKNOWN, false, "failed to apply mosaic distortion terms\n");99 psFree (gradients);100 psFree (view);101 return false;102 }103 104 102 psFree (gradients); 105 103 psFree (view); 106 104 return true; 107 105 } 106
Note:
See TracChangeset
for help on using the changeset viewer.
