IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42315


Ignore:
Timestamp:
Dec 1, 2022, 2:07:33 PM (4 years ago)
Author:
eugene
Message:

restrict astrometry to specified chip

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20220316/fpcamera/src/fpcameraParseCamera.c

    r42186 r42315  
    2424    if (!psphotSetMaskBits (config)) ESCAPE (PS_ERR_UNKNOWN, "failed to set mask bit values");
    2525
    26     // the input smf file is a required argument
    27     pmFPAfileDefineFromArgs (&status, config, "FPCAMERA.INPUT.ASTROM", "INPUT.ASTROM");
     26    // the input smf file is a required argument.  the smf file is distinct from the input
     27    // chips (FPCAMERA.INPUT = input).  accept the return argument to set the selected
     28    // chips in this pmFPAfile (as well as input)
     29
     30    pmFPAfile *astro = pmFPAfileDefineFromArgs (&status, config, "FPCAMERA.INPUT.ASTROM", "INPUT.ASTROM");
    2831    if (!status) ESCAPE(FPCAMERA_ERR_CONFIG, "Failed to build FPA from FPCAMERA.INPUT.ASTROM");
    2932
     
    5558    if (chips->n > 0) {
    5659        pmFPASelectChip (input->fpa, -1, true); // deselect all chips
     60        pmFPASelectChip (astro->fpa, -1, true); // deselect all chips
    5761        for (int i = 0; i < chips->n; i++) {
    5862            int chipNum = atoi(chips->data[i]);
    59             if (! pmFPASelectChip(input->fpa, chipNum, false)) ESCAPE(FPCAMERA_ERR_CONFIG, "Chip number %d doesn't exist in camera.\n", chipNum);
     63            if (! pmFPASelectChip(input->fpa, chipNum, false)) ESCAPE(FPCAMERA_ERR_CONFIG, "Chip number %d doesn't exist in input chip images.\n", chipNum);
     64            if (! pmFPASelectChip(astro->fpa, chipNum, false)) ESCAPE(FPCAMERA_ERR_CONFIG, "Chip number %d doesn't exist in astrometry file.\n", chipNum);
    6065        }
    6166    }
Note: See TracChangeset for help on using the changeset viewer.