IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18260


Ignore:
Timestamp:
Jun 20, 2008, 7:40:25 PM (18 years ago)
Author:
eugene
Message:

call pmConceptsBlank... if needed (conceptsRead is SOURCE_NONE); added PM_CONCEPT_SOURCE_BLANK

Location:
branches/eam_branch_20080620/psModules/src/concepts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080620/psModules/src/concepts/pmConcepts.c

    r18178 r18260  
    191191// Read all registered concepts for the specified level
    192192static bool conceptsRead(psMetadata **specs, // One of the concepts specifications
    193                          const pmFPA *fpa,    // The FPA
    194                          const pmChip *chip,  // The chip
    195                          const pmCell *cell, // The cell
     193                         pmFPA *fpa,    // The FPA
     194                         pmChip *chip,  // The chip
     195                         pmCell *cell, // The cell
    196196                         unsigned int *read,     // What's already been read
    197197                         pmConceptSource source, // The source of the concepts to read
     
    215215    }
    216216    pmHDU *hduHigh = pmHDUGetHighest(fpa, chip, cell); // Highest HDU
     217
     218    if (cell && (cell->conceptsRead == PM_CONCEPT_SOURCE_NONE)) {
     219        pmConceptsBlankCell(cell);
     220        cell->conceptsRead = PM_CONCEPT_SOURCE_BLANK;
     221    }
     222    if (chip && (chip->conceptsRead == PM_CONCEPT_SOURCE_NONE)) {
     223        pmConceptsBlankChip(chip);
     224        chip->conceptsRead = PM_CONCEPT_SOURCE_BLANK;
     225    }
     226    if (fpa && (fpa->conceptsRead == PM_CONCEPT_SOURCE_NONE)) {
     227        pmConceptsBlankFPA(fpa);
     228        fpa->conceptsRead = PM_CONCEPT_SOURCE_BLANK;
     229    }
    217230
    218231    bool success = true;                // Success in reading concepts?
  • branches/eam_branch_20080620/psModules/src/concepts/pmConcepts.h

    r18163 r18260  
    44 * @author Paul Price, IfA
    55 *
    6  * @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
    7  * @date $Date: 2008-06-17 22:16:38 $
     6 * @version $Revision: 1.18.4.1 $ $Name: not supported by cvs2svn $
     7 * @date $Date: 2008-06-21 05:40:25 $
    88 * Copyright 2005-2006 Institute for Astronomy, University of Hawaii
    99 */
     
    2424typedef enum {
    2525    PM_CONCEPT_SOURCE_NONE     = 0x00,  ///< No concepts
    26     PM_CONCEPT_SOURCE_CELLS    = 0x01,  ///< Concept comes from the camera information
    27     PM_CONCEPT_SOURCE_DEFAULTS = 0x02,  ///< Concept comes from defaults
    28     PM_CONCEPT_SOURCE_PHU      = 0x04,  ///< Concept comes from PHU
    29     PM_CONCEPT_SOURCE_HEADER   = 0x08,  ///< Concept comes from FITS header
    30     PM_CONCEPT_SOURCE_DATABASE = 0x10,  ///< Concept comes from database
    31     PM_CONCEPT_SOURCE_ALL      = 0xff   ///< All concepts
     26    PM_CONCEPT_SOURCE_BLANK    = 0x01,  ///< Blank concepts defined, but not read
     27    PM_CONCEPT_SOURCE_CELLS    = 0x02,  ///< Concept comes from the camera information
     28    PM_CONCEPT_SOURCE_DEFAULTS = 0x04,  ///< Concept comes from defaults
     29    PM_CONCEPT_SOURCE_PHU      = 0x08,  ///< Concept comes from PHU
     30    PM_CONCEPT_SOURCE_HEADER   = 0x10,  ///< Concept comes from FITS header
     31    PM_CONCEPT_SOURCE_DATABASE = 0x20,  ///< Concept comes from database
     32    PM_CONCEPT_SOURCE_ALL      = 0xfe   ///< All concepts (exclude BLANK)
    3233} pmConceptSource;
    3334
Note: See TracChangeset for help on using the changeset viewer.