IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19388


Ignore:
Timestamp:
Sep 5, 2008, 7:50:01 AM (18 years ago)
Author:
eugene
Message:

fallback on expected area if actual readouts are missing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAExtent.c

    r19033 r19388  
    6666        cellExtent->y1 = PS_MAX(cellExtent->y1, roExtent->y1);
    6767        psFree(roExtent);
     68    }
     69
     70    // Don't have anything to base the true extent on, so have to give the hardwired value (largest possible extent)
     71    if (readouts->n == 0) {
     72        int xSize = psMetadataLookupS32(NULL, cell->concepts, "CELL.XSIZE");
     73        int ySize = psMetadataLookupS32(NULL, cell->concepts, "CELL.YSIZE");
     74        cellExtent->x0 = 0;
     75        cellExtent->x1 = xSize;
     76        cellExtent->y0 = 0;
     77        cellExtent->y1 = ySize;
    6878    }
    6979
Note: See TracChangeset for help on using the changeset viewer.