IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 10, 2010, 3:02:06 PM (16 years ago)
Author:
Paul Price
Message:

Implement chip mosaic for ppVizPattern. Pattern I/O is now correct: subtraction of the pattern from the pattern-subtracted image restores the original image.

Location:
branches/eam_branches/20091201/ppViz/src/ppVizPattern
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091201/ppViz/src/ppVizPattern

    • Property svn:ignore
      •  

        old new  
        1 ppVizPSF
        21Makefile.in
        3 ppVizPSFVersionDefinitions.h
        42.deps
        53Makefile
         4ppVizPattern
         5ppVizPatternVersionDefinitions.h
  • branches/eam_branches/20091201/ppViz/src/ppVizPattern/ppVizPatternLoop.c

    r26842 r26847  
    1515{
    1616    pmConfig *config = data->config;                                        // Configuration data
    17     pmFPAfile *input = pmFPAfileSelectSingle(config->files, "PPVIZPATTERN.INPUT", 0); // File with PSF
     17    pmFPAfile *input = pmFPAfileSelectSingle(config->files, "PPVIZPATTERN.INPUT", 0); // Input file
     18    pmFPAfile *output = pmFPAfileSelectSingle(config->files, "PPVIZPATTERN.CHIP", 0); // Output file
    1819
    1920    pmFPAview *view = pmFPAviewAlloc(0); // Pointer into FPA hierarchy
     
    4849                    return false;
    4950                }
    50                 if (!readout->data_exists) {
     51                // Need to generate an image even if there's nothing in this readout, so chip-mosaicked image
     52                // is filled in.
     53                if (!readout->data_exists && !cell->data_exists && !chip->data_exists) {
    5154                    continue;
    5255                }
     
    100103                    return false;
    101104                }
     105
     106                // Blow away bias sections to prevent warnings
     107                psMetadataItem *biassec = psMetadataLookup(cell->concepts, "CELL.BIASSEC"); // Bias section
     108                psFree(biassec->data.list);
     109                biassec->data.list = psListAlloc(NULL);
    102110            }
    103111            // Cell
     
    107115            }
    108116        }
     117
     118        pmChip *outChip = pmFPAfileThisChip(config->files, view, "PPVIZPATTERN.CHIP");
     119        if (!outChip->hdu && !outChip->parent->hdu) {
     120            const char *name = psMetadataLookupStr(NULL, chip->parent->concepts, "FPA.OBS"); // Name of FPA
     121            pmFPAAddSourceFromView(outChip->parent, name, view, output->format);
     122        }
     123        if (!pmChipMosaic(outChip, chip, true, MASK_BAD)) {
     124            psError(PS_ERR_UNKNOWN, false, "Unable to mosaic chip.");
     125            return false;
     126        }
     127
    109128        // Chip
    110129        if (!pmFPAfileIOChecks(config, view, PM_FPA_AFTER)) {
Note: See TracChangeset for help on using the changeset viewer.