IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35516


Ignore:
Timestamp:
May 6, 2013, 9:14:00 AM (13 years ago)
Author:
eugene
Message:

when reading a cmf files, if we have already read sources into this pmFPAfile, we will replace the old sources with the new ones

Location:
branches/eam_branches/ipp-20130419/psModules/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130419/psModules/src/camera/pmFPAfileIO.c

    r34800 r35516  
    382382    // (existing) fpa
    383383    if (file->type == PM_FPA_FILE_CMF) {
    384         if (!pmFPAviewCheckDataStatusForSources (view, file)) {
    385         psTrace("psModules.camera", 6, "skip write for %s, no data for this entry", file->name);
    386         return true;
    387       }
     384        if (!pmFPAviewCheckDataStatusForSources (view, file)) {
     385            psTrace("psModules.camera", 6, "skip write for %s, no data for this entry", file->name);
     386            return true;
     387        }
    388388    }
    389389    if (file->type == PM_FPA_FILE_PSF) {
  • branches/eam_branches/ipp-20130419/psModules/src/objects/pmSourceIO.c

    r35421 r35516  
    11381138    readout->data_exists = true;
    11391139
     1140    // if we have a prior set of detections on this readout, we will replace them here
    11401141    pmDetections *detections = pmDetectionsAlloc();
    11411142    detections->allSources = sources;
    1142     status = psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.DETECTIONS", PS_DATA_ARRAY, "input sources", detections);
     1143    status = psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.DETECTIONS", PS_DATA_ARRAY | PS_META_REPLACE, "input sources", detections);
    11431144    psFree (detections);
    11441145    return true;
Note: See TracChangeset for help on using the changeset viewer.