NCAR/wrf_hydro_gis_preprocessor

single-entry frxst.csv input

Opened this issue · 0 comments

Having multiple entries in a frxst.csv input yields an array of tuples, but just one entry as in

FID,LON,LAT,STATION,Name
15,-105.92833,40.08139,Fraser_at_Granby,9033300

(yields just a tuple), produces this error:

File "wrf_hydro_gis_preprocessor/wrfhydro_gis/wrfhydro_functions.py", line 2336, in forecast_points
ds = CSV_to_SHP(in_csv, DriverName='MEMORY', xVar='LON', yVar='LAT', idVar='FID', toProj=WKT) # In-memory features
File "wrf_hydro_gis_preprocessor/wrfhydro_gis/wrfhydro_functions.py", line 2293, in CSV_to_SHP
for row in csv_arr:
TypeError: iteration over a 0-d array

Seems ok to add a second entry off the grid.
(Not an issue for the ArcGIS preprocessor.)