IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 15, 2008, 5:51:49 PM (18 years ago)
Author:
eugene
Message:

extensive fixes to make these two programs actually work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dvoTools/src/dvoMakeCorrParseCamera.c

    r11804 r20180  
    77dvoMakeCorrOptions *dvoMakeCorrParseCamera (pmConfig *config) {
    88
     9    // the REFERENCE image defines the camera, and all recipes and options the follow
     10    pmFPAfile *refhead = pmFPAfileDefineFromArgs (NULL, config, "DVOCORR.REFHEAD", "REFHEAD");
     11    if (!refhead) {
     12        psError(PS_ERR_IO, false, "Failed to build FPA from DVOCORR.REFHEAD");
     13        return NULL;
     14    }
     15
    916    // the input image defines the camera, and all recipes and options the follow
    1017    pmFPAfile *input = pmFPAfileDefineFromArgs (NULL, config, "DVOCORR.INPUT", "INPUT");
    1118    if (!input) {
    1219        psError(PS_ERR_IO, false, "Failed to build FPA from DVOCORR.INPUT");
    13         return NULL;
    14     }
    15 
    16     // the input image defines the camera, and all recipes and options the follow
    17     pmFPAfile *refhead = pmFPAfileDefineFromArgs (NULL, config, "DVOCORR.REFHEAD", "REFHEAD");
    18     if (!refhead) {
    19         psError(PS_ERR_IO, false, "Failed to build FPA from DVOCORR.REFHEAD");
    2020        return NULL;
    2121    }
     
    2929    // the following files are output targets
    3030    // XXX get the binning from where?
    31     pmFPAfile *output = pmFPAfileDefineFromFPA(config, input->fpa, 1, 1, "DVOCORR.OUTPUT");
     31    pmFPAfile *output = pmFPAfileDefineFromFPA(config, refhead->fpa, 1, 1, "DVOCORR.OUTPUT");
    3232    if (!output) {
    3333        psError(PS_ERR_IO, false, _("Unable to generate output file from DVOCORR.OUTPUT"));
     
    3535        return NULL;
    3636    }
     37    output->save = TRUE;
    3738
    3839    // Chip selection: turn on only the chips specified (pass status to suppress missing-key log msg)
Note: See TracChangeset for help on using the changeset viewer.