IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19518


Ignore:
Timestamp:
Sep 11, 2008, 3:10:41 PM (18 years ago)
Author:
eugene
Message:

adding some debugging code

File:
1 edited

Legend:

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

    r19386 r19518  
    104104    }
    105105
    106     if ((pass == 0) && (psTraceGetLevel("psastro.dump.psastroMosaicAstrom") > 0)) {
     106    if ((pass == 0) && (psTraceGetLevel("psastro.dump.psastroMosaicAstrom") > 1)) {
    107107        snprintf (filename, 256, "%s.0.dat", rootname);
    108108        psastroDumpMatches (fpa, filename);
     
    117117    }
    118118
    119     if ((pass == 0) && (psTraceGetLevel("psastro.dump.psastroMosaicAstrom") > 0)) {
     119    if ((pass == 0) && (psTraceGetLevel("psastro.dump.psastroMosaicAstrom") > 1)) {
    120120        snprintf (filename, 256, "%s.1.dat", rootname);
    121121        psastroDumpMatches (fpa, filename);
     
    125125    // apply the new distortion terms up and down
    126126    // refit the per-chip terms with linear fits only
    127     if (!psastroMosaicDistortion (fpa, recipe)) {
     127    if (!psastroMosaicDistortion (fpa, recipe, pass)) {
    128128        psError(PSASTRO_ERR_UNKNOWN, false, "failed to measure mosaic gradients (pass %d)", pass);
    129129        return false;
     
    131131
    132132    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); }
    134134   
    135135    // measure the astrometry for the chips under the distortion term
     
    139139    }
    140140
    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    }
    143149
    144150    return true;
Note: See TracChangeset for help on using the changeset viewer.