Skip to content

KeyError:ea_daily_re when running landsat_prep_scene.py #82

@pixienat

Description

@pixienat

Hi. I am running this through conda and I have all the necessary packages install in order to run properly.

Here is my traceback upon running this line of code in my command line:
python C:\Users\NMarcom\pymetric\code\local\landsat_prep_scene.py -i C:\Users\NMarcom\pymetric\example\landsat_2015.ini

error traceback:

Run Time Stamp: 2022-08-29 12:05:31.663766 Current Directory: C:\Users\NMarcom\pymetric\example\2015\p043r030\LC08_L1TP_043030_20150415_20170227_01_T1 INI File: landsat_2015.ini Traceback (most recent call last): File "C:\Users\NMarcom\Anaconda3\envs\pymarkhi\lib\configparser.py", line 789, in get value = d[option] File "C:\Users\NMarcom\Anaconda3\envs\pymarkhi\lib\collections\__init__.py", line 883, in __getitem__ return self.__missing__(key) # support subclasses that define __missing__ File "C:\Users\NMarcom\Anaconda3\envs\pymarkhi\lib\collections\__init__.py", line 875, in __missing__ raise KeyError(key) KeyError: 'ea_daily_re'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\NMarcom\pymetric\code\prep_functions\landsat_prep_scene_func.py", line 1295, in <module> stats_flag=args.stats, overwrite_flag=args.overwrite) File "C:\Users\NMarcom\pymetric\code\prep_functions\landsat_prep_scene_func.py", line 338, in main ea_daily_re = re.compile(config.get('INPUTS', 'ea_daily_re')) File "C:\Users\NMarcom\Anaconda3\envs\pymarkhi\lib\configparser.py", line 792, in get raise NoOptionError(option, section) configparser.NoOptionError: No option 'ea_daily_re' in section: 'INPUTS'

#75 also indicated a key_error upon running this same script but was listed as resolved without comment. the key error is also different than the one I am receiving. I am wondering if there are other settings that need to be adjusted in the landsat_2015 settings file, other than described in the documentation?

Thanks.

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