Skip to content

Commit

Permalink
drop removal of MO_TS_TG_ANDRATX that had varying lat/lon coordinates…
Browse files Browse the repository at this point in the history
…, not present anymore
  • Loading branch information
veenstrajelmer committed Sep 18, 2024
1 parent f55f973 commit 8752a95
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions dfm_tools/observations.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,7 @@ 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
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()
Expand Down

0 comments on commit 8752a95

Please sign in to comment.