IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 14, 2006, 11:58:44 AM (20 years ago)
Author:
eugene
Message:

renamed config to recipe in lower-level functions, added pixel weights to pmSource, other cleanups

File:
1 edited

Legend:

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

    r6851 r6862  
    11# include "psphot.h"
    22
    3 // XXX 2006.03.28 : no leaks!
    43bool psphotReadout (pmConfig *config, pmFPAview *view) {
    54
     
    1817    // XXX move this input the psphotImageLoop level?
    1918    pmReadoutSetWeights (readout);
    20     psphotSaveImage (NULL, readout->weight, "weight.fits");
    2119
    2220    // I have a valid mask, now mask in the analysis region of interest
     
    4442
    4543    // use bright stellar objects to measure PSF
    46     psf = psphotChoosePSF (sources, recipe);
     44    psf = psphotChoosePSF (readout, sources, recipe);
     45    psphotPSFstats (readout, recipe, psf);
    4746
    4847    // linear PSF fit to peaks
     
    5251    psphotBlendFit (readout, sources, recipe, psf);
    5352
     53    // XXX this was an attempt to measure bias due to the weighting.
    5454    // psphotWeightBias (readout, sources, recipe, psf);
    5555
     
    9191    return true;
    9292}
    93 
    94 # if (0)
    95 fprintf (stderr, "making fake sources\n");
    96 sources = psphotFakeSources ();
    97 psMetadata *tmp = psMetadataAlloc ();
    98 status = psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.SOURCES", PS_DATA_ARRAY,    "psphot sources", sources);
    99 status = psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.HEADER",  PS_DATA_METADATA, "header stats", tmp);
    100 psFree (sources);
    101 psFree (tmp);
    102 return true;
    103 # endif
Note: See TracChangeset for help on using the changeset viewer.