Skip to content

Commit

Permalink
fix: removed duplicate rows for most recent day
Browse files Browse the repository at this point in the history
  • Loading branch information
KYSIEMENS committed Jul 31, 2024
1 parent 7dc6777 commit ff85f97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/src/grib2poly.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,9 @@ def watershed_forecast_averaging(file_list, zone, output, type = 'forecast'):
ostore.get_object(local_path=local_filename, file_path=obj_path)
file_list.append(local_filename)

output_template = pd.DataFrame(data=None, index = importdates, columns = coffee_shp.WSDG_ID)
output_template = pd.DataFrame(data=None, index = importdates - datetime.timedelta(days=1), columns = coffee_shp.WSDG_ID)
COFFEE_precip = watershed_forecast_averaging(file_list, coffee_shp, output_template, type = 'analysis')
output_template = pd.DataFrame(data=None, index = importdates, columns = clever_shp.WSDG_ID)
output_template = pd.DataFrame(data=None, index = importdates - datetime.timedelta(days=1), columns = clever_shp.WSDG_ID)
CLEVER_precip = watershed_forecast_averaging(file_list, clever_shp, output_template, type = 'analysis')

COFFEE_summary = update_data(COFFEE_summary, COFFEE_precip)
Expand Down

0 comments on commit ff85f97

Please sign in to comment.