Skip to content

Commit

Permalink
chore: Remove unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
pmav99 committed May 28, 2024
1 parent daeb1a8 commit 1bcae3e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
6 changes: 0 additions & 6 deletions thalassa/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,12 +482,6 @@ def get_pointer_timeseries(
return dmap


def extract_timeseries(ds: xarray.Dataset, variable: str, lon: float, lat: float) -> xarray.DataArray:
index = utils.get_index_of_nearest_node(ds=ds, lon=lon, lat=lat)
# extracted = ds[[variable, "lon", "lat"]].isel(node=index)
return ds[variable].isel(node=index)


# def plot_timeseries(ds: xarray.DataArray, lon: float, lat: float) -> geoviews.DynamicMap:
# node_index = utils.get_index_of_nearest_node(ds=ds, lon=lon, lat=lat)
# node_lon = ds.lon.isel(node_index)
Expand Down
5 changes: 0 additions & 5 deletions thalassa/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,6 @@ def get_index_of_nearest_node(ds: xarray.Dataset, lon: float, lat: float) -> int
return index_of_nearest_node


def extract_timeseries(ds: xarray.Dataset, variable: str, lon: float, lat: float) -> xarray.DataArray:
index = get_index_of_nearest_node(ds=ds, lon=lon, lat=lat)
return ds[variable].isel(node=index)


def drop_elements_crossing_idl(
ds: xarray.Dataset,
max_lon: float = 10,
Expand Down

0 comments on commit 1bcae3e

Please sign in to comment.