IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 21251


Ignore:
Timestamp:
Feb 1, 2009, 11:49:16 AM (17 years ago)
Author:
eugene
Message:

split psphotDetectionsFromSources from psphotLoadPSFSources

File:
1 edited

Legend:

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

    r21176 r21251  
    5656}
    5757
    58 pmDetections *psphotLoadPSFSources (pmConfig *config, const pmFPAview *view) {
     58// extract the input sources corresponding to this readout
     59psArray *psphotLoadPSFSources (pmConfig *config, const pmFPAview *view) {
    5960
    6061    // find the currently selected readout
     
    6566    }
    6667
    67     pmDetections *detections = pmDetectionsAlloc();
    68 
    6968    psArray *sources = psMetadataLookupPtr (NULL, readout->analysis, "PSPHOT.SOURCES");
    7069    if (!sources) {
    7170        psLogMsg ("psphot", 3, "no psf sources for this readout");
    72         return detections;
    7371    }
     72
     73    return sources;
     74}
     75
     76// generate the detection structure for the supplied array of sources
     77pmDetections *psphotDetectionsFromSources (pmConfig *config, psArray *sources) {
     78
     79    pmDetections *detections = pmDetectionsAlloc();
    7480
    7581    detections->peaks = psArrayAllocEmpty(100);
Note: See TracChangeset for help on using the changeset viewer.