IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 12, 2010, 2:24:48 PM (16 years ago)
Author:
bills
Message:

pass stage to ppstamp. If stage is diff use a different file rule.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/src/ppstampParseCamera.c

    r24966 r29379  
    88
    99// Set up the ppstamp output Image file
    10 bool setupOutput(pmConfig *config, pmFPAfile *input, bool doMask, bool doWeight)
     10bool setupOutput(pmConfig *config, pmFPAfile *input, psString stage, bool doMask, bool doWeight)
    1111{
    12     pmFPAfile *output = pmFPAfileDefineSkycell(config, NULL, "PPSTAMP.OUTPUT");
     12    pmFPAfile *output;
     13   
     14    if (!stage || (strcmp(stage, "diff") != 0)) {
     15        output = pmFPAfileDefineSkycell(config, NULL, "PPSTAMP.OUTPUT");
     16    } else {
     17        // need special filerule for diff stage image to allow for negative values
     18        output = pmFPAfileDefineSkycell(config, NULL, "PPSTAMP.OUTPUT.DIFF");
     19    }
     20    if (!output) {
     21        psError(PS_ERR_UNKNOWN, false, "Unable to setup output.");
     22        return false;
     23    }
     24
    1325    output->save = true;
    1426
     
    2941// something else that I'm missing?
    3042
    31 bool ppstampParseCamera(pmConfig *config)
     43bool ppstampParseCamera(pmConfig *config, ppstampOptions *options)
    3244{
    3345    bool status = false;
     
    8395
    8496    // Set up the output target
    85     if (!setupOutput(config, input, doMask, doWeight)) {
     97    if (!setupOutput(config, input, options->stage, doMask, doWeight)) {
    8698        psError(PS_ERR_UNKNOWN, false, "Unable to setup output.");
    8799        return false;
Note: See TracChangeset for help on using the changeset viewer.