IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 15, 2016, 3:14:22 PM (10 years ago)
Author:
eugene
Message:

add code to fit a non-TAN distortion to a camera-level distortion polynomial

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20160809/psastro/src/psastroMosaicAstrom.c

    r39686 r39699  
    4444    if (!status) psAbort ("missing config value");
    4545
    46     // XXX if projection is not TAN, fit the measured projection here and combine toTPA/fromTPA functions
     46    // if projection is not TAN, fit the measured projection here and combine toTPA/fromTPA functions
     47    bool fitMosaicDistortion = true;
    4748    if ((fpa->toSky->type != PS_PROJ_TAN) && (fpa->toSky->type != PS_PROJ_DIS)) {
    4849      if (!psastroProjectionRefit (fpa, recipe)) psAbort ("failed to refit distortion");
     50      fitMosaicDistortion = false;
    4951    }
    5052
    5153    // this should be in a loop with nIter =
    52     for (int iter = 0; iter < nIter; iter++) {
     54    for (int iter = 0; fitMosaicDistortion && (iter < nIter); iter++) {
    5355        if (!psastroMosaicFit (fpa, recipe, outroot, iter)) return false;
    5456    }
Note: See TracChangeset for help on using the changeset viewer.