IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 30, 2022, 4:30:17 PM (4 years ago)
Author:
eugene
Message:

added -psf option; fpcamera seems to work quite well now if supplied the psf file measured for the chip

File:
1 edited

Legend:

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

    r42183 r42186  
    1919    if (!status) ESCAPE (PS_ERR_UNKNOWN, "failed to load find definition");
    2020
     21    pmFPAfile *psphotInput = pmFPAfileDefineFromFile (config, input, 1, 1, "PSPHOT.INPUT");
     22    if (!psphotInput) ESCAPE(FPCAMERA_ERR_CONFIG, "Failed to define FPA for PSPHOT.INPUT");
     23
    2124    if (!psphotSetMaskBits (config)) ESCAPE (PS_ERR_UNKNOWN, "failed to set mask bit values");
    2225
     
    2427    pmFPAfileDefineFromArgs (&status, config, "FPCAMERA.INPUT.ASTROM", "INPUT.ASTROM");
    2528    if (!status) ESCAPE(FPCAMERA_ERR_CONFIG, "Failed to build FPA from FPCAMERA.INPUT.ASTROM");
     29
     30    // if optional PSF model is supplied, associate with input file
     31    if (psMetadataLookupPtr(NULL, config->arguments, "INPUT.PSF")) {
     32        pmFPAfileBindFromArgs(&status, input, config, "PSPHOT.PSF.LOAD", "INPUT.PSF");
     33        if (!status) ESCAPE(FPCAMERA_ERR_CONFIG, "Failed to find/build PSPHOT.PSF.LOAD");
     34    }
    2635
    2736    // select the current recipe
     
    5665    return true;
    5766}
     67
Note: See TracChangeset for help on using the changeset viewer.