IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 18, 2010, 4:11:53 PM (16 years ago)
Author:
eugene
Message:

merge changes from branches/eam_branches/psphot,psModules.20100506 (finish basic psphotStack)

Location:
trunk/psphot
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot

  • trunk/psphot/src/psphotExtendedSourceAnalysis.c

    r27819 r28013  
    11# include "psphotInternal.h"
    22
     3// ?? these cannot happen here --> we would need to do this in psphotExtendedSourceAnalysis
     4// XXX option to choose a consistent position
     5// XXX option to choose a consistent elliptical contour
     6// XXX SDSS uses the r-band petrosian radius to measure petrosian fluxes in all bands
     7// XXX consistent choice of extendedness...
     8
    39// for now, let's store the detections on the readout->analysis for each readout
    4 bool psphotExtendedSourceAnalysis (pmConfig *config, const pmFPAview *view)
     10bool psphotExtendedSourceAnalysis (pmConfig *config, const pmFPAview *view, const char *filerule)
    511{
    612    bool status = true;
     
    2127    // loop over the available readouts
    2228    for (int i = 0; i < num; i++) {
    23         if (!psphotExtendedSourceAnalysisReadout (config, view, "PSPHOT.INPUT", i, recipe)) {
    24             psError (PSPHOT_ERR_CONFIG, false, "failed on measure extended source aperture-like parameters for PSPHOT.INPUT entry %d", i);
     29        if (!psphotExtendedSourceAnalysisReadout (config, view, filerule, i, recipe)) {
     30            psError (PSPHOT_ERR_CONFIG, false, "failed on measure extended source aperture-like parameters for %s entry %d", filerule, i);
    2531            return false;
    2632        }
     
    3036
    3137// aperture-like measurements for extended sources
    32 bool psphotExtendedSourceAnalysisReadout (pmConfig *config, const pmFPAview *view, const char *filename, int index, psMetadata *recipe) {
     38bool psphotExtendedSourceAnalysisReadout (pmConfig *config, const pmFPAview *view, const char *filerule, int index, psMetadata *recipe) {
    3339
    3440    bool status;
     
    4248
    4349    // find the currently selected readout
    44     pmFPAfile *file = pmFPAfileSelectSingle(config->files, filename, index); // File of interest
     50    pmFPAfile *file = pmFPAfileSelectSingle(config->files, filerule, index); // File of interest
    4551    psAssert (file, "missing file?");
    4652
Note: See TracChangeset for help on using the changeset viewer.