diff --git a/tests/download/RADNL_CLIM____MFBSNL25_24H_20221231T010000_20240101T000000_netCDF4_0002.zip b/tests/download/RADNL_CLIM____MFBSNL25_24H_20221231T010000_20240101T000000_netCDF4_0002.zip new file mode 100644 index 00000000..ad61ef78 Binary files /dev/null and b/tests/download/RADNL_CLIM____MFBSNL25_24H_20221231T010000_20240101T000000_netCDF4_0002.zip differ diff --git a/tests/test_018_knmi_data_platform.py b/tests/test_018_knmi_data_platform.py index 33ccd2ed..9acde488 100644 --- a/tests/test_018_knmi_data_platform.py +++ b/tests/test_018_knmi_data_platform.py @@ -39,20 +39,17 @@ def test_download_read_zip_file() -> None: # list the files files = knmi_data_platform.get_list_of_files(dataset_name, dataset_version) - # download the last file and only read the last hour of every day - # as the data represents the precipitation in the last 24 hours + # download the last file dirname = "download" fname = files[-1] knmi_data_platform.download_file( dataset_name, dataset_version, fname=fname, dirname=dirname ) - ds = knmi_data_platform.read_dataset_from_zip( - os.path.join(dirname, files[-1]), hour=24 - ) - # plot the mean precipitation - ds["image1_image_data"].mean("time").plot(size=10) +def test_read_zip_file() -> None: + fname = data_path / "KNMI_Data_Platform_NETCDF.zip" + _ = knmi_data_platform.read_dataset_from_zip(str(fname), hour=24) def test_read_h5() -> None: