From b3e64422a189e4b2e60238c766becdd39d1c3dad Mon Sep 17 00:00:00 2001 From: veenstrajelmer Date: Fri, 11 Oct 2024 16:53:11 +0200 Subject: [PATCH 1/2] drop andratx station again for cmems-nrt --- dfm_tools/observations.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dfm_tools/observations.py b/dfm_tools/observations.py index 234cea603..9d888597e 100644 --- a/dfm_tools/observations.py +++ b/dfm_tools/observations.py @@ -252,7 +252,13 @@ def cmems_ssh_read_catalog(source, overwrite=True): bool_tidegauge = index_history_pd["file_name"].str.contains("/history/TG/") bool_slev = index_history_pd["parameters"].str.contains("SLEV") index_history_pd = index_history_pd.loc[bool_tidegauge & bool_slev] - + + # drop andratx station, lat/lon vary over time in nrt dataset + # TODO: remove this exception when the CMEMS nrt dataset is cleaned up + if source == "cmems-nrt": + bool_moving = index_history_pd["file_name"].str.contains("MO_TS_TG_ANDRATX") + index_history_pd = index_history_pd.loc[~bool_moving] + # generate geom and geodataframe assert (index_history_pd["geospatial_lon_min"] == index_history_pd["geospatial_lon_max"]).all() assert (index_history_pd["geospatial_lat_min"] == index_history_pd["geospatial_lat_max"]).all() From bc75fa17502056b3e828857d304e9821ae53687c Mon Sep 17 00:00:00 2001 From: veenstrajelmer Date: Fri, 11 Oct 2024 17:00:18 +0200 Subject: [PATCH 2/2] updated changelog --- docs/whats-new.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/whats-new.md b/docs/whats-new.md index 78fdca214..1764b4a63 100644 --- a/docs/whats-new.md +++ b/docs/whats-new.md @@ -1,5 +1,11 @@ # What's new +## UNRELEASED + +### Fix +- fixed cmems-nrt insitu again by dropping station with varying coordinates again in [#1023](https://github.com/Deltares/dfm_tools/pull/1023) + + ## 0.29.0 (2024-09-27) ### Feat