IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 15, 2012, 1:32:57 PM (14 years ago)
Author:
watersc1
Message:

Median code completes now, but is saving in the wrong output format.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20120906/ppStack/src/ppStackSetup.c

    r34516 r34666  
    9191    options->bkgImages = psArrayAlloc(num);
    9292    pmFPAview *view = pmFPAviewAlloc(0);
     93    int nullMasks = 0;
     94    int nullVariances = 0;
    9395    for (int i = 0; i < num; i++) {
    9496        {
     
    98100        {
    99101            // We want the convolved mask, since that defines the area that has been tested for outliers
     102          if (options->convolve) {
    100103            options->origMasks->data[i] = psMemIncrRefCounter(options->convMasks->data[i]);
     104          }
     105          else {
     106            pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PPSTACK.INPUT.MASK", i);
     107            options->origMasks->data[i] = pmFPAfileName(file, view, config);
     108          }
     109          if (!(options->origMasks->data[i])) {
     110            nullMasks++;
     111          }
    101112        }
    102113        {
    103114            pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PPSTACK.INPUT.VARIANCE", i);
    104115            options->origVariances->data[i] = pmFPAfileName(file, view, config);
     116            if (!(options->origVariances->data[i])) {
     117              nullVariances++;
     118            }
    105119        }
    106120/*      { */
     
    109123/*      } */
    110124    }
     125    if (nullMasks == num) {
     126      psFree(options->origMasks);
     127    }
     128    if (nullVariances == num) {
     129      psFree(options->origVariances);
     130    }
     131   
    111132    psFree(view);
    112133
Note: See TracChangeset for help on using the changeset viewer.