Changeset 19518
- Timestamp:
- Sep 11, 2008, 3:10:41 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroMosaicAstrom.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroMosaicAstrom.c
r19386 r19518 104 104 } 105 105 106 if ((pass == 0) && (psTraceGetLevel("psastro.dump.psastroMosaicAstrom") > 0)) {106 if ((pass == 0) && (psTraceGetLevel("psastro.dump.psastroMosaicAstrom") > 1)) { 107 107 snprintf (filename, 256, "%s.0.dat", rootname); 108 108 psastroDumpMatches (fpa, filename); … … 117 117 } 118 118 119 if ((pass == 0) && (psTraceGetLevel("psastro.dump.psastroMosaicAstrom") > 0)) {119 if ((pass == 0) && (psTraceGetLevel("psastro.dump.psastroMosaicAstrom") > 1)) { 120 120 snprintf (filename, 256, "%s.1.dat", rootname); 121 121 psastroDumpMatches (fpa, filename); … … 125 125 // apply the new distortion terms up and down 126 126 // refit the per-chip terms with linear fits only 127 if (!psastroMosaicDistortion (fpa, recipe )) {127 if (!psastroMosaicDistortion (fpa, recipe, pass)) { 128 128 psError(PSASTRO_ERR_UNKNOWN, false, "failed to measure mosaic gradients (pass %d)", pass); 129 129 return false; … … 131 131 132 132 snprintf (filename, 256, "%s.%d.dat", rootname, 2*pass + 2); 133 if (psTraceGetLevel("psastro.dump.psastroMosaicAstrom") > 0) { psastroDumpMatches (fpa, filename); }133 if (psTraceGetLevel("psastro.dump.psastroMosaicAstrom") > 1) { psastroDumpMatches (fpa, filename); } 134 134 135 135 // measure the astrometry for the chips under the distortion term … … 139 139 } 140 140 141 snprintf (filename, 256, "%s.%d.dat", rootname, 2*pass + 3); 142 if (psTraceGetLevel("psastro.dump.psastroMosaicAstrom") > 0) { psastroDumpMatches (fpa, filename); } 141 int traceLevel = psTraceGetLevel("psastro.dump.psastroMosaicAstrom"); 142 if (traceLevel > 1) { 143 snprintf (filename, 256, "%s.%d.dat", rootname, 2*pass + 3); 144 psastroDumpMatches (fpa, filename); 145 } else { 146 snprintf (filename, 256, "%s.dat", rootname); 147 psastroDumpMatches (fpa, filename); 148 } 143 149 144 150 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
