IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10271


Ignore:
Timestamp:
Nov 28, 2006, 5:08:57 PM (20 years ago)
Author:
Paul Price
Message:

Propagating API change to pmReadoutSetWeights

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotReadout.c

    r10266 r10271  
    1414    // XXX does this need to invoke I/O?
    1515    // XXX move this input the psphotImageLoop level?
    16     if (!pmReadoutGenerateMaskWeight (readout)) {
     16    if (!pmReadoutGenerateMaskWeight (readout, true)) {
    1717        return false;
    1818    }
     
    2525
    2626    if (psTraceGetLevel("psphot") > 5) {
    27         psphotSaveImage (NULL, readout->image,  "image.fits");
    28         psphotSaveImage (NULL, readout->mask,   "mask.fits");
    29         psphotSaveImage (NULL, readout->weight, "weight.fits");
     27        psphotSaveImage (NULL, readout->image,  "image.fits");
     28        psphotSaveImage (NULL, readout->mask,   "mask.fits");
     29        psphotSaveImage (NULL, readout->weight, "weight.fits");
    3030    }
    3131
     
    5454
    5555    if (!strcasecmp (breakPt, "PEAKS")) {
    56         if (!psphotReadoutCleanup (config, readout, recipe, NULL, sources)) return false;
    57         return true;
     56        if (!psphotReadoutCleanup (config, readout, recipe, NULL, sources)) return false;
     57        return true;
    5858    }
    5959
     
    7171    }
    7272    if (!strcasecmp (breakPt, "MOMENTS")) {
    73         if (!psphotReadoutCleanup (config, readout, recipe, NULL, sources)) return false;
    74         return true;
     73        if (!psphotReadoutCleanup (config, readout, recipe, NULL, sources)) return false;
     74        return true;
    7575    }
    7676
     
    8686
    8787    if (!strcasecmp (breakPt, "PSFMODEL")) {
    88         if (!psphotReadoutCleanup (config, readout, recipe, psf, sources)) return false;
    89         return true;
     88        if (!psphotReadoutCleanup (config, readout, recipe, psf, sources)) return false;
     89        return true;
    9090    }
    9191
     
    9595    psphotEnsemblePSF (readout, sources, recipe, psf, FALSE);
    9696    if (!strcasecmp (breakPt, "ENSEMBLE")) {
    97         goto finish;
     97        goto finish;
    9898    }
    9999
     
    122122    // measure aperture photometry corrections
    123123    if (!psphotApResid (readout, sources, recipe, psf)) {
    124         psTrace ("psphot", 4, "failure on psphotApResid");
     124        psTrace ("psphot", 4, "failure on psphotApResid");
    125125        psError(PSPHOT_ERR_PHOTOM, false, "Measure aperture photometry corrections");
    126126        return false;
     
    146146    // use the psf-model to measure FWHM stats
    147147    if (psf) {
    148         if (!psphotPSFstats (readout, recipe, psf)) {
    149             psError(PS_ERR_IO, true, "Failed to measure PSF shape parameters");
    150             return false;
    151         }
     148        if (!psphotPSFstats (readout, recipe, psf)) {
     149            psError(PS_ERR_IO, true, "Failed to measure PSF shape parameters");
     150            return false;
     151        }
    152152    } else if (sources) {
    153         if (!psphotMomentsStats (readout, recipe, sources)) {
    154             psError(PS_ERR_IO, true, "Failed to measure Moment shape parameters");
    155             return false;
    156         }
     153        if (!psphotMomentsStats (readout, recipe, sources)) {
     154            psError(PS_ERR_IO, true, "Failed to measure Moment shape parameters");
     155            return false;
     156        }
    157157    }
    158158
Note: See TracChangeset for help on using the changeset viewer.