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/pmFPAfileDefine.c

    r17634 r17911  
    237237        file->fpa = psMemIncrRefCounter(fpa);
    238238    } else {
    239         file->fpa = pmFPAConstruct(file->camera);
     239        file->fpa = pmFPAConstruct(file->camera, file->cameraName);
    240240    }
    241241
     
    482482
    483483    // build the template fpa, set up the basic view
    484     fpa = pmFPAConstruct(config->camera);
     484    fpa = pmFPAConstruct(config->camera, config->cameraName);
    485485    if (!fpa) {
    486486        psError(PS_ERR_IO, false, "Failed to construct FPA from %s", realName);
     
    783783
    784784    // build the template fpa, set up the basic view
    785     fpa = pmFPAConstruct (config->camera);
     785    fpa = pmFPAConstruct(config->camera, config->cameraName);
    786786    if (!fpa) {
    787787        psError(PS_ERR_IO, false, "Failed to construct FPA from %s", (char *)infiles->data[0]);
     
    867867
    868868    // build the template fpa, set up the basic view
    869     pmFPA *fpa = pmFPAConstruct (config->camera);
     869    pmFPA *fpa = pmFPAConstruct(config->camera, config->cameraName);
    870870    if (!fpa) {
    871871        psError(PS_ERR_IO, false, "Failed to construct FPA for %s", filename);
     
    949949    if (!file) {
    950950        // build the template fpa, set up the basic view
    951         fpa = pmFPAConstruct (config->camera);
     951        fpa = pmFPAConstruct(config->camera, config->cameraName);
    952952        if (!fpa) {
    953953            psError(PS_ERR_IO, false, "Failed to construct FPA for %s", filename);
     
    10901090    PS_ASSERT_STRING_NON_EMPTY(filename, NULL);
    10911091
    1092     pmFPA *fpa = pmFPAConstruct(src->camera);
     1092    pmFPA *fpa = pmFPAConstruct(src->camera, psMetadataLookupStr(NULL, src->concepts, "FPA.CAMERA"));
    10931093    // XXX should this use DefineOutputForFormat?
    10941094    pmFPAfile *file = pmFPAfileDefineOutput (config, fpa, filename);
     
    11391139        return NULL;
    11401140    }
    1141     file->fpa = pmFPAConstruct(file->camera);
     1141    file->fpa = pmFPAConstruct(file->camera, file->cameraName);
    11421142
    11431143    return file;
Note: See TracChangeset for help on using the changeset viewer.