IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14954


Ignore:
Timestamp:
Sep 20, 2007, 3:31:51 PM (19 years ago)
Author:
Paul Price
Message:

Don't store formatName in the pmFPA --- this was a testing step that I forgot to remove later when I solved the problem a different way.

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

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPA.h

    r14889 r14954  
    66 * @author Eugene Magnier, IfA
    77 *
    8  * @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
    9  * @date $Date: 2007-09-19 21:37:58 $
     8 * @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
     9 * @date $Date: 2007-09-21 01:31:51 $
    1010 * Copyright 2005-2006 Institute for Astronomy, University of Hawaii
    1111 */
     
    5555    psMetadata *analysis;               ///< FPA-level analysis metadata
    5656    const psMetadata *camera;           ///< Camera configuration
    57     const char *formatName;             ///< Name of camera format
    5857    psArray *chips;                     ///< The component chips
    5958    pmHDU *hdu;                         ///< FITS header data unit of interest, or NULL
  • trunk/psModules/src/camera/pmFPAfileDefine.c

    r14934 r14954  
    190190    // Use the format we were told to, the format specified in the file rule, or default to the default format
    191191    if (!formatName || strlen(formatName) == 0) {
    192         if (fpa && fpa->formatName && strlen(fpa->formatName) > 0) {
    193             formatName = (psString)fpa->formatName; // Casting away "const" --- it will be copied, so no prob.
    194         } else {
    195             // select the format list from the selected camera
    196             formatName = psMetadataLookupStr(&status, data, "FILE.FORMAT");
    197             if (!formatName || strcmp(formatName, "NONE") == 0) {
    198                 // Try to get by with the default
    199                 formatName = config->formatName;
    200             }
     192        // select the format list from the selected camera
     193        formatName = psMetadataLookupStr(&status, data, "FILE.FORMAT");
     194        if (!formatName || strcmp(formatName, "NONE") == 0) {
     195            // Try to get by with the default
     196            formatName = config->formatName;
    201197        }
    202198    }
     
    250246        }
    251247    } else {
    252         // if we do not have extensions in the file, we are forced to write out at the file level
    253         file->dataLevel = file->fileLevel;
    254         file->freeLevel = file->fileLevel;
     248        // if we do not have extensions in the file, we are forced to write out at the file level
     249        file->dataLevel = file->fileLevel;
     250        file->freeLevel = file->fileLevel;
    255251    }
    256252
    257253    psTrace ("psModules.camera", 5, "file: %s, format: %s, fileLevel: %s, extLevel: %s, dataLevel: %s, freeLevel: %s\n",
    258              file->name, file->formatName, pmFPALevelToName (file->fileLevel), pmFPALevelToName(extLevel), pmFPALevelToName (file->dataLevel), pmFPALevelToName (file->freeLevel));
     254             file->name, file->formatName, pmFPALevelToName (file->fileLevel), pmFPALevelToName(extLevel), pmFPALevelToName (file->dataLevel), pmFPALevelToName (file->freeLevel));
    259255
    260256    // add argument-supplied OUTPUT name to this file
Note: See TracChangeset for help on using the changeset viewer.