Riverscapes / riverscapes-tools

Open-source Python 3.0 tools for the Riverscapes organization
https://tools.riverscapes.net/
GNU General Public License v3.0
11 stars 11 forks source link

Missing Field (index error) #450

Closed KellyMWhitehead closed 3 years ago

KellyMWhitehead commented 3 years ago
2021-10-04 19:00:21:: [debug] [VectorBase] No layer named "vbet_channel_area" found
2021-10-04 19:00:21::         PROGRESS: 1 / 1,305  (0%)  Finding features     (Ellapsed: 0.0 seconds)
2021-10-04 19:00:21:: [error] [GDALError] ERR# 1 -- Invalid index : -1
2021-10-04 19:00:21:: [error] [VBET] Invalid index : -1
2021-10-04 19:00:21:: Traceback (most recent call last):
2021-10-04 19:00:21::   File "/usr/local/src/riverscapes-tools/packages/vbet/vbet/vbet.py", line 642, in main
2021-10-04 19:00:21::     vbet(args.huc, args.scenario_code, inputs, args.vaa_table, args.output_dir, reach_codes, meta, flowline_type=args.flowline_type)
2021-10-04 19:00:21::   File "/usr/local/src/riverscapes-tools/packages/vbet/vbet/vbet.py", line 455, in vbet
2021-10-04 19:00:21::     out_feat.SetField(vbet_summary_field, clip_value)
2021-10-04 19:00:21::   File "/usr/local/venv/lib/python3.8/site-packages/osgeo/ogr.py", line 4490, in SetField
2021-10-04 19:00:21::     return _ogr.Feature_SetFieldString(self, fld_index, args[1])
2021-10-04 19:00:21:: RuntimeError: Invalid index : -1
2021-10-04 19:00:22:: <<RS CONTEXT PROCESS ENDED WITH AN ERROR>>

Hucs: 17010104, others FAILED-17010104.log

KellyMWhitehead commented 3 years ago

fixed in 7becc2db578651fcf4e357739af88f96df7915c2