IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35270


Ignore:
Timestamp:
Mar 8, 2013, 10:23:14 AM (13 years ago)
Author:
watersc1
Message:

Added checks to skip missing entries. I'm unclear how we get a chip/cell for them if we don't have the file, but this at least allows things to finish.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/detrend/pmPattern.c

    r35081 r35270  
    997997      pmChip *chip = out->fpa->chips->data[i];
    998998      pmCell *cell = chip->cells->data[0]; // Cell of interest
    999       pmReadout *ro = cell->readouts->data[0]; // Readout of interest
    1000 
     999
     1000     
    10011001      psStatsInit(bgStats);
    10021002
     
    10091009      int y = chipName[3] - '0';
    10101010
    1011      
     1011      if ((cell->readouts->n != 1)||(!chip->data_exists))  {
     1012        A->data.F64[y][x] = NAN;
     1013        B->data.F64[y][x] = NAN;
     1014        C->data.F64[y][x] = NAN;
     1015        D->data.F64[y][x] = NAN;
     1016        continue;
     1017      }
     1018      pmReadout *ro = cell->readouts->data[0]; // Readout of interest     
    10121019      for (int j = 0; j < 4; j++) {
    10131020        if (j == 0) {  // Region B
     
    12841291        pmChip *chip = out->fpa->chips->data[i];
    12851292        pmCell *cell = chip->cells->data[0]; // Cell of interest
     1293        if ((cell->readouts->n != 1)||(!chip->data_exists))  {
     1294          continue;
     1295        }
    12861296        pmReadout *ro = cell->readouts->data[0]; // Readout of interest
    12871297        const char *chipName = psMetadataLookupStr(NULL,chip->concepts, "CHIP.NAME");
Note: See TracChangeset for help on using the changeset viewer.