IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 19, 2008, 4:51:04 PM (18 years ago)
Author:
eugene
Message:

for now, set a fake bad value for the mask

File:
1 edited

Legend:

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

    r18163 r18210  
    443443        return false;
    444444    }
    445     float bad = psMetadataLookupF32(&mdok, cell->concepts, "CELL.BAD"); // Bad level
     445
     446    // XXX for IMAGE, we need the CELL.BAD value, but for MASK, we need the BAD mask value
     447
     448    float bad = 0;
     449    if (type == FPA_READ_TYPE_MASK) {
     450      bad = 1.0;
     451    } else {
     452      bad = psMetadataLookupF32(&mdok, cell->concepts, "CELL.BAD"); // Bad level
     453    }
     454
    446455    psRegion *trimsec = psMetadataLookupPtr(&mdok, cell->concepts, "CELL.TRIMSEC"); // Trim sections
    447456    if (!mdok || !trimsec || psRegionIsNaN(*trimsec)) {
     
    449458        return false;
    450459    }
     460
     461
    451462
    452463    // Check the third dimension
Note: See TracChangeset for help on using the changeset viewer.