IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 26, 2010, 5:34:51 PM (16 years ago)
Author:
Paul Price
Message:

Can't do mask stats if there's no stats.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSub/src/ppSubMaskStats.c

    r28123 r28131  
    99
    1010
    11 bool ppSubMaskStats(pmConfig *config, pmFPAview *view, psMetadata *stats) {
     11bool ppSubMaskStats(pmConfig *config, pmFPAview *view, psMetadata *stats)
     12{
    1213  PS_ASSERT_PTR_NON_NULL(view, false);
    1314  PS_ASSERT_PTR_NON_NULL(config, false);
     15
     16  pmReadout *readout = pmFPAfileThisReadout(config->files, view, "PPSUB.OUTPUT");
     17  if (!stats || !readout || !readout->data_exists) {
     18      // Nothing to process
     19      return(true);
     20  }
    1421
    1522  bool status;
     
    2734  psS32 Npix_advisory = 0;
    2835
    29   pmReadout *readout = pmFPAfileThisReadout(config->files, view, "PPSUB.OUTPUT");
    30   if (!readout || !readout->data_exists) {
    31     // Nothing to process
    32     return(true);
    33   }
    3436  psImage *mask = readout->mask;  // Mask of interest;
    3537  if (!pmSingleImageMaskStats(mask,&Npix_valid,&Npix_static,&Npix_magic,
Note: See TracChangeset for help on using the changeset viewer.