IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11189


Ignore:
Timestamp:
Jan 19, 2007, 12:18:21 PM (19 years ago)
Author:
eugene
Message:

moved psphotPSFstats into psphotChoosePSF

File:
1 edited

Legend:

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

    r10801 r11189  
    1414    // check if a PSF model is supplied by the user
    1515    psf = psMetadataLookupPtr (NULL, readout->analysis, "PSPHOT.PSF");
    16     if (psf != NULL) return psf;
     16    if (psf != NULL) {
     17        if (!psphotPSFstats (readout, recipe, psf)) psAbort ("psphotChoosePSF", "cannot measure PSF shape terms");
     18        return psf;
     19    }
    1720
    1821    // examine PSF sources in S/N order (brightest first)
     
    244247    psFree (models);
    245248
    246     psMetadataAdd (recipe, PS_LIST_TAIL, "NPSFSTAR", PS_DATA_S32 | PS_META_REPLACE, "number of stars used to make PSF", psf->nPSFstars);
     249    if (!psphotPSFstats (readout, recipe, psf)) psAbort ("psphotChoosePSF", "cannot measure PSF shape terms");
    247250
    248251    modelName = pmModelGetType (psf->type);
     
    295298    psMetadataAdd (recipe, PS_LIST_TAIL, "FWHM_Y", PS_DATA_F32 | PS_META_REPLACE, "PSF FWHM Minor axis", FWHM_Y);
    296299    psMetadataAdd (recipe, PS_LIST_TAIL, "ANGLE",  PS_DATA_F32 | PS_META_REPLACE, "PSF angle",           axes.theta);
     300    psMetadataAdd (recipe, PS_LIST_TAIL, "NPSFSTAR", PS_DATA_S32 | PS_META_REPLACE, "number of stars used to make PSF", psf->nPSFstars);
    297301
    298302    psFree (modelEXT);
Note: See TracChangeset for help on using the changeset viewer.