hectornieto / pyTSEB

A python Two Source Energy Balance model for estimation of evapotranspiration with remote sensing data
GNU General Public License v3.0
137 stars 62 forks source link

KeyError: 'time' with G_form=2; model tseb-pt #40

Closed verenakuch96 closed 3 years ago

verenakuch96 commented 3 years ago

Traceback (most recent call last): File "C:/Users/user/Documents/UNI/masterarbeit/Modelle_skript/TSEB/pyTSEB-master/pyTSEB-master/TSEB_local_image_main.py", line 37, in <module> run_TSEB_from_config_file(config_file) File "C:/Users/user/Documents/UNI/masterarbeit/Modelle_skript/TSEB/pyTSEB-master/pyTSEB-master/TSEB_local_image_main.py", line 29, in run_TSEB_from_config_file setup.run(is_image=True) File "C:\Users\user\Documents\UNI\masterarbeit\Modelle_skript\TSEB\pyTSEB-master\pyTSEB-master\pyTSEB\TSEBConfigFileInterface.py", line 269, in run model.process_local_image() File "C:\Users\user\Documents\UNI\masterarbeit\Modelle_skript\TSEB\pyTSEB-master\pyTSEB-master\pyTSEB\PyTSEB.py", line 193, in process_local_image self.G_form[1] = in_data['time'] KeyError: 'time'

Error in File pyTSEB.py:193 self.G_form[1] = in_data['time']

Key Error by using TSEB_local_image_main trying to use G form 2 - all other G-forms are working.

Environment:

Thank you for your help

hectornieto commented 3 years ago

Thanks for your feedback,

I have just pushed a commit that should fix issue.

verenakuch96 commented 3 years ago

Thank you for the quick fix. Now it is working