The WRFHYDRO GIS Preprocessing is unable to execute for lakeid. The error I get when I am executing :- [
! python Build_Routing_Stack.py -i {in_geogrid} -l {lakes} --CSV {csv} -d {in_dem} -R {regrid_factor} -t {routing_cells} -o {out_zip} ] is as follow :-
Using provided lake ID field: ID
Starting to gather lake centroid and area information.
feature: <osgeo.ogr.Feature; proxy of <Swig Object of type 'OGRFeatureShadow *' at 0x7181af535a10> >
Traceback (most recent call last):
File "/home/wrf_hydro_fnl/WRFHYDRO_Preprocessing/wrf_hydro_gis_preprocessor/wrfhydro_gis/Build_Routing_Stack.py", line 544, in <module>
GEOGRID_STANDALONE(args.in_Geogrid,
File "/home/wrf_hydro_fnl/WRFHYDRO_Preprocessing/wrf_hydro_gis_preprocessor/wrfhydro_gis/Build_Routing_Stack.py", line 327, in GEOGRID_STANDALONE
rootgrp2, lake_ID_field = wrfh.add_reservoirs(rootgrp2,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/wrf_hydro_fnl/WRFHYDRO_Preprocessing/wrf_hydro_gis_preprocessor/wrfhydro_gis/wrfhydro_functions.py", line 3063, in add_reservoirs
idval = feature.GetField(lakeID)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/wrf_hydro_fnl/WRFHYDRO_STANDALONE/miniconda3/envs/qgis_stable.3.28.8/lib/python3.11/site-packages/osgeo/ogr.py", line 4248, in GetField
raise KeyError("Illegal field requested in GetField()")
KeyError: 'Illegal field requested in GetField()'
Thank you
With regards