IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 7, 2013, 1:40:20 PM (13 years ago)
Author:
bills
Message:

Changes to the chip backround and warp background stages.
In chip background stage

Apply an auxillary mask selected for now from hard coded location.
Read input variance and include it in the output data products

In warp background stage

Read and write variance images
Get smf from alternate camRun. For now using a hard coded label
eventually from the warpBackgroundRun

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppBackground/src/ppBackgroundCamera.c

    r28289 r35118  
    6565    }
    6666
     67    fileArguments("VARIANCE", data->varianceName, "Input uncorrected variance", data->config);
     68    pmFPAfileBindFromArgs(&status, image, data->config, "PPBACKGROUND.VARIANCE", "VARIANCE"); // File
     69    if (!status) {
     70        psError(psErrorCodeLast(), false, "Failed to build file from PPBACKGROUND.VARIANCE");
     71        return false;
     72    }
     73
     74    if (data->auxMaskName) {
     75        fileArguments("AUXMASK", data->auxMaskName, "Auxiliary mask", data->config);
     76        pmFPAfileBindFromArgs(&status, image, data->config, "PPBACKGROUND.AUXMASK", "AUXMASK"); // File
     77        if (!status) {
     78            psError(psErrorCodeLast(), false, "Failed to build file from PPBACKGROUND.MASK");
     79            return false;
     80        }
     81    }
     82
    6783    pmFPAfile *output = pmFPAfileDefineOutput(data->config, image->fpa, "PPBACKGROUND.OUTPUT");
    6884    if (!output) {
     
    7995    outMask->save = true;
    8096
     97    pmFPAfile *outVariance = pmFPAfileDefineOutput(data->config, output->fpa, "PPBACKGROUND.OUTPUT.VARIANCE");
     98    if (!outVariance) {
     99        psError(psErrorCodeLast(), false, "Unable to define output.");
     100        return false;
     101    }
     102    outVariance->save = true;
     103
    81104#if 0
    82105    // Now the camera has been determined, we can read the recipe
Note: See TracChangeset for help on using the changeset viewer.