IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 18, 2005, 4:19:41 PM (21 years ago)
Author:
Paul Price
Message:

Current state before I go on holiday. Not sure if it works or not. Not current for pslib8.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/scripts/src/phase2/pmFPA.h

    r5104 r5371  
    1111typedef struct {
    1212    const char *extname;                // Extension name, if it corresponds to this level
    13     psArray *pixels;                    // The pixel data, if it corresponds to this level
    1413    psMetadata *header;                 // The FITS header, if it corresponds to this level
    15 } p_pmHDU;
     14    psArray *images;                    // The pixel data, if it corresponds to this level
     15    psArray *masks;                     // The mask data, if it corresponds to this level
     16    psArray *weights;                   // The weight data, if it corresponds to this level
     17} pmPixelData;
    1618
    1719typedef struct {
     
    2527    psMetadata *phu;                    // Primary Header
    2628    psArray *chips;                     // The chips
    27     p_pmHDU *private;                   // FITS data
     29    pmPixelData *data;                  // FITS data
    2830} pmFPA;
    2931
     
    4042    pmFPA *parent;                      // Parent FPA
    4143    bool valid;                         // Valid for reading in?
    42     p_pmHDU *private;                   // FITS data
     44    pmPixelData *data;                  // FITS data
    4345} pmChip;
    4446
     
    5961    pmChip *parent;                     // Parent chip
    6062    bool valid;                         // Valid for operating on?
    61     p_pmHDU *private;                   // FITS data
     63    pmPixelData *data;                  // FITS data
    6264} pmCell;
    6365
     
    7274    const unsigned int rowBins;         // Amount of binning in y-dimension
    7375    // Information
     76    psMetadata *concepts;               // Concepts for readouts
     77    pmCell *parent;                     // Parent cell
    7478    psImage *image;                     // The pixels
    7579    psImage *mask;                      // Mask image
    76     psList *overscans;                  // List of subimages containing the overscan regions
    77     psMetadata *concepts;               // Concepts for readouts
     80    psImage *weight;                    // Weight image
    7881} pmReadout;
    7982
     83
     84psList *pmReadoutGetBias(pmReadout *readout // Readout for which to get the bias sections
     85    );
     86
     87
    8088// Allocators and deallocators
    81 p_pmHDU *p_pmHDUAlloc(const char *extname);
    82 void p_pmHDUFree(p_pmHDU *hdu);
     89pmPixelData *pmPixelDataAlloc(const char *extname);
     90void p_pmPixelDataFree(pmPixelData *pd);
    8391pmFPA *pmFPAAlloc(const psMetadata *camera // Camera configuration
    8492    );
     
    96104void p_pmCellFree(pmCell *cell);
    97105
    98 pmReadout *pmReadoutAlloc(pmCell *cell, // Cell to which the readout belongs
     106pmReadout *pmReadoutAlloc(pmCell *cell, // Cell to which the readout belongs
    99107                          psImage *image, // The pixels
    100                           psList *overscans, // The overscan images
     108                          psImage *mask,// The mask pixels
    101109                          int col0, int row0, int colParity, int rowParity, int colBin, int rowBin // Data
    102110    );
Note: See TracChangeset for help on using the changeset viewer.