Skip to content

Commit a6e25cd

Browse files
committed
Update test_era5_land_monthly
This test was failing due to CDS server updates causing the request to return a 403 ("too large"). The test now requests far less data and once again runs successfully against the live server.
1 parent 0d0b56f commit a6e25cd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"_dataset_name": "reanalysis-era5-land-monthly-means", "variable": ["2m_temperature", "10m_u_component_of_wind"], "area": [50.45, 9.55, 49.55, 10.45], "data_format": "netcdf", "grid": [0.1, 0.1], "product_type": "monthly_averaged_reanalysis", "time": ["00:00", "01:00", "02:00", "03:00", "04:00", "05:00", "06:00", "07:00", "08:00", "09:00", "10:00", "11:00", "12:00", "13:00", "14:00", "15:00", "16:00", "17:00", "18:00", "19:00", "20:00", "21:00", "22:00", "23:00"], "day": ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31"], "month": ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"], "year": ["2015", "2016"]}
1+
{"_dataset_name": "reanalysis-era5-land-monthly-means", "variable": ["2m_temperature", "10m_u_component_of_wind"], "area": [49.95, 9.55, 49.55, 9.95], "data_format": "netcdf", "grid": [0.1, 0.1], "product_type": "monthly_averaged_reanalysis", "time": ["00:00", "01:00", "02:00", "03:00", "04:00", "05:00", "06:00", "07:00", "08:00", "09:00", "10:00", "11:00", "12:00", "13:00", "14:00", "15:00", "16:00", "17:00", "18:00", "19:00", "20:00", "21:00", "22:00", "23:00"], "day": ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31"], "month": ["01", "02", "03"], "year": "2015"}
22.7 KB
Binary file not shown.

test/test_era5.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ def test_era5_land_monthly(self):
107107
"reanalysis-era5-land-monthly-means:"
108108
"monthly_averaged_reanalysis",
109109
variable_names=["2m_temperature", "10m_u_component_of_wind"],
110-
bbox=[9.5, 49.5, 10.5, 50.5],
110+
bbox=[9.5, 49.5, 10.0, 50.0],
111111
spatial_res=0.1,
112-
time_range=["2015-01-01", "2016-12-31"],
112+
time_range=["2015-01-01", "2015-03-31"],
113113
)
114114
self.assertIsNotNone(dataset)
115115
self.assertTrue("t2m" in dataset.variables)

0 commit comments

Comments
 (0)