Changeset 6621 for branches/rel10_ifa/psModules/src/astrom/pmFPARead.c
- Timestamp:
- Mar 16, 2006, 4:15:36 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/rel10_ifa/psModules/src/astrom/pmFPARead.c
r6618 r6621 7 7 #include "pmFPARead.h" 8 8 #include "pmConcepts.h" 9 #include "psRegionIsBad.h" 9 10 10 11 ////////////////////////////////////////////////////////////////////////////////////////////////////////////// … … 137 138 #endif 138 139 139 static bool badRegion(const psRegion *region)140 {141 return isnan(region->x0) || isnan(region->x1) || isnan(region->y0) || isnan(region->y1);142 }143 144 140 // Carve a readout from the image pixels 145 141 static pmReadout *readoutCarve(pmCell *cell, // Cell into which the new readout will be placed … … 152 148 153 149 // The image corresponding to the trim region 154 if ( badRegion(trimsec)) {150 if (psRegionIsBad(*trimsec)) { 155 151 psString regionString = psRegionToString(*trimsec); 156 152 psError(PS_ERR_IO, true, "Invalid trim section: %s\n", regionString); … … 165 161 psRegion *biassec = NULL; // A BIASSEC region from the list 166 162 while ((biassec = psListGetAndIncrement(iter))) { 167 if ( badRegion(trimsec)) {163 if (psRegionIsBad(*biassec)) { 168 164 psString regionString = psRegionToString(*biassec); 169 165 psError(PS_ERR_IO, true, "Invalid bias section: %s\n", regionString); … … 268 264 } 269 265 266 267 #if 0 268 // Don't know that we need these 269 270 270 // Read the PHU into the nominated HDU 271 271 static bool readPHU(pmHDU *hdu, // HDU to read into … … 310 310 return readPHU(fpa->hdu, fits); 311 311 } 312 312 #endif 313 313 314 314
Note:
See TracChangeset
for help on using the changeset viewer.
