IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26783


Ignore:
Timestamp:
Feb 5, 2010, 1:31:21 PM (16 years ago)
Author:
eugene
Message:

updates to psphot APIs to enable stack photometry

Location:
branches/eam_branches/20091201/ppSim/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091201/ppSim/src/Makefile.am

    r26374 r26783  
    4848        ppSimLoadSpots.c          \
    4949        ppSimPhotom.c             \
    50         ppSimPhotomReadoutFake.c  \
    51         ppSimPhotomReadoutForce.c \
    5250        ppSimPhotomFiles.c        \
    5351        ppSimLoadForceSources.c   \
     
    6058        ppSimBadCTE.c             \
    6159        ppSimVersion.c
     60
     61# these functions have been broken by the API change in psphot (Jan 2010)
     62#       ppSimPhotomReadoutFake.c 
     63#       ppSimPhotomReadoutForce.c
    6264
    6365ppSimSequence_CPPFLAGS = $(PSLIB_CFLAGS) $(PSMODULE_CFLAGS) $(PSASTRO_CFLAGS) $(ppSim_CFLAGS)
  • branches/eam_branches/20091201/ppSim/src/ppSimPhotom.c

    r21183 r26783  
    4646            if (! readout->data_exists) { continue; }
    4747
     48// these are broken by the Jan 2010 API changes to psphot
     49#if 0
    4850            // run the actual photometry analysis
    4951            if (!ppSimPhotomReadoutFake (config, view)) {
     
    5658            }
    5759            // ppSimDetectionLimits (config, view);
     60#endif
    5861        }
    5962    }
  • branches/eam_branches/20091201/ppSim/src/ppSimPhotomReadoutFake.c

    r26543 r26783  
    11# include "ppSim.h"
    22
     3// XXX this function is currently disabled -- need to update code below to distinguish the fake
     4// and force positions, etc
    35bool ppSimPhotomReadoutFake(pmConfig *config, const pmFPAview *view) {
    46
     
    1113        return false;
    1214    }
    13 
    14 # if 0
    15     // set the photcode for this image
    16     if (!psphotAddPhotcodeReadout (recipe, config, view, "PPSIM.FAKE.CHIP", 0)) {
    17         psError (PSPHOT_ERR_CONFIG, false, "trouble defining the photcode");
    18         return false;
    19     }
    20 # endif
    2115
    2216    // *** in this section, perform the photometry for real + fake sources on PPSIM.FAKE.CHIP ***
     
    3630
    3731    // Generate the mask and variance images, including the user-defined analysis region of interest
    38     psphotSetMaskAndVariance (config, view, recipe);
     32    psphotSetMaskAndVariance (config, view);
    3933
    4034    // XXX need to define the source pixels
     
    5852    // load the psf model, if suppled.  FWHM_X,FWHM_Y,etc are saved in the recipe
    5953    // this function uses PSPHOT.PSF.LOAD as the pmFPAfile
    60     pmPSF *psf = psphotLoadPSF (config, view, recipe);
    61     assert (psf);
     54    psphotLoadPSF (config, view);
    6255
    6356    // remove all sources
     
    6861        return psphotReadoutCleanup (config, readout, recipe, NULL, NULL, NULL);
    6962    }
    70     if (!psphotSubtractBackgroundReadout (config, view, "PPSIM.FAKE.CHIP", 0)) {
     63    if (!psphotSubtractBackgroundReadout (config, view, "PPSIM.FAKE.CHIP", 0, recipe)) {
    7164        return psphotReadoutCleanup (config, readout, recipe, NULL, NULL, NULL);
    7265    }
Note: See TracChangeset for help on using the changeset viewer.