Skip to content

Commit

Permalink
Update delay.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dbekaert committed Oct 29, 2020
1 parent e5581df commit 4017ef3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tools/RAiDER/delay.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,15 @@ def tropo_delay(los, lats, lons, ll_bounds, heights, flag, weather_model, wmLoc,
logger.debug('Download-only is %s', download_only)
if wmLoc is None:
wmLoc = os.path.join(out, 'weather_files')


# weather model download
wm_filename = make_weather_model_filename(weather_model['name'], time, ll_bounds)

# weather model calculation
if download_only:
return None, None

# weather model calculation
wm_filename = make_weather_model_filename(weather_model['name'], time, ll_bounds)
weather_model_file = os.path.join(wmLoc, wm_filename)

if not os.path.exists(weather_model_file):
weather_model, lats, lons = prepareWeatherModel(
weather_model, wmLoc, out, lats=lats, lons=lons, los=los, zref=zref,
Expand Down

0 comments on commit 4017ef3

Please sign in to comment.