Changeset 12520
- Timestamp:
- Mar 21, 2007, 12:01:32 PM (19 years ago)
- Location:
- trunk/psModules/src/camera
- Files:
-
- 3 edited
-
pmFPAExtent.c (modified) (5 diffs)
-
pmFPAExtent.h (modified) (3 diffs)
-
pmFPAfileDefine.c (modified) (1 diff)
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++) { -
trunk/psModules/src/camera/pmFPAExtent.h
r11253 r12520 3 3 * @author Paul Price, IfA 4 4 * 5 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $6 * @date $Date: 2007-0 1-24 02:54:14$5 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2007-03-21 22:01:32 $ 7 7 * Copyright 2005-2006 Institute for Astronomy, University of Hawaii 8 8 */ … … 26 26 ); 27 27 28 // return chip pixels included in all cells 29 psRegion *pmChipPixels(const pmChip *chip); 30 28 31 /// Return the extent of a chip 29 32 /// … … 31 34 psRegion *pmChipExtent(const pmChip *chip ///< The chip of interest 32 35 ); 36 37 // return FPA pixels included in all chips 38 // this FPA grid has 0,0 at the 0,0 corner of one chip, and is NOT the same 39 // as the astrometry focal plane coordinate system 40 psRegion *pmFPAPixels(const pmFPA *fpa); 33 41 34 42 /// Return the extent of an FPA -
trunk/psModules/src/camera/pmFPAfileDefine.c
r12455 r12520 332 332 // adjust the rules to identify these files in the file->names data 333 333 psFree (file->filerule); 334 // XXX DROP ME: psFree (file->filesrc);335 334 file->filerule = psStringCopy ("@FILES"); 336 335 file->filesrc = psStringCopy ("{CHIP.NAME}.{CELL.NAME}");
Note:
See TracChangeset
for help on using the changeset viewer.
