IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 5, 2007, 5:38:16 PM (19 years ago)
Author:
Paul Price
Message:

Adding variance and mask output.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pswarp/src/pswarpDataSave.c

    r10946 r12771  
    1616    pmFPAfile *input = psMetadataLookupPtr (NULL, config->files, "PSWARP.INPUT");
    1717    if (!input) {
    18         psError(PSWARP_ERR_CONFIG, true, "Can't find input data!\n");
    19         return false;
     18        psError(PSWARP_ERR_CONFIG, true, "Can't find input data!\n");
     19        return false;
    2020    }
    2121
     
    2323    pmFPAfileActivate (config->files, false, NULL);
    2424    pmFPAfileActivate (config->files, true, "PSWARP.OUTPUT");
     25    pmFPAfileActivate (config->files, true, "PSWARP.OUTPUT.MASK");
     26    pmFPAfileActivate (config->files, true, "PSWARP.OUTPUT.WEIGHT");
    2527    pmFPAview *view = pmFPAviewAlloc (0);
    2628
     
    3133        psTrace ("pswarp", 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process);
    3234        if (!chip->process || !chip->file_exists) { continue; }
    33         pmFPAfileIOChecks (config, view, PM_FPA_BEFORE);
     35        pmFPAfileIOChecks (config, view, PM_FPA_BEFORE);
    3436
    35         while ((cell = pmFPAviewNextCell (view, input->fpa, 1)) != NULL) {
     37        while ((cell = pmFPAviewNextCell (view, input->fpa, 1)) != NULL) {
    3638            psTrace ("pswarp", 4, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process);
    3739            if (!cell->process || !cell->file_exists) { continue; }
    38             pmFPAfileIOChecks (config, view, PM_FPA_BEFORE);
     40            pmFPAfileIOChecks (config, view, PM_FPA_BEFORE);
    3941
    40             // process each of the readouts
    41             while ((readout = pmFPAviewNextReadout (view, input->fpa, 1)) != NULL) {
    42                 pmFPAfileIOChecks (config, view, PM_FPA_BEFORE);
    43                 if (! readout->data_exists) { continue; }
     42            // process each of the readouts
     43            while ((readout = pmFPAviewNextReadout (view, input->fpa, 1)) != NULL) {
     44                pmFPAfileIOChecks (config, view, PM_FPA_BEFORE);
     45                if (! readout->data_exists) { continue; }
    4446
    45                 // pswarpConvertReadout (readout, config);
     47                // pswarpConvertReadout (readout, config);
    4648
    47                 pmFPAfileIOChecks (config, view, PM_FPA_AFTER);
    48             }
    49             pmFPAfileIOChecks (config, view, PM_FPA_AFTER);
    50         }
    51         pmFPAfileIOChecks (config, view, PM_FPA_AFTER);
     49                pmFPAfileIOChecks (config, view, PM_FPA_AFTER);
     50            }
     51            pmFPAfileIOChecks (config, view, PM_FPA_AFTER);
     52        }
     53        pmFPAfileIOChecks (config, view, PM_FPA_AFTER);
    5254    }
    5355    pmFPAfileIOChecks (config, view, PM_FPA_AFTER);
Note: See TracChangeset for help on using the changeset viewer.