IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 4, 2008, 3:32:28 PM (18 years ago)
Author:
Paul Price
Message:

I've implemented the chip-dependent concepts. It uses a generalised version of the dependent DEFAULT concepts, which can, unfortunately, make the camera format configuration a bit longer, but it consolidates code and keeps things simple both for the code and the configuration.

In the process, I took care of a couple of other concept bugs that have been sitting in my inbox for nearly a year:

  • FPA.NAME has been replaced with FPA.OBS, which is intended to be an observation identifier (bug 885). You're welcome to change the name, so long as you also volunteer to fix all the camera formats.
  • FPA.CAMERA is automatically set (on construction of the FPA) to the camera name as used by the configuration files (bug 931). I've changed the ppStats REGISTER recipe to use FPA.CAMERA instead of FPA.INSTRUMENT (which is retained in the concepts as the instrument's name according to the instrument, whereas FPA.CAMERA is the instrument's name according to our configuration).
File:
1 edited

Legend:

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

    r16716 r17911  
    305305    tmpCell->conceptsRead = PM_CONCEPT_SOURCE_NONE;
    306306    if (!psMetadataAddStr(tmpCell->concepts, PS_LIST_HEAD, "CELL.NAME", 0, NULL, name)) {
    307         psLogMsg(__func__, PS_LOG_WARN, "WARNING: Could not add CELL.NAME to metadata.\n");
     307        psErrorClear();
     308        psWarning("Could not add CELL.NAME to metadata.");
    308309    }
    309310    pmConceptsBlankCell(tmpCell);
     
    343344    tmpChip->conceptsRead = PM_CONCEPT_SOURCE_NONE;
    344345    if (!psMetadataAddStr(tmpChip->concepts, PS_LIST_HEAD, "CHIP.NAME", 0, NULL, name)) {
    345         psLogMsg(__func__, PS_LOG_WARN, "WARNING: Could not add CHIP.NAME %s to concepts.\n", name);
     346        psErrorClear();
     347        psWarning("Could not add CHIP.NAME %s to concepts.", name);
    346348    }
    347349    pmConceptsBlankChip(tmpChip);
     
    355357}
    356358
    357 pmFPA *pmFPAAlloc(const psMetadata *camera)
     359pmFPA *pmFPAAlloc(const psMetadata *camera, const char *cameraName)
    358360{
    359361    pmFPA *tmpFPA = (pmFPA *) psAlloc(sizeof(pmFPA));
     
    373375    pmConceptsBlankFPA(tmpFPA);
    374376
     377    if (!psMetadataAddStr(tmpFPA->concepts, PS_LIST_TAIL, "FPA.CAMERA", PS_META_REPLACE,
     378                          "Camera name (according to configuration)", cameraName)) {
     379        psErrorClear();
     380        psWarning("Could not add FPA.CAMERA %s to concepts.", cameraName);
     381    }
     382
    375383    return tmpFPA;
    376384}
Note: See TracChangeset for help on using the changeset viewer.