Changeset 12716
- Timestamp:
- Apr 3, 2007, 10:28:26 AM (19 years ago)
- Location:
- trunk/psModules/src
- Files:
-
- 4 edited
-
camera/pmFPAfileDefine.c (modified) (2 diffs)
-
camera/pmFPAfileIO.c (modified) (1 diff)
-
config/pmConfig.c (modified) (3 diffs)
-
config/pmConfig.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAfileDefine.c
r12696 r12716 288 288 // determine the current format from the header 289 289 // determine camera if not specified already 290 format = pmConfigCameraFormatFromHeader (config, phu );290 format = pmConfigCameraFormatFromHeader (config, phu, true); 291 291 if (!format) { 292 292 psError(PS_ERR_IO, false, "Failed to read CCD format from %s\n", realName); … … 565 565 // on first call to this function, config->camera is not set. 566 566 // later calls will give an error if the cameras do not match 567 format = pmConfigCameraFormatFromHeader (config, phu );567 format = pmConfigCameraFormatFromHeader (config, phu, true); 568 568 if (!format) { 569 569 psError(PS_ERR_IO, false, "Failed to read CCD format from %s\n", (char *)infiles->data[0]); -
trunk/psModules/src/camera/pmFPAfileIO.c
r12696 r12716 719 719 psMetadata *phu = psFitsReadHeader (NULL, file->fits); 720 720 if (!file->format) { 721 file->format = pmConfigCameraFormatFromHeader (config, phu); 721 // XXX do we need to read the recipe here? these files are supplemental, and probably 722 // do not need to re-load the recipes 723 file->format = pmConfigCameraFormatFromHeader (config, phu, false); 722 724 if (!file->format) { 723 725 psError(PS_ERR_IO, false, "Failed to read CCD format from %s\n", file->filename); -
trunk/psModules/src/config/pmConfig.c
r12702 r12716 4 4 * @author EAM (IfA) 5 5 * 6 * @version $Revision: 1.8 3$ $Name: not supported by cvs2svn $7 * @date $Date: 2007-0 3-31 03:01:08$6 * @version $Revision: 1.84 $ $Name: not supported by cvs2svn $ 7 * @date $Date: 2007-04-03 20:28:26 $ 8 8 * 9 9 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 786 786 } 787 787 788 789 psMetadata *pmConfigCameraFormatFromHeader(pmConfig *config, const psMetadata *header) 788 // we only need to read the recipe for the main camera images. for additional images (eg, sky 789 // cells) do not need to re-read the recipe files! 790 psMetadata *pmConfigCameraFormatFromHeader(pmConfig *config, const psMetadata *header, bool readRecipes) 790 791 { 791 792 PS_ASSERT_PTR_NON_NULL(config, NULL); … … 840 841 841 842 // Now we have the camera, we can read the recipes 842 if ( !pmConfigReadRecipes(config, PM_RECIPE_SOURCE_CAMERA | PM_RECIPE_SOURCE_CL)) {843 if (readRecipes && !pmConfigReadRecipes(config, PM_RECIPE_SOURCE_CAMERA | PM_RECIPE_SOURCE_CL)) { 843 844 psError(PS_ERR_IO, false, "Error reading recipes from camera config for %s", config->cameraName); 844 845 return NULL; -
trunk/psModules/src/config/pmConfig.h
r11292 r12716 5 5 * @author Eugene Magnier, IfA 6 6 * 7 * @version $Revision: 1.2 7$ $Name: not supported by cvs2svn $8 * @date $Date: 2007-0 1-26 00:05:18$7 * @version $Revision: 1.28 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2007-04-03 20:28:26 $ 9 9 * Copyright 2005-2006 Institute for Astronomy, University of Hawaii 10 10 */ … … 108 108 /// configuration. The accepted format is returned. 109 109 psMetadata *pmConfigCameraFormatFromHeader(pmConfig *config, ///< The configuration 110 const psMetadata *header ///< The FITS header 111 ); 110 const psMetadata *header, ///< The FITS header 111 bool readRecipes ///< optionally read the recipes as well as the format 112 ); 112 113 113 114 /// Return the camera configuration specified by name
Note:
See TracChangeset
for help on using the changeset viewer.
