IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 19, 2007, 4:49:08 PM (19 years ago)
Author:
Paul Price
Message:

Adding chip and mask output for chip-mosaicked files. Was going to make this the default output, but we only have to have it selected in the recipe. Reduced the name of the filerule down, so that it's not excessively long (e.g., PPIMAGE.OUTPUT.CHIP.MASK --> PPIMAGE.CHIP.MASK).

File:
1 edited

Legend:

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

    r13843 r13901  
    1818    if (config == NULL) {
    1919        psErrorStackPrint(stderr, "Unable to parse command-line arguments.");
     20        ppImageCleanup(config, NULL);
    2021        exit(PS_EXIT_CONFIG_ERROR);
    2122    }
     
    2627    if (options == NULL) {
    2728        psErrorStackPrint(stderr, "Unable to parse camera.");
     29        ppImageCleanup(config, options);
    2830        exit(PS_EXIT_CONFIG_ERROR);
    2931    }
     
    3234    if (!ppImageLoop(config, options)) {
    3335        psErrorStackPrint(stderr, "Unable to loop over input");
     36        ppImageCleanup(config, options);
    3437        exit(PS_EXIT_SYS_ERROR);
    3538    }
     
    6265            if (fpa->hdu->header) fprintf (stderr, "  (%d,%d) header\n", -1, -1);
    6366        } else {
    64             // fprintf (stderr, "  has no fpa data (%d,%d)\n", -1, -1);
    65         }
     67            // fprintf (stderr, "  has no fpa data (%d,%d)\n", -1, -1);
     68        }
    6669        for (int i = 0; i < fpa->chips->n; i++) {
    6770            pmChip *chip = fpa->chips->data[i];
     
    7275                if (chip->hdu->header) fprintf (stderr, "  (%d,%d) header\n", i, -1);
    7376            } else {
    74                 // fprintf (stderr, "  has no chip data (%d,%d)\n", i, -1);
    75             }
     77                // fprintf (stderr, "  has no chip data (%d,%d)\n", i, -1);
     78            }
    7679            for (int j = 0; j < chip->cells->n; j++) {
    7780                pmCell *cell = chip->cells->data[j];
     
    8285                    if (cell->hdu->header) fprintf (stderr, "  (%d,%d) header\n", i, j);
    8386                } else {
    84                     // fprintf (stderr, "  has no cell data (%d,%d)\n", i, j);
    85                 }
    86                 for (int k = 0; k < cell->readouts->n; k++) {
    87                     pmReadout *readout = cell->readouts->data[k];
    88                     if (readout) {
    89                         if (readout->image) fprintf (stderr, "  (%d,%d,%d) image\n", i, j, k);
    90                         if (readout->weight) fprintf (stderr, "  (%d,%d,%d) weight\n", i, j, k);
    91                         if (readout->mask) fprintf (stderr, "  (%d,%d,%d) masks\n", i, j, k);
    92                     }
    93                 }
     87                    // fprintf (stderr, "  has no cell data (%d,%d)\n", i, j);
     88                }
     89                for (int k = 0; k < cell->readouts->n; k++) {
     90                    pmReadout *readout = cell->readouts->data[k];
     91                    if (readout) {
     92                        if (readout->image) fprintf (stderr, "  (%d,%d,%d) image\n", i, j, k);
     93                        if (readout->weight) fprintf (stderr, "  (%d,%d,%d) weight\n", i, j, k);
     94                        if (readout->mask) fprintf (stderr, "  (%d,%d,%d) masks\n", i, j, k);
     95                    }
     96                }
    9497            }
    9598        }
Note: See TracChangeset for help on using the changeset viewer.