IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27661


Ignore:
Timestamp:
Apr 12, 2010, 10:03:56 AM (16 years ago)
Author:
Paul Price
Message:

Allow kernel to be specified on command-line

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSub/src/ppSubCamera.c

    r27596 r27661  
    101101                                 pmFPAfile *bind,    // File to which to bind, or NULL
    102102                                 char *filerule,     // Name of file rule
     103                                 const char *argname,   // Argument name for file
    103104                                 pmFPAfileType fileType // Type of file
    104105    )
     
    108109    // look for the file on the RUN metadata
    109110    pmFPAfile *file = pmFPAfileDefineFromRun(&status, NULL, config, filerule); // File to return
     111    if (!status) {
     112        psError(psErrorCodeLast(), false, "Failed to load file definition for %s", filerule);
     113        return NULL;
     114    }
     115    file = pmFPAfileBindFromArgs(&status, bind, config, filerule, argname);
    110116    if (!status) {
    111117        psError(psErrorCodeLast(), false, "Failed to load file definition for %s", filerule);
     
    337343
    338344    // Output subtraction kernel
    339     pmFPAfile *kernel = defineCalcFile(config, output, "PPSUB.OUTPUT.KERNELS", PM_FPA_FILE_SUBKERNEL);
     345    pmFPAfile *kernel = defineCalcFile(config, output, "PPSUB.OUTPUT.KERNELS", "KERNEL",
     346                                       PM_FPA_FILE_SUBKERNEL);
    340347    if (!kernel) {
    341348        psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to define file PPSUB.OUTPUT.KERNELS");
Note: See TracChangeset for help on using the changeset viewer.