IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19519


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

adding debug code

File:
1 edited

Legend:

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

    r19314 r19519  
    11# include "psastroInternal.h"
     2# define DEBUG 0
    23
    3 bool psastroMosaicDistortion (pmFPA *fpa, psMetadata *recipe) {
     4bool psastroMosaicDistortion (pmFPA *fpa, psMetadata *recipe, int pass) {
    45
    56    // fit a linear transformation from reference TP to observed FP coords
     
    910        return false;
    1011    }
     12
     13    if (DEBUG && (pass == 0)) psastroDumpCorners ("corners.up.v1.dat", "corners.dn.v1.dat", fpa);
    1114
    1215    // Correct the current reference star TP coordinates to the nearly-FP
     
    2124    }
    2225
     26    if (DEBUG && (pass == 0)) psastroDumpCorners ("corners.up.v2.dat", "corners.dn.v2.dat", fpa);
     27
    2328    if (!psastroMosaicDistortionFromGradients (fpa, recipe)) {
    2429        psError(PSASTRO_ERR_UNKNOWN, false, "failed to fit the distortion field\n");
     
    2631        return false;
    2732    }
     33
     34    if (DEBUG && (pass == 0)) psastroDumpCorners ("corners.up.v3.dat", "corners.dn.v3.dat", fpa);
    2835
    2936    if (!psastroMosaicCorrectDistortion (fpa, TPtoFP)) {
     
    3340    }
    3441       
     42    if (DEBUG && (pass == 0)) psastroDumpCorners ("corners.up.v4.dat", "corners.dn.v4.dat", fpa);
     43
    3544    if (!psastroMosaicSetAstrom (fpa)) {
    3645        psError(PSASTRO_ERR_UNKNOWN, false, "failed to apply mosaic distortion terms\n");
     
    3948    }
    4049
     50    if (DEBUG && (pass == 0)) psastroDumpCorners ("corners.up.v5.dat", "corners.dn.v5.dat", fpa);
     51
    4152    psFree (TPtoFP);
    4253    return true;
Note: See TracChangeset for help on using the changeset viewer.