Skip to content

Failed to use process_config(config_def) #1

@TaoRen-Rad

Description

@TaoRen-Rad

Hi,

When I try to run the example code I get a error:

KeyError: 'The parameter name polynomial_coeffs requested from config definition by DispersionPolynomial was not found and is required'

Following the Refractor documentation and Dockerfile, I installed refractor as a python module and successfully imported
from refractor.framework import factory .

For OCO, I also installed and successfully import
from retrieval_config import retrieval_config_definition

But I get the error in the second line of these two places:
config_def = retrieval_config_definition(l1b_file, met_file, sounding_id)
config_inst = process_config(config_def)

I found a similar base_config version in framework/example_base_config:

        'dispersion': {
         'creator': creator.instrument.DispersionPolynomial,
         'polynomial_coeffs': {
             'creator': creator.l1b.ValueFromLevel1b,
             'field': 'spectral_coefficient',
       },

while in oco/config/base_config.py:

       'dispersion': {
          'creator': creator.instrument.DispersionPolynomial,
          'value': {
            'creator': creator.value.NamedCommonValue,
            'name': 'spectral_coefficient',
      },

Is it the error source about this base_config definition? I try to skip the param.name: polynomial_coeffs but here are some similar KeyErrors such as scale_factors…… raised.

Thanks,
Letter Xin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions