IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 10, 2013, 11:33:10 AM (14 years ago)
Author:
eugene
Message:

merge changes from trunk

Location:
branches/eam_branches/ipp-20121219
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20121219

  • branches/eam_branches/ipp-20121219/ppStack/src

    • Property svn:ignore
      •  

        old new  
        66*.la
        77ppStack
         8ppStackMedian
        89config.h
        910config.h.in
         
        1213ppStackErrorCodes.c
        1314ppStackErrorCodes.h
         15
  • branches/eam_branches/ipp-20121219/ppStack/src/ppStackCombinePrepare.c

    r34800 r34902  
    3434/*       options->expRO = NULL; */
    3535/*     } */
    36     pmCell *bkgCell;
    37     int bkg_r0,bkg_c0;
    38     int bkg_nC,bkg_nR;
     36    int bkg_r0 = 0,bkg_c0 = 0;
     37    int bkg_nC = 0,bkg_nR = 0;
    3938    if (bkgName) {
    4039      ppStackFileActivationSingle(config, PPSTACK_FILES_BKG, true, 0);
    4140      pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PPSTACK.INPUT.BKGMODEL", 0);
     41      if (!file)  {
     42        psError(PPSTACK_ERR_ARGUMENTS, false, "Output background model selected but no inputs provided.");
     43        return false;
     44      }
    4245      pmFPAview *view = ppStackFilesIterateDown(config);
    4346      pmReadout *ro = pmFPAviewThisReadout(view,file->fpa);
     
    4750      bkg_nC = ro->image->numCols;
    4851      bkg_nR = ro->image->numRows;
    49       bkgCell = pmFPAfileThisCell(config->files, view, bkgName); // Bkg cell
     52      pmCell *bkgCell = pmFPAfileThisCell(config->files, view, bkgName); // Bkg cell
    5053     
    5154      options->bkgRO = pmReadoutAlloc(bkgCell); // BKG readout
Note: See TracChangeset for help on using the changeset viewer.