From 4a7b795e81a27dca1d5a640c38e1885c2fddfca1 Mon Sep 17 00:00:00 2001 From: Jan Griesfeller Date: Tue, 10 Sep 2024 16:37:53 +0200 Subject: [PATCH] linting --- setup.cfg | 2 +- src/pyaro_readers/actrisebas/ActrisEbasReader.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index 3272878..834f80b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -64,7 +64,7 @@ min_version = 4.0 skip_missing_interpreters = True isolated_build = True env_list = - py310 + py311 format #depends = diff --git a/src/pyaro_readers/actrisebas/ActrisEbasReader.py b/src/pyaro_readers/actrisebas/ActrisEbasReader.py index 8196c21..02a695c 100644 --- a/src/pyaro_readers/actrisebas/ActrisEbasReader.py +++ b/src/pyaro_readers/actrisebas/ActrisEbasReader.py @@ -145,13 +145,14 @@ def read_data( for s_idx, site_name in enumerate(urls_to_dl): for f_idx, url in enumerate(urls_to_dl[site_name]): tmp_data = xr.open_dataset(url) + long_name = tmp_data.attrs["ebas_station_name"] # create variables valid for all measured variables... start_time = np.asarray(tmp_data["time_bnds"][:, 0]) stop_time = np.asarray(tmp_data["time_bnds"][:, 1]) ts_no = len(start_time) lat = np.full(ts_no, tmp_data.attrs["geospatial_lat_min"]) lon = np.full(ts_no, tmp_data.attrs["geospatial_lon_min"]) - station = np.full(ts_no, tmp_data.attrs["ebas_station_name"]) + station = np.full(ts_no, tmp_data.attrs["ebas_station_code"]) altitude = np.full(ts_no, tmp_data.attrs["geospatial_vertical_min"]) standard_deviation = np.full(ts_no, np.nan)