Commit fe0f1966 authored by Mike Bedington's avatar Mike Bedington

Tidy up river update function

parent 41bd0387
......@@ -64,7 +64,8 @@ else:
for i in range(0, len(forecast_data['times'])):
this_temp[i] = np.average(forecast_data['T2'][i,:,:], weights=this_river.wrf_catchment_factors)
this_river.addToSeries('catchment_temp', this_temp, forecast_data['times'], override=True)
if hasattr(this_river, 'river_obj'):
this_river.catchment_precipitation = this_river.river_obj.catchment_precipitation
except:
new_missing_dates.append(this_date)
missing_dates = new_missing_dates[:]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment