IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34667


Ignore:
Timestamp:
Nov 15, 2012, 5:56:47 PM (14 years ago)
Author:
watersc1
Message:

Fixed one problem (the mask wasn't set, so the scaling code refused to scale the floats correctly), now having PSPHOT.DETECTIONS issues again.

Location:
branches/czw_branch/20120906
Files:
3 edited

Legend:

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

    r34666 r34667  
    2626    pmCell *cell = pmFPAfileThisCell(config->files, view, outName); // Output cell
    2727    options->outRO = pmReadoutAlloc(cell); // Output readout
    28    
    29     pmCell *expCell = pmFPAfileThisCell(config->files, view, expName); // Exposure cell
    30     options->expRO = pmReadoutAlloc(expCell); // Output readout
    3128
     29    if (expName) {
     30      pmCell *expCell = pmFPAfileThisCell(config->files, view, expName); // Exposure cell
     31      options->expRO = pmReadoutAlloc(expCell); // Output readout
     32    }
     33    else {
     34      options->expRO = NULL;
     35    }
    3236    pmCell *bkgCell;
    3337    int bkg_r0,bkg_c0;
     
    7882    }
    7983
    80     if (!pmReadoutStackDefineOutput(options->expRO, col0, row0, numCols, numRows, true, true, 0)) {
     84    if (expName) {
     85      if (!pmReadoutStackDefineOutput(options->expRO, col0, row0, numCols, numRows, true, true, 0)) {
    8186        psError(PPSTACK_ERR_ARGUMENTS, false, "Unable to prepare output.");
    8287        return false;
     88      }
    8389    }
    8490
  • branches/czw_branch/20120906/ppStack/src/ppStackThread.c

    r34666 r34667  
    9797            psFree(resolved); \
    9898        }
    99         fprintf(stderr,"ppST:99 %s %s\n",pmConfigConvertFilename(imageNames->data[i], config, false, false),
    100                 (char*)imageNames->data[i]);
    10199               
    102100        IMAGE_OPEN(imageNames, stack->imageFits, i);
  • branches/czw_branch/20120906/psModules/src/imcombine/pmStack.c

    r34516 r34667  
    14011401      }
    14021402      combined->image->data.F32[y][x] = stats->robustMedian;
     1403      combined->mask->data.PS_TYPE_IMAGE_MASK_DATA[y][x] = 0;
    14031404    }
    14041405  }
Note: See TracChangeset for help on using the changeset viewer.