Changeset 13655
- Timestamp:
- Jun 5, 2007, 2:44:10 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPAExtent.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAExtent.c
r13499 r13655 4 4 #include "pmHDU.h" 5 5 #include "pmFPA.h" 6 #include "pmHDUUtils.h" 6 7 7 8 // return cell pixels bounding the readout … … 18 19 } 19 20 21 int xSize = 0; 22 int ySize = 0; 23 20 24 if (!image) { 21 // Don't have anything to base the true extent on, so have to give the largest possible extent 22 int xSize = psMetadataLookupS32(NULL, readout->parent->concepts, "CELL.XSIZE"); 23 int ySize = psMetadataLookupS32(NULL, readout->parent->concepts, "CELL.YSIZE"); 25 pmHDU *hdu = pmHDUFromReadout (readout); 26 if (hdu && hdu->header) { 27 xSize = psMetadataLookupS32(NULL, hdu->header, "NAXIS1"); 28 ySize = psMetadataLookupS32(NULL, hdu->header, "NAXIS2"); 29 } else { 30 // Don't have anything to base the true extent on, so have to give the hardwired value (largest possible extent) 31 xSize = psMetadataLookupS32(NULL, readout->parent->concepts, "CELL.XSIZE"); 32 ySize = psMetadataLookupS32(NULL, readout->parent->concepts, "CELL.YSIZE"); 33 } 24 34 return psRegionAlloc(0, xSize, 0, ySize); 25 35 }
Note:
See TracChangeset
for help on using the changeset viewer.
