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

    r16841 r17911  
    6767    }
    6868
    69     pmFPA *nameSource = file->src; // Source of FPA.NAME
     69    pmFPA *nameSource = file->src; // Source of FPA.OBS
    7070    if (!nameSource) {
    7171        nameSource = file->fpa;
    7272    }
    7373    bool mdok;                  // Status of MD lookup
    74     const char *fpaname = psMetadataLookupStr(&mdok, nameSource->concepts, "FPA.NAME"); // Name of FPA
    75 
    76     pmFPA *copy = pmFPAConstruct(file->camera);  // FPA to return
    77     if (!pmFPAAddSourceFromView(copy, fpaname, phuView, file->format)) {
     74    const char *fpaObs = psMetadataLookupStr(&mdok, nameSource->concepts, "FPA.OBS"); // Observation id
     75
     76    pmFPA *copy = pmFPAConstruct(file->camera, file->cameraName);  // FPA to return
     77    if (!pmFPAAddSourceFromView(copy, fpaObs, phuView, file->format)) {
    7878        psError(PS_ERR_UNKNOWN, false, "Unable to insert HDU into FPA for writing.\n");
    7979        psFree(copy);
Note: See TracChangeset for help on using the changeset viewer.