Changeset 12716 for trunk/psModules/src/config
- Timestamp:
- Apr 3, 2007, 10:28:26 AM (19 years ago)
- Location:
- trunk/psModules/src/config
- Files:
-
- 2 edited
-
pmConfig.c (modified) (3 diffs)
-
pmConfig.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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.
