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.

Location:
branches/czw_branch/20160809
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20160809/ippconfig/hsc/psastro.config

    r39781 r39784  
    8383
    8484# mosaic radius match in pixels (do these make sense?)
    85 PSASTRO.MOSAIC.RADIUS.N0    F32    5
     85PSASTRO.MOSAIC.RADIUS.N0    F32    15
    8686PSASTRO.MOSAIC.RADIUS.N1    F32    10
    8787PSASTRO.MOSAIC.RADIUS.N2    F32    10
  • branches/czw_branch/20160809/psModules/src/astrom/pmAstrometryObjects.c

    r39685 r39784  
    238238    bool status;
    239239    double photomWindowSigma  = psMetadataLookupF32 (&status, config, "PSASTRO.PHOTOM.WINDOW.SIGMA");
    240     bool   photomWindowApply  = !(isnan(photomWindowSigma) || (fabs(photomWindowSigma < 0.01)));
     240    bool   photomWindowApply  = !(isnan(photomWindowSigma) || (fabs(photomWindowSigma) < 0.01));
    241241    double photomWindowFactor = photomWindowApply ? -0.5/PS_SQR(photomWindowSigma) : 0.0;
    242242
     
    790790    // sigma of gaussian window to down-weight photometric outliers (ignored if NAN or 0.0)
    791791    double photomWindowSigma  = psMetadataLookupF32 (&status, config, "PSASTRO.PHOTOM.WINDOW.SIGMA");
    792     bool   photomWindowApply  = !(isnan(photomWindowSigma) || (fabs(photomWindowSigma < 0.01)));
     792    bool   photomWindowApply  = !(isnan(photomWindowSigma) || (fabs(photomWindowSigma) < 0.01));
    793793    double photomWindowFactor = photomWindowApply ? -0.5/PS_SQR(photomWindowSigma) : 0.0;
    794794
     
    10741074    // sigma of gaussian window to down-weight photometric outliers (ignored if NAN or 0.0)
    10751075    double photomWindowSigma  = psMetadataLookupF32 (&status, recipe, "PSASTRO.PHOTOM.WINDOW.SIGMA");
    1076     bool   photomWindowApply  = !(isnan(photomWindowSigma) || (fabs(photomWindowSigma < 0.01)));
     1076    bool   photomWindowApply  = !(isnan(photomWindowSigma) || (fabs(photomWindowSigma) < 0.01));
    10771077    double photomWindowFactor = photomWindowApply ? -0.5/PS_SQR(photomWindowSigma) : 0.0;
    10781078
  • 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.