Changeset 12520 for trunk/psModules/src/camera/pmFPAExtent.c
- Timestamp:
- Mar 21, 2007, 12:01:32 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPAExtent.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAExtent.c
r11124 r12520 4 4 #include "pmFPA.h" 5 5 6 // return cell pixels bounding the readout 6 7 psRegion *pmReadoutExtent(const pmReadout *readout) 7 8 { … … 30 31 } 31 32 32 33 // return chip pixels bounding the cell (all readouts) 33 34 psRegion *pmCellExtent(const pmCell *cell) 34 35 { … … 69 70 } 70 71 71 72 psRegion *pmChip Extent(const pmChip *chip)72 // return chip pixels included in all cells 73 psRegion *pmChipPixels(const pmChip *chip) 73 74 { 74 75 PS_ASSERT_PTR_NON_NULL(chip, NULL); 75 76 76 psArray *cells = chip->cells; // Arr yaof component cells77 psArray *cells = chip->cells; // Array of component cells 77 78 psRegion *chipExtent = psRegionAlloc(INFINITY, 0, INFINITY, 0); // Extent of chip 78 79 for (long i = 0; i < cells->n; i++) { … … 85 86 psFree(cellExtent); 86 87 } 88 89 return chipExtent; 90 } 91 92 // return pixels in basic FPA grid bounded by chip 93 // this FPA grid has 0,0 at the 0,0 corner of one chip, and is NOT the same 94 // as the astrometry focal plane coordinate system 95 psRegion *pmChipExtent(const pmChip *chip) 96 { 97 PS_ASSERT_PTR_NON_NULL(chip, NULL); 98 99 psRegion *chipExtent = pmChipPixels(chip); 100 if (!chipExtent) return NULL; 87 101 88 102 bool mdok; // Status of MD lookup … … 108 122 } 109 123 110 111 psRegion *pmFPAExtent(const pmFPA *fpa) 124 // return FPA pixels included in all chips 125 // this FPA grid has 0,0 at the 0,0 corner of one chip, and is NOT the same 126 // as the astrometry focal plane coordinate system 127 psRegion *pmFPAPixels(const pmFPA *fpa) 112 128 { 113 129 PS_ASSERT_PTR_NON_NULL(fpa, NULL); 114 130 115 psArray *chips = fpa->chips; // Arr yaof component chips131 psArray *chips = fpa->chips; // Array of component chips 116 132 psRegion *fpaExtent = psRegionAlloc(INFINITY, 0, INFINITY, 0); // Extent of fpa 117 133 for (long i = 0; i < chips->n; i++) {
Note:
See TracChangeset
for help on using the changeset viewer.
