IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19311


Ignore:
Timestamp:
Sep 2, 2008, 9:09:51 AM (18 years ago)
Author:
eugene
Message:

measure the gradients but do not apply: this function is now called as part of the distortion model fit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastroMosaicGradients.c

    r15671 r19311  
    22static int nPass = 0;
    33
    4 bool psastroMosaicGradients (pmFPA *fpa, psMetadata *recipe) {
     4bool psastroMosaicDistortionFromGradients (pmFPA *fpa, psMetadata *recipe) {
    55
    66    bool status;
     
    99    pmReadout *readout = NULL;
    1010    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.
    1114
    1215    pmFPAview *view = pmFPAviewAlloc (0);
     
    5962    }
    6063
     64    // Fit the gradient field and convert to the distortion terms.
     65
    6166    // allocate mosaic-level polynomial transformation and set masks needed by DVO
    6267    int order = psMetadataLookupF32 (&status, recipe, "PSASTRO.MOSAIC.ORDER");
     
    95100    }
    96101       
    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 
    104102    psFree (gradients);
    105103    psFree (view);
    106104    return true;
    107105}
     106
Note: See TracChangeset for help on using the changeset viewer.