IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 21, 2005, 5:00:14 PM (21 years ago)
Author:
Paul Price
Message:

Mask and weight input and output

File:
1 edited

Legend:

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

    r5462 r5564  
    1515    psArray *masks;                     // The mask data, if it corresponds to this level
    1616    psArray *weights;                   // The weight data, if it corresponds to this level
    17 } pmPixelData;
     17} p_pmHDU;
    1818
    1919typedef struct {
    2020    // Astrometric transformations
    21     psPlaneDistort* fromTangentPlane;   // Transformation from tangent plane to focal plane
    22     psPlaneDistort* toTangentPlane;     // Transformation from focal plane to tangent plane
    23     psProjection *projection;           // Projection from tangent plane to sky
     21    psPlaneDistort* fromTangentPlane;  // Transformation from tangent plane to focal plane
     22    psPlaneDistort* toTangentPlane;    // Transformation from focal plane to tangent plane
     23    psProjection *projection;          // Projection from tangent plane to sky
    2424    // Information
    25     psMetadata *camera;                 // Camera configuration
    26     psMetadata *concepts;               // Values for concepts
    27     psMetadata *phu;                    // Primary Header
    28     psArray *chips;                     // The chips
    29     pmPixelData *data;                  // FITS data
     25    psMetadata *concepts;              // Cache for PS concepts
     26    psMetadata *analysis;              // FPA-level analysis metadata
     27    const psMetadata *camera;          // Camera configuration
     28    psArray *chips;                    // The chips
     29    p_pmHDU *hdu;                      // FITS data
     30    psMetadata *phu;                   // Primary Header
    3031} pmFPA;
    3132
    3233typedef struct {
    3334    // Offset specifying position on focal plane
    34     const int col0;                     // Offset from the left of FPA
    35     const int row0;                     // Offset from the bottom of FPA
     35    int col0;                          // Offset from the left of FPA.
     36    int row0;                          // Offset from the bottom of FPA.
    3637    // Astrometric transformations
    37     psPlaneTransform* toFPA;            // Transformation from chip to FPA coordinates
    38     psPlaneTransform* fromFPA;          // Transformation from FPA to chip coordinates
     38    psPlaneTransform* toFPA;           // Transformation from chip to FPA coordinates
     39    psPlaneTransform* fromFPA;         // Transformation from FPA to chip coordinates
    3940    // Information
    40     psMetadata *concepts;               // Values for concepts
    41     psArray *cells;                     // The cells (referred to by name)
    42     pmFPA *parent;                      // Parent FPA
    43     bool valid;                         // Valid for reading in?
    44     pmPixelData *data;                  // FITS data
     41    psMetadata *concepts;              // Cache for PS concepts
     42    psMetadata *analysis;              // Chip-level analysis metadata
     43    psArray *cells;                    // The cells (referred to by name)
     44    pmFPA *parent;                     // Parent FPA
     45    bool valid;                        // Do we bother about reading and working with this chip?
     46    p_pmHDU *hdu;                       // FITS data
    4547} pmChip;
    4648
    4749typedef struct {
    4850    // Offset specifying position on chip
    49     const int col0;                     // Offset from the left of chip
    50     const int row0;                     // Offset from the bottom of chip
     51    int col0;                          // Offset from the left of chip.
     52    int row0;                          // Offset from the bottom of chip.
    5153    // Astrometric transformations
    52     psPlaneTransform* toChip;           // Transformations from cell to chip coordinates
    53     psPlaneTransform* fromChip;         // Transformations from cell to chip coordinates
    54     psPlaneTransform* toFPA;            // Transformations from cell to FPA coordinates
    55     psPlaneTransform* toTP;             // Transformations from cell to FPA coordinates
    56     psPlaneTransform* toSky;            // Transformations from cell to tangent plane coordinates
     54    psPlaneTransform* toChip;          // Transformations from cell to chip coordinates
     55    psPlaneTransform* toFPA;           // Transformations from cell to FPA coordinates
     56    psPlaneTransform* toSky;           // Transformations from cell to sky coordinates
    5757    // Information
    58     psMetadata *concepts;               // Values for concepts
    59     psMetadata *camera;                 // Camera information
    60     psArray *readouts;                  // The readouts (referred to by number)
    61     pmChip *parent;                     // Parent chip
    62     bool valid;                         // Valid for operating on?
    63     pmPixelData *data;                  // FITS data
     58    psMetadata *concepts;              // Cache for PS concepts
     59    psMetadata *camera;                // Camera information
     60    psMetadata *analysis;              // Cell-level analysis metadata
     61    psArray *readouts;                 // The readouts (referred to by number)
     62    pmChip *parent;                    // Parent chip
     63    bool valid;                        // Do we bother about reading and working with this cell?
     64    p_pmHDU *hdu;                      // FITS data
    6465} pmCell;
    6566
     67typedef struct {
     68    // Position on the cell
     69    int col0;                          // Offset from the left of cell.
     70    int row0;                          // Offset from the bottom of cell.
     71    int colBins;                       // Amount of binning in x-dimension and parity (from sign)
     72    int rowBins;                       // Amount of binning in y-dimension and parity (from sign)
     73    // Information
     74    psImage *image;                    // Imaging area of readout
     75    psImage *mask;                     // Mask for image
     76    psImage *weight;                   // Weight for image
     77    psList *bias;                      // List of bias section (sub-)images
     78    psMetadata *analysis;              // Readout-level analysis metadata
     79    pmCell *parent;                    // Parent cell
     80} pmReadout;
    6681
     82#if 0
    6783typedef struct {
    6884    // Details for position on the cell
     
    8096    psImage *weight;                    // Weight image
    8197} pmReadout;
    82 
     98#endif
    8399
    84100psList *pmReadoutGetBias(pmReadout *readout // Readout for which to get the bias sections
     
    87103
    88104// Allocators and deallocators
    89 pmPixelData *pmPixelDataAlloc(const char *extname);
    90 void p_pmPixelDataFree(pmPixelData *pd);
     105p_pmHDU *p_pmHDUAlloc(const char *extname);
     106void p_pmHDUFree(p_pmHDU *hdu);
    91107pmFPA *pmFPAAlloc(const psMetadata *camera // Camera configuration
    92108    );
     
    107123                          psImage *image, // The pixels
    108124                          psImage *mask,// The mask pixels
    109                           int col0, int row0, int colParity, int rowParity, int colBin, int rowBin // Data
     125                          int col0, int row0, int colBin, int rowBin // Data
    110126    );
    111127void p_pmReadoutFree(pmReadout *readout);
Note: See TracChangeset for help on using the changeset viewer.