IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 7, 2009, 12:45:24 PM (17 years ago)
Author:
eugene
Message:

update from mainline

Location:
branches/eam_branches/20090715
Files:
6 edited
2 copied

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20090715

  • branches/eam_branches/20090715/psModules/src/camera/Makefile.am

    r19695 r25022  
    2323        pmFPAfileIO.c \
    2424        pmFPAfileFitsIO.c \
     25        pmFPAfileFringeIO.c \
    2526        pmFPAFlags.c \
    2627        pmFPALevel.c \
     
    5152        pmFPAfileIO.h \
    5253        pmFPAfileFitsIO.h \
     54        pmFPAfileFringeIO.h \
    5355        pmFPAFlags.h \
    5456        pmFPALevel.h \
  • branches/eam_branches/20090715/psModules/src/camera/pmFPABin.c

    r24479 r25022  
    6060                        continue;
    6161                    }
     62                    if (!isfinite(inImage->data.F32[y][x])) {
     63                        continue;
     64                    }
    6265                    sum += inImage->data.F32[y][x];
    6366                    numPix++;
  • branches/eam_branches/20090715/psModules/src/camera/pmFPAWrite.c

    r24768 r25022  
    741741    }
    742742    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");
    744744        psFree(compress);
    745745        return false;
  • branches/eam_branches/20090715/psModules/src/camera/pmFPAfileIO.c

    r23576 r25022  
    2323#include "pmFPAWrite.h"
    2424#include "pmFPAfileFitsIO.h"
     25#include "pmFPAfileFringeIO.h"
    2526#include "pmSpan.h"
    2627#include "pmFootprint.h"
     
    192193        status = pmFPAviewReadFitsImage(view, file, config);
    193194        if (status) {
    194             if (!pmFPAviewReadFitsTable(view, file, "FRINGE")) {
     195            if (!pmFPAviewReadFringes(view, file)) {
    195196                psError(PS_ERR_UNKNOWN, false, "Unable to read fringe data from %s.\n", file->filename);
    196197                return false;
     
    451452        status = pmFPAviewWriteFitsImage (view, file, config);
    452453        if (status) {
    453             if (!pmFPAviewWriteFitsTable(view, file, "FRINGE", config)) {
     454            if (!pmFPAviewWriteFringes(view, file, config)) {
    454455                psError(PS_ERR_UNKNOWN, false, "Unable to write fringe data from %s.\n", file->filename);
    455456                return false;
  • branches/eam_branches/20090715/psModules/src/camera/pmReadoutStack.c

    r24794 r25022  
    263263        pmCell *cell = readout->parent; // The parent cell
    264264        bool mdok = true;       // Status of MD lookup
    265         psRegion *trimsec = psMetadataLookupPtr(&mdok, cell->concepts, "CELL.TRIMSEC"); // Trim section
     265        psRegion *trimsec = cell ? psMetadataLookupPtr(&mdok, cell->concepts, "CELL.TRIMSEC") : NULL; // Trim section
    266266        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);
    268274        } else {
    269275            xSize = PS_MAX(xSize, trimsec->x1 - trimsec->x0);
Note: See TracChangeset for help on using the changeset viewer.