From bf9f102d9eec8409f90620048f2a35f527d02e93 Mon Sep 17 00:00:00 2001 From: Derk Weijers Date: Mon, 26 Aug 2024 10:01:17 +0200 Subject: [PATCH 1/4] chore: bump version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 0d4aba0..6f5a7b7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "weather_provider_api" -version = "2.56.0" +version = "2.57.0" description = "Weather Provider Libraries and API" authors = ["Verbindingsteam", "Raoul Linnenbank <58594297+rflinnenbank@users.noreply.github.com>"] license = "MPL-2.0" From 4e12b59fe8db49dc47370abe3854da46c39d3e9e Mon Sep 17 00:00:00 2001 From: Derk Weijers Date: Mon, 26 Aug 2024 10:08:52 +0200 Subject: [PATCH 2/4] chore: update the harmonie version --- .../routers/weather/sources/knmi/client/arome_repository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weather_provider_api/routers/weather/sources/knmi/client/arome_repository.py b/weather_provider_api/routers/weather/sources/knmi/client/arome_repository.py index 2d85e9c..a7c5d75 100644 --- a/weather_provider_api/routers/weather/sources/knmi/client/arome_repository.py +++ b/weather_provider_api/routers/weather/sources/knmi/client/arome_repository.py @@ -49,7 +49,7 @@ def __init__(self): self.file_prefix = "AROME" self.runtime_limit = 60 * 60 * 3 # 3 hours maximum runtime self.permanent_suffixes = ["0000", "0600", "1200", "1800"] - self.dataset_name = "harmonie_arome_cy40_p1" + self.dataset_name = "harmonie_arome_cy43_p1" self.dataset_version = "0.2" self.file_identifier_length = 13 self.time_encoding = "hours since 2018-01-01" # Used to keep values usable for at least the upcoming decennium From 7189596713930d770aa30e3d5bdb88bd3f59b95a Mon Sep 17 00:00:00 2001 From: Derk Weijers Date: Mon, 26 Aug 2024 10:43:52 +0200 Subject: [PATCH 3/4] chore: update filenames --- .../routers/weather/sources/knmi/client/arome_repository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weather_provider_api/routers/weather/sources/knmi/client/arome_repository.py b/weather_provider_api/routers/weather/sources/knmi/client/arome_repository.py index a7c5d75..b91e039 100644 --- a/weather_provider_api/routers/weather/sources/knmi/client/arome_repository.py +++ b/weather_provider_api/routers/weather/sources/knmi/client/arome_repository.py @@ -214,7 +214,7 @@ def _convert_unpacked_data_to_netcdf4_files(self, download_folder: Path, predict raise e grib_files_available = glob.glob( - str(download_folder.joinpath(f'HA40_N25_{prediction_time.strftime("%Y%m%d%H")}00_*_GB')) + str(download_folder.joinpath(f'HA43_N20_{prediction_time.strftime("%Y%m%d%H")}00_*_GB')) ) for grib_file in grib_files_available: From 6e3ded49cb811638bdc7f6d302ef2e319c08926f Mon Sep 17 00:00:00 2001 From: Derk Weijers Date: Mon, 26 Aug 2024 11:51:45 +0200 Subject: [PATCH 4/4] chore: version updates --- .../routers/weather/sources/knmi/client/arome_repository.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weather_provider_api/routers/weather/sources/knmi/client/arome_repository.py b/weather_provider_api/routers/weather/sources/knmi/client/arome_repository.py index b91e039..d73f5c1 100644 --- a/weather_provider_api/routers/weather/sources/knmi/client/arome_repository.py +++ b/weather_provider_api/routers/weather/sources/knmi/client/arome_repository.py @@ -50,7 +50,7 @@ def __init__(self): self.runtime_limit = 60 * 60 * 3 # 3 hours maximum runtime self.permanent_suffixes = ["0000", "0600", "1200", "1800"] self.dataset_name = "harmonie_arome_cy43_p1" - self.dataset_version = "0.2" + self.dataset_version = "1.0" self.file_identifier_length = 13 self.time_encoding = "hours since 2018-01-01" # Used to keep values usable for at least the upcoming decennium @@ -126,7 +126,7 @@ def update(self): if not self._prediction_already_available(prediction_to_evaluate): logger.debug(f"- Gathering the prediction for: {prediction_to_evaluate}") file_to_download = ( - f"harm40_v1_p1_{prediction_to_evaluate.year}" + f"HARM43_V1_P1_{prediction_to_evaluate.year}" f"{str(prediction_to_evaluate.month).zfill(2)}" f"{str(prediction_to_evaluate.day).zfill(2)}" f"{str(prediction_to_evaluate.hour).zfill(2)}.tar"