From 94d351bc4c01e5f6edaa5c38316580501e83b635 Mon Sep 17 00:00:00 2001 From: jacquelynsmale Date: Tue, 4 Feb 2025 12:09:15 -0900 Subject: [PATCH] add in a bit more logic --- tools/RAiDER/cli/raider.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/RAiDER/cli/raider.py b/tools/RAiDER/cli/raider.py index 718b8d94..4d9cee84 100644 --- a/tools/RAiDER/cli/raider.py +++ b/tools/RAiDER/cli/raider.py @@ -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