IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 11, 2012, 2:04:31 PM (13 years ago)
Author:
watersc1
Message:

Merge from my branch including background restoration and stack stage projection cell binned images.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/ppSkycell/src/ppSkycellCamera.c

    r28375 r34800  
    103103        return false;
    104104    }
    105     if (!pmFPAfileDefineOutput(data->config, NULL, "PPSKYCELL.BIN1")) {
     105    pmFPAfile *bin1 = pmFPAfileDefineOutput(data->config, NULL, "PPSKYCELL.BIN1");
     106    if (!bin1) {
    106107        psError(psErrorCodeLast(), false, "Unable to define output.");
    107108        return false;
    108109    }
    109     if (!pmFPAfileDefineOutput(data->config, NULL, "PPSKYCELL.BIN2")) {
     110    pmFPAfile *bin2 = pmFPAfileDefineOutput(data->config, NULL, "PPSKYCELL.BIN2");
     111    if (!bin2) {
    110112        psError(psErrorCodeLast(), false, "Unable to define output.");
    111113        return false;
     114    }
     115    if (data->masksName) {
     116      pmFPAfile *mask1 = pmFPAfileDefineOutput(data->config, bin1->fpa , "PPSKYCELL.BIN1.MASK");
     117      if (!mask1) {
     118        psError(psErrorCodeLast(), false, "Unable to define output.");
     119        return false;
     120      }
     121      mask1->save = true;
     122      pmFPAfile *mask2 = pmFPAfileDefineOutput(data->config, bin2->fpa , "PPSKYCELL.BIN2.MASK");
     123      if (!mask2) {
     124        psError(psErrorCodeLast(), false, "Unable to define output.");
     125        return false;
     126      }
     127      mask2->save = true;
    112128    }
    113129
Note: See TracChangeset for help on using the changeset viewer.