IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 29, 2006, 8:09:31 AM (20 years ago)
Author:
eugene
Message:

added ppFocus code to drop previous camera

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppFocus.c

    r7738 r7749  
    1717    }
    1818
    19     // define recipe options
    20     // define the active I/O files
    21     ppImageOptions *options = ppFocusParseCamera(config);
    22     if (options == NULL) {
    23         psErrorStackPrint(stderr, "");
    24         exit(1);
    25     }
    26    
    2719    // we search the argument data for the named fileset (argname)
    2820    psArray *infiles = psMetadataLookupPtr(NULL, config->arguments, "INPUT");
     
    3830    for (int i = 0; i < infiles->n; i++) {
    3931
     32        // define recipe options
     33        // define the active I/O files
     34        ppImageOptions *options = ppFocusParseCamera(config, i);
     35        if (options == NULL) {
     36            psErrorStackPrint(stderr, "");
     37            exit(1);
     38        }
     39
    4040        // Image Arithmetic Loop
     41        // XXX ppFocus REQUIRES photom: for it to be true?
    4142        if (!ppImageLoop(config, options)) {
    4243            psErrorStackPrint(stderr, "");
     
    4849        ppFocusGetFWHM (config, focus, fwhm);
    4950
    50         // silently ignore failure for (i == infiles->n)
    51         pmFPAfileDefineSingleFromArgs (NULL, config, "PPIMAGE.INPUT", "INPUT", i+1);
     51        ppFocusDropCamera (config);
     52        psFree (options);
    5253    }
    5354
     
    5758
    5859    // Cleaning up
    59     ppImageCleanup(config, options);
     60    ppImageCleanup(config, NULL);
    6061    return EXIT_SUCCESS;
    6162}
Note: See TracChangeset for help on using the changeset viewer.