IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 20, 2016, 5:47:48 PM (10 years ago)
Author:
watersc1
Message:

Changes to fix issues solving astrometry models for HSC. Iterate MosaicSetMatch and MosaicChipAstrom as was originally intended. Fix parenthesis typos in pmAsttrometryObjects. Allow the HSC mosaic radius to start somewhat higher.

File:
1 edited

Legend:

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

    r39755 r39784  
    5656    }
    5757
    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 (4th pass)");
    62         return false;
    63     }
    64     if (!psastroMosaicChipAstrom (fpa, recipe, nIter)) {
    65         psError(PSASTRO_ERR_UNKNOWN, false, "failed to measure chip astrometry in mosaic mode (4th pass)");
    66         return false;
    67     }
    68 
    69     if (psTraceGetLevel("psastro.dump") > 0) {
     58   
     59    for (int iter = 0; (iter < nIter); iter++) {
     60      // now fit the chips under the common distortion with higher-order terms
     61      // first, re-perform the match with a slightly tighter circle
     62      if (!psastroMosaicSetMatch (fpa, recipe, iter)) {
     63        psError(PSASTRO_ERR_UNKNOWN, false, "failed to match raw and ref stars for mosaic (4th pass %d)", iter);
     64        return false;
     65      }
     66      if (!psastroMosaicChipAstrom (fpa, recipe, iter)) {
     67        psError(PSASTRO_ERR_UNKNOWN, false, "failed to measure chip astrometry in mosaic mode (pass %d)", iter);
     68        return false;
     69      }
     70     
     71      if (psTraceGetLevel("psastro.dump") > 0) {
    7072        // the last filename (see filenames in psastroMosaicFit)
    7173        char filename[256];
    7274        snprintf (filename, 256, "%s.%d.dat", outroot, 2*nIter + 2);
    7375        psastroDumpMatches (fpa, filename);
    74     }
    75 
     76      }
     77    }
     78   
    7679    // save WCS and analysis metadata in update header.
    7780    // (pull or create local view to entry on readout->analysis)
Note: See TracChangeset for help on using the changeset viewer.