Skip to content

Commit

Permalink
add in a bit more logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquelynsmale committed Feb 4, 2025
1 parent 2d579bc commit 94d351b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tools/RAiDER/cli/raider.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,13 +524,16 @@ def determine_weather_model(gunw_file):

# Check that the user-requested bounding box is within the weather model domain
model: WeatherModel = Model()
model.checkValidBounds(GUNWObj.get_bbox(gunw_file.name))
model.checkValidBounds(GUNWObj.get_bbox(gunw_file.absolute()))

if model == 'HRRR':
if RAiDER.aria.prepFromGUNW.check_hrrr_dataset_availablity_for_s1_azimuth_time_interpolation(gunw_id):
return model
elif RAiDER.aria.prepFromGUNW.check_weather_model_availability(gunw_id, model):
return model
if model != "HRRR":
if RAiDER.aria.prepFromGUNW.check_weather_model_availability(gunw_id, model):
return model
else:
return None


# ------------------------------------------------------------ prepFromGUNW.py
Expand Down

0 comments on commit 94d351b

Please sign in to comment.