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

Location:
trunk/psModules/src/camera
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAfileDefine.c

    r12696 r12716  
    288288    // determine the current format from the header
    289289    // determine camera if not specified already
    290     format = pmConfigCameraFormatFromHeader (config, phu);
     290    format = pmConfigCameraFormatFromHeader (config, phu, true);
    291291    if (!format) {
    292292        psError(PS_ERR_IO, false, "Failed to read CCD format from %s\n", realName);
     
    565565    // on first call to this function, config->camera is not set.
    566566    // later calls will give an error if the cameras do not match
    567     format = pmConfigCameraFormatFromHeader (config, phu);
     567    format = pmConfigCameraFormatFromHeader (config, phu, true);
    568568    if (!format) {
    569569        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  
    719719    psMetadata *phu = psFitsReadHeader (NULL, file->fits);
    720720    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);
    722724        if (!file->format) {
    723725            psError(PS_ERR_IO, false, "Failed to read CCD format from %s\n", file->filename);
Note: See TracChangeset for help on using the changeset viewer.