Changeset 25022 for branches/eam_branches/20090715/psModules/src/camera
- Timestamp:
- Aug 7, 2009, 12:45:24 PM (17 years ago)
- Location:
- branches/eam_branches/20090715
- Files:
-
- 6 edited
- 2 copied
-
. (modified) (1 prop)
-
psModules/src/camera/Makefile.am (modified) (2 diffs)
-
psModules/src/camera/pmFPABin.c (modified) (1 diff)
-
psModules/src/camera/pmFPAWrite.c (modified) (1 diff)
-
psModules/src/camera/pmFPAfileFringeIO.c (copied) (copied from trunk/psModules/src/camera/pmFPAfileFringeIO.c )
-
psModules/src/camera/pmFPAfileFringeIO.h (copied) (copied from trunk/psModules/src/camera/pmFPAfileFringeIO.h )
-
psModules/src/camera/pmFPAfileIO.c (modified) (3 diffs)
-
psModules/src/camera/pmReadoutStack.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20090715
- Property svn:mergeinfo changed
/trunk (added) merged: 24801-24824,24827-24834,24836-24859,24861-24901,24903-24912,24914-24950,24953-24971,24973-24977,24986-24989,24993-25017
- Property svn:mergeinfo changed
-
branches/eam_branches/20090715/psModules/src/camera/Makefile.am
r19695 r25022 23 23 pmFPAfileIO.c \ 24 24 pmFPAfileFitsIO.c \ 25 pmFPAfileFringeIO.c \ 25 26 pmFPAFlags.c \ 26 27 pmFPALevel.c \ … … 51 52 pmFPAfileIO.h \ 52 53 pmFPAfileFitsIO.h \ 54 pmFPAfileFringeIO.h \ 53 55 pmFPAFlags.h \ 54 56 pmFPALevel.h \ -
branches/eam_branches/20090715/psModules/src/camera/pmFPABin.c
r24479 r25022 60 60 continue; 61 61 } 62 if (!isfinite(inImage->data.F32[y][x])) { 63 continue; 64 } 62 65 sum += inImage->data.F32[y][x]; 63 66 numPix++; -
branches/eam_branches/20090715/psModules/src/camera/pmFPAWrite.c
r24768 r25022 741 741 } 742 742 if (!psFitsCompressionApply(fits, compress)) { 743 psError(PS_ERR_UNKNOWN, false, "Unable to set FITS compression to NONE");743 psError(PS_ERR_UNKNOWN, false, "Unable to restore FITS compression"); 744 744 psFree(compress); 745 745 return false; -
branches/eam_branches/20090715/psModules/src/camera/pmFPAfileIO.c
r23576 r25022 23 23 #include "pmFPAWrite.h" 24 24 #include "pmFPAfileFitsIO.h" 25 #include "pmFPAfileFringeIO.h" 25 26 #include "pmSpan.h" 26 27 #include "pmFootprint.h" … … 192 193 status = pmFPAviewReadFitsImage(view, file, config); 193 194 if (status) { 194 if (!pmFPAviewReadF itsTable(view, file, "FRINGE")) {195 if (!pmFPAviewReadFringes(view, file)) { 195 196 psError(PS_ERR_UNKNOWN, false, "Unable to read fringe data from %s.\n", file->filename); 196 197 return false; … … 451 452 status = pmFPAviewWriteFitsImage (view, file, config); 452 453 if (status) { 453 if (!pmFPAviewWriteF itsTable(view, file, "FRINGE", config)) {454 if (!pmFPAviewWriteFringes(view, file, config)) { 454 455 psError(PS_ERR_UNKNOWN, false, "Unable to write fringe data from %s.\n", file->filename); 455 456 return false; -
branches/eam_branches/20090715/psModules/src/camera/pmReadoutStack.c
r24794 r25022 263 263 pmCell *cell = readout->parent; // The parent cell 264 264 bool mdok = true; // Status of MD lookup 265 psRegion *trimsec = psMetadataLookupPtr(&mdok, cell->concepts, "CELL.TRIMSEC"); // Trim section265 psRegion *trimsec = cell ? psMetadataLookupPtr(&mdok, cell->concepts, "CELL.TRIMSEC") : NULL; // Trim section 266 266 if (!mdok || !trimsec || psRegionIsNaN(*trimsec)) { 267 psWarning("CELL.TRIMSEC is not set for readout %ld --- ignored.\n", i); 267 psWarning("CELL.TRIMSEC is not set for readout %ld --- attempting to use image size.\n", i); 268 xSize = PS_MAX(xSize, readout->image->numCols); 269 ySize = PS_MAX(ySize, readout->image->numRows); 270 xMin = PS_MIN(xMin, 0); 271 xMax = PS_MAX(xMax, readout->image->numCols - 1); 272 yMin = PS_MIN(yMin, 0); 273 yMax = PS_MAX(yMax, readout->image->numRows - 1); 268 274 } else { 269 275 xSize = PS_MAX(xSize, trimsec->x1 - trimsec->x0);
Note:
See TracChangeset
for help on using the changeset viewer.
