Skip to content

[8pt] worker_fim_rasters: wse errors #131

Open
@RobHanna-NOAA

Description

@RobHanna-NOAA

During full scale ras2fim pipeline runs, two HUCs showed what appears to be related errors:

These were seen with the following:
12090301
- str_feature_id = 5791662
- str_feature_id = 5790994
- str_feature_id = 5791806
- str_feature_id = 5789506
- str_feature_id = 5790736
- str_feature_id = 5789214
- str_feature_id = 5789326
12040101
- str_feature_id = 1466258
- str_feature_id = 1466224
- str_feature_id = 1465634


Error:
str_feature_id = 5790994
cannot convert float NaN to integer
Traceback (most recent call last):
File "C:\Users\rdp-user\Projects\ras2fim-dev\ras2fim\src\worker_fim_rasters.py", line 1304, in fn_main_hecras
river = fn_create_hecras_files(str_feature_id, str_geom_path, flt_ds_xs, flt_us_xs, int_max_q, str_hecras_path_to_create, tpl_settings)
File "C:\Users\rdp-user\Projects\ras2fim-dev\ras2fim\src\worker_fim_rasters.py", line 1237, in fn_create_hecras_files
fn_run_hecras(str_ras_projectpath, int_max_flow, model_unit, tpl_settings)
File "C:\Users\rdp-user\Projects\ras2fim-dev\ras2fim\src\worker_fim_rasters.py", line 687, in fn_run_hecras
int_max_wse = int(max(list_avg_water_surface_elev) // flt_interval)
ValueError: cannot convert float NaN to integer

for more details.. see the 05_hecras_output / errors_found.log


Some also showed a slightly different error saying
C:\Users\rdp-user\Projects\ras2fim-dev\ras2fim\src\worker_fim_rasters.py:646: RuntimeWarning: invalid value encountered in multiply
arr_multiply_wse = arr_avg_water_surface_elev * arr_channel_length
C:\Users\rdp-user\Projects\ras2fim-dev\ras2fim\src\worker_fim_rasters.py:687: RuntimeWarning: invalid value encountered in double_scalars
int_max_wse = int(max(list_avg_water_surface_elev) // flt_interval)


Error:
str_feature_id = 5789214
cannot convert float NaN to integer
Traceback (most recent call last):
File "C:\Users\rdp-user\Projects\ras2fim-dev\ras2fim\src\worker_fim_rasters.py", line 1304, in fn_main_hecras
river = fn_create_hecras_files(str_feature_id, str_geom_path, flt_ds_xs, flt_us_xs, int_max_q, str_hecras_path_to_create, tpl_settings)
File "C:\Users\rdp-user\Projects\ras2fim-dev\ras2fim\src\worker_fim_rasters.py", line 1237, in fn_create_hecras_files
fn_run_hecras(str_ras_projectpath, int_max_flow, model_unit, tpl_settings)
File "C:\Users\rdp-user\Projects\ras2fim-dev\ras2fim\src\worker_fim_rasters.py", line 687, in fn_run_hecras
int_max_wse = int(max(list_avg_water_surface_elev) // flt_interval)
ValueError: cannot convert float NaN to integer

for more details.. see the 05_hecras_output / errors_found.log

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions