IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 3, 2007, 10:28:26 AM (19 years ago)
Author:
magnier
Message:

adding option to pmConfigCameraFormatFromHeader to load recipe or not

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/config/pmConfig.c

    r12702 r12716  
    44 *  @author EAM (IfA)
    55 *
    6  *  @version $Revision: 1.83 $ $Name: not supported by cvs2svn $
    7  *  @date $Date: 2007-03-31 03:01:08 $
     6 *  @version $Revision: 1.84 $ $Name: not supported by cvs2svn $
     7 *  @date $Date: 2007-04-03 20:28:26 $
    88 *
    99 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    786786}
    787787
    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!
     790psMetadata *pmConfigCameraFormatFromHeader(pmConfig *config, const psMetadata *header, bool readRecipes)
    790791{
    791792    PS_ASSERT_PTR_NON_NULL(config, NULL);
     
    840841
    841842        // 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)) {
    843844            psError(PS_ERR_IO, false, "Error reading recipes from camera config for %s", config->cameraName);
    844845            return NULL;
Note: See TracChangeset for help on using the changeset viewer.