Changeset 39784 for branches/czw_branch/20160809
- Timestamp:
- Oct 20, 2016, 5:47:48 PM (10 years ago)
- Location:
- branches/czw_branch/20160809
- Files:
-
- 3 edited
-
ippconfig/hsc/psastro.config (modified) (1 diff)
-
psModules/src/astrom/pmAstrometryObjects.c (modified) (3 diffs)
-
psastro/src/psastroMosaicAstrom.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20160809/ippconfig/hsc/psastro.config
r39781 r39784 83 83 84 84 # mosaic radius match in pixels (do these make sense?) 85 PSASTRO.MOSAIC.RADIUS.N0 F32 585 PSASTRO.MOSAIC.RADIUS.N0 F32 15 86 86 PSASTRO.MOSAIC.RADIUS.N1 F32 10 87 87 PSASTRO.MOSAIC.RADIUS.N2 F32 10 -
branches/czw_branch/20160809/psModules/src/astrom/pmAstrometryObjects.c
r39685 r39784 238 238 bool status; 239 239 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)); 241 241 double photomWindowFactor = photomWindowApply ? -0.5/PS_SQR(photomWindowSigma) : 0.0; 242 242 … … 790 790 // sigma of gaussian window to down-weight photometric outliers (ignored if NAN or 0.0) 791 791 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)); 793 793 double photomWindowFactor = photomWindowApply ? -0.5/PS_SQR(photomWindowSigma) : 0.0; 794 794 … … 1074 1074 // sigma of gaussian window to down-weight photometric outliers (ignored if NAN or 0.0) 1075 1075 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)); 1077 1077 double photomWindowFactor = photomWindowApply ? -0.5/PS_SQR(photomWindowSigma) : 0.0; 1078 1078 -
branches/czw_branch/20160809/psastro/src/psastroMosaicAstrom.c
r39755 r39784 56 56 } 57 57 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) { 70 72 // the last filename (see filenames in psastroMosaicFit) 71 73 char filename[256]; 72 74 snprintf (filename, 256, "%s.%d.dat", outroot, 2*nIter + 2); 73 75 psastroDumpMatches (fpa, filename); 74 } 75 76 } 77 } 78 76 79 // save WCS and analysis metadata in update header. 77 80 // (pull or create local view to entry on readout->analysis)
Note:
See TracChangeset
for help on using the changeset viewer.
