Changeset 15166
- Timestamp:
- Oct 2, 2007, 4:12:34 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/pap_branch_070920/psModules/src/camera/pmFPAfileIO.c
r15112 r15166 370 370 } 371 371 372 if (file->compression) { 373 psTrace("psModules.camera", 7, "Setting compression for %s (%s)\n", file->filename, file->name); 374 if (!psFitsCompressionApply(file->fits, file->compression)) { 375 psError(PS_ERR_UNKNOWN, false, "Unable to set compression options for %s (%s) (%d:%d:%d)\n", 376 file->filename, file->name, view->chip, view->cell, view->readout); 377 return false; 378 } 379 } 380 372 381 // select a writing method 373 382 bool status = true; … … 679 688 psMetadata *fileMenu = psMetadataLookupMetadata (NULL, config->format, "FILE"); 680 689 if (!fileMenu) { 681 psError (PS_ERR_IO, true, "FILE METADATA missing from camera format %s\n", config->formatName); 690 psError (PS_ERR_IO, true, "FILE METADATA missing from camera format %s\n", 691 config->formatName); 682 692 return false; 683 693 } … … 688 698 } 689 699 690 if (file->compression && !psFitsCompressionApply(file->fits, file->compression)) { 691 psError(PS_ERR_UNKNOWN, false, "Unable to set compression options for %s (%s) (%d:%d:%d)\n", 692 file->filename, file->name, view->chip, view->cell, view->readout); 693 return false; 700 if (file->compression) { 701 psTrace("psModules.camera", 7, "Setting compression for %s (%s)\n", file->filename, file->name); 702 if (!psFitsCompressionApply(file->fits, file->compression)) { 703 psError(PS_ERR_UNKNOWN, false, "Unable to set compression options for %s (%s) (%d:%d:%d)\n", 704 file->filename, file->name, view->chip, view->cell, view->readout); 705 return false; 706 } 694 707 } 695 708
Note:
See TracChangeset
for help on using the changeset viewer.
