Skip to content

Commit

Permalink
Fix plotting order bug
Browse files Browse the repository at this point in the history
  • Loading branch information
robbibt committed Oct 21, 2024
1 parent 3aa4917 commit 7acef12
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
40 changes: 20 additions & 20 deletions docs/notebooks/Tide_statistics.ipynb

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions eo_tides/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def _plot_biases(


def tide_stats(
ds: xr.Dataset,
ds: xr.Dataset | xr.DataArray,
model: str = "EOT20",
directory: str | os.PathLike | None = None,
tidepost_lat: float | None = None,
Expand Down Expand Up @@ -167,7 +167,7 @@ def tide_stats(
Parameters
----------
ds : xarray.Dataset
ds : xarray.Dataset or xarray.DataArray
A multi-dimensional dataset (e.g. "x", "y", "time") used
to calculate tide statistics. This dataset must contain
a "time" dimension.
Expand Down Expand Up @@ -266,7 +266,7 @@ def tide_stats(
return_tideposts=True,
**model_tides_kwargs,
)
obs_tides_da = obs_tides_da.sortby("time")
obs_tides_da = obs_tides_da.reindex_like(ds)

# Generate range of times covering entire period of satellite record
all_timerange = pd.date_range(
Expand Down

0 comments on commit 7acef12

Please sign in to comment.