IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39928 for trunk/psastro/src


Ignore:
Timestamp:
Jan 7, 2017, 11:30:49 AM (10 years ago)
Author:
eugene
Message:

reverted a mis-understood iteration change

File:
1 edited

Legend:

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

    r39926 r39928  
    5656    }
    5757
    58     for (int iter = 0; (iter < nIter); iter++) {
    59       // now fit the chips under the common distortion with higher-order terms
    60       // first, re-perform the match with a slightly tighter circle
    61       if (!psastroMosaicSetMatch (fpa, recipe, iter)) {
    62         psError(PSASTRO_ERR_UNKNOWN, false, "failed to match raw and ref stars for mosaic (4th pass %d)", iter);
    63         return false;
    64       }
    65       if (!psastroMosaicChipAstrom (fpa, recipe, iter)) {
    66         psError(PSASTRO_ERR_UNKNOWN, false, "failed to measure chip astrometry in mosaic mode (pass %d)", iter);
    67         return false;
    68       }
    69      
    70       if (psTraceGetLevel("psastro.dump") > 0) {
    71         // the last filename (see filenames in psastroMosaicFit)
    72         char filename[256];
    73         snprintf (filename, 256, "%s.%d.dat", outroot, 2*nIter + 2);
    74         psastroDumpMatches (fpa, filename);
    75       }
     58    // now fit the chips under the common distortion with higher-order terms
     59    // first, re-perform the match with a slightly tighter circle
     60    if (!psastroMosaicSetMatch (fpa, recipe, nIter)) {
     61      psError(PSASTRO_ERR_UNKNOWN, false, "failed to match raw and ref stars for mosaic (pass %d)", nIter);
     62      return false;
     63    }
     64    if (!psastroMosaicChipAstrom (fpa, recipe, nIter)) {
     65      psError(PSASTRO_ERR_UNKNOWN, false, "failed to measure chip astrometry in mosaic mode (pass %d)", nIter);
     66      return false;
     67    }
     68   
     69    if (psTraceGetLevel("psastro.dump") > 0) {
     70      // the last filename (see filenames in psastroMosaicFit)
     71      char filename[256];
     72      snprintf (filename, 256, "%s.%d.dat", outroot, 2*nIter + 2);
     73      psastroDumpMatches (fpa, filename);
    7674    }
    7775   
Note: See TracChangeset for help on using the changeset viewer.