Skip to content

Commit

Permalink
weather forecast delete hrrr files
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristophGehbauer committed Sep 5, 2024
1 parent f17314d commit f691ea9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion doper/data/weatherForecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,12 @@ def get_hrrr_forecast(lat, lon, dt, tz='America/Los_Angeles', max_hour=16,

# determine nearest gridpoint
r = get_nearest_data(lat, lon, fcObj)

# FIXME: deleting file manually due to pygrib 2.1.5 bug
try:
os.remove(fcObj)
except:
pass
else:
# no forecast received
r = {}
Expand Down Expand Up @@ -346,7 +352,7 @@ def get_default_config():
config['lon'] = -122.2501
config['tz'] = 'US/Pacific'
config['horizon'] = 16
config['tmp_dir'] = os.path.join(root, 'tmp')
config['tmp_dir'] = 'tmp'
config['debug'] = False
config['source'] = 'noaa_hrrr'
config['json_return'] = True
Expand Down

0 comments on commit f691ea9

Please sign in to comment.