Changeset 7474
- Timestamp:
- Jun 9, 2006, 4:38:19 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPAConstruct.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAConstruct.c
r7469 r7474 505 505 pmFPALevel level = hduLevel(format);// The level for the HDUs to go 506 506 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 } 508 520 return true; 509 521 }
Note:
See TracChangeset
for help on using the changeset viewer.
