IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26923


Ignore:
Timestamp:
Feb 11, 2010, 6:32:28 PM (16 years ago)
Author:
Paul Price
Message:

Don't do or record pattern correction for video cells.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackPhotometry.c

    r26898 r26923  
    6666    }
    6767
     68    pmModelClassSetLimits(PM_MODEL_LIMITS_IGNORE);
    6869    if (!psphotReadoutKnownSources(config, photView, inSources)) {
    6970        // This is likely a data quality issue
     
    9192        pmReadout *photRO = pmFPAviewThisReadout(photView, photFile->fpa); // Readout with the sources
    9293        pmDetections *detections = psMetadataLookupPtr(NULL, photRO->analysis, "PSPHOT.DETECTIONS"); // detections
    93         if (detections) {
    94             psAssert (detections->allSources, "missing sources?");
    95             psMetadataAddS32(options->stats, PS_LIST_TAIL, "NUM_SOURCES", 0, "Number of sources detected", detections->allSources->n);
    96         } else {
    97             psMetadataAddS32(options->stats, PS_LIST_TAIL, "NUM_SOURCES", 0, "Number of sources detected", 0);
    98         }
     94        if (detections) {
     95            psAssert (detections->allSources, "missing sources?");
     96            psMetadataAddS32(options->stats, PS_LIST_TAIL, "NUM_SOURCES", 0, "Number of sources detected", detections->allSources->n);
     97        } else {
     98            psMetadataAddS32(options->stats, PS_LIST_TAIL, "NUM_SOURCES", 0, "Number of sources detected", 0);
     99        }
    99100        psMetadataAddF32(options->stats, PS_LIST_TAIL, "TIME_PHOT", 0, "Time to do photometry", psTimerMark("PPSTACK_PHOT"));
    100101    }
  • trunk/psModules/src/detrend/pmPatternIO.c

    r26893 r26923  
    7777    }
    7878
    79     pmFPAview *thisView = pmFPAviewAlloc(view->nRows); // Copy of input view
    80     *thisView = *view;
    81 
    82     for (int i = 0; i < cell->readouts->n; i++) {
    83         pmReadout *readout = cell->readouts->data[i];
    84         thisView->readout = i;
    85         if (!pmReadoutWritePattern(readout, file->fits)) {
    86             psError(PS_ERR_IO, false, "Failed to write %dth readout", i);
    87             psFree(thisView);
    88             return false;
    89         }
    90     }
    91     psFree(thisView);
     79    // Only do the FIRST readout --- don't want to write lots of headers
     80    pmReadout *readout = cell->readouts->data[0];
     81    if (!pmReadoutWritePattern(readout, file->fits)) {
     82        psError(PS_ERR_IO, false, "Failed to write readout");
     83        return false;
     84    }
    9285    return true;
    9386}
Note: See TracChangeset for help on using the changeset viewer.