IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19033


Ignore:
Timestamp:
Aug 12, 2008, 12:42:17 PM (18 years ago)
Author:
eugene
Message:

fallback on IMNAXIS1,2 if NAXIS1,2 are missing

File:
1 edited

Legend:

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

    r13655 r19033  
    2525        pmHDU *hdu = pmHDUFromReadout (readout);
    2626        if (hdu && hdu->header) {
    27             xSize = psMetadataLookupS32(NULL, hdu->header, "NAXIS1");
    28             ySize = psMetadataLookupS32(NULL, hdu->header, "NAXIS2");
     27            bool status;
     28            xSize = psMetadataLookupS32(&status, hdu->header, "NAXIS1");
     29            if (!status) {
     30                xSize = psMetadataLookupS32(&status, hdu->header, "IMNAXIS1");
     31                if (!status) return NULL;
     32            }           
     33            ySize = psMetadataLookupS32(&status, hdu->header, "NAXIS2");
     34            if (!status) {
     35                ySize = psMetadataLookupS32(&status, hdu->header, "IMNAXIS2");
     36                if (!status) return NULL;
     37            }           
    2938        } else {
    3039        // Don't have anything to base the true extent on, so have to give the hardwired value (largest possible extent)
Note: See TracChangeset for help on using the changeset viewer.