IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 23, 2021, 1:48:37 PM (5 years ago)
Author:
eugene
Message:

add hooks to load pattern row amplitudes from an external file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-dev-20210817/ppImage/src/ppImageParseCamera.c

    r41812 r41857  
    181181            psError (PS_ERR_IO, false, "Can't find a fringe image source");
    182182            return NULL;
     183        }
     184    }
     185
     186    if (options->doPatternRow) {
     187        if (!ppImageDefineFile(config, input->fpa, "PPIMAGE.PATTERN.ROW.AMP", "PATTERN.ROW.AMP",
     188                               PM_FPA_FILE_PATTERN_ROW_AMP, PM_DETREND_TYPE_PATTERN_ROW_AMP)) {
     189            psWarning ("Can't find a pattern row amplitude source, will apply to all cells or defined subset");
     190            // an empty or invalid file may have been generated -- we want to skip, not raise an error
     191            pmFPAfile *PRAfile = psMetadataLookupPtr (NULL, config->files, "PPIMAGE.PATTERN.ROW.AMP");
     192            if (PRAfile) {
     193              PRAfile->state |= PM_FPA_STATE_INACTIVE;
     194            }
    183195        }
    184196    }
Note: See TracChangeset for help on using the changeset viewer.