IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 13, 2006, 11:50:51 PM (20 years ago)
Author:
Paul Price
Message:

Nearly all working; doesn't work on megacam split images yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/rel10_ifa/psModules/src/astrom/pmFPAConstruct.c

    r6581 r6582  
    217217        // No extensions --- it's all in the PHU
    218218        psString chipType = chipNameFromHeader(formatSpec, phu); // Type of chip
     219        printf("chipType: %s<---\n", chipType);
     220        #if 1                                   // This is here for the courtesy of MegaCam, which has "CCD13   "
     221
     222        char *space = NULL;             // Position of a space
     223        if ((space = strchr(chipType, ' '))) {
     224            psString temp = psStringNCopy(chipType, strlen(chipType) - strlen(space));
     225            // Free memory???
     226            chipType = temp;
     227        }
     228        #endif
     229
    219230        psString content = psMetadataLookupStr(&mdok, contents, chipType); // The content line
     231        if (!mdok || strlen(content) == 0) {
     232            psError(PS_ERR_IO, true, "Cannot find chip %s in the list of CONTENTS.\n");
     233            psFree(chipType);
     234            psFree(content);
     235            return false;
     236        }
    220237
    221238        // Parse the list of first:second
Note: See TracChangeset for help on using the changeset viewer.