IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7474


Ignore:
Timestamp:
Jun 9, 2006, 4:38:19 PM (20 years ago)
Author:
Paul Price
Message:

Case where PHU==FPA, EXTENSIONS==NONE wasn't processing the cells.

File:
1 edited

Legend:

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

    r7469 r7474  
    505505    pmFPALevel level = hduLevel(format);// The level for the HDUs to go
    506506    if (level == PM_FPA_LEVEL_NONE) {
    507         // No extensions --- we're done
     507        // No extensions.  We're done unless PHU == FPA, in which case we need to process the contents
     508        if (strcasecmp(phuType, "FPA") == 0) {
     509            const char *content = psMetadataLookupStr(&mdok, format, "CONTENTS"); // Contents of the FITS file
     510            if (!mdok || !content || strlen(content) == 0) {
     511                psError(PS_ERR_IO, true, "Unable to find CONTENTS of type STR in the camera "
     512                        "format configuration.\n");
     513                return false;
     514            }
     515            if (processContents(fpa, chip, cell, phdu, level, content, format) < 0) {
     516                psError(PS_ERR_IO, false, "Error setting contents.\n");
     517                return false;
     518            }
     519        }
    508520        return true;
    509521    }
Note: See TracChangeset for help on using the changeset viewer.