IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

updates to psphot APIs to enable stack photometry

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091201/ppSub/src/ppSubMakePSF.c

    r26649 r26784  
    6666    pmReadout *photRO = pmFPAviewThisReadout(view, photFile->fpa); // Readout to photometer
    6767
    68     // we need to remove any existing PSPHOT.SOURCES (why not do this in psphot?)
    69     if (psMetadataLookup(photRO->analysis, "PSPHOT.SOURCES")) {
    70         psMetadataRemoveKey(photRO->analysis, "PSPHOT.SOURCES");
     68    // we need to remove any existing PSPHOT.DETECTIONS (why not do this in psphot?)
     69    if (psMetadataLookup(photRO->analysis, "PSPHOT.DETECTIONS")) {
     70        psMetadataRemoveKey(photRO->analysis, "PSPHOT.DETECTIONS");
    7171    }
    7272    if (psMetadataLookup(photRO->parent->parent->analysis, "PSPHOT.PSF")) {
     
    8383    // Extract the loaded sources from the associated readout, and generate PSF
    8484    // Here, we assume the image is background-subtracted
    85     psArray *sources = psMetadataLookupPtr(&mdok, minuend->analysis, "PSPHOT.SOURCES");
     85    pmDetections *detections = psMetadataLookupPtr(&mdok, minuend->analysis, "PSPHOT.DETECTIONS");
     86    psAssert(detections, "missing detections?");
     87    psArray *sources = detections->allSources;
     88    psAssert(sources, "missing sources?");
    8689   
    8790    // XXX filter sources?  limit the total number and return only brighter objects?
Note: See TracChangeset for help on using the changeset viewer.