eo-tides 0.1.0__py3-none-any.whl → 0.1.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
eo_tides/stats.py CHANGED
@@ -136,7 +136,7 @@ def _plot_biases(
136
136
 
137
137
 
138
138
  def tide_stats(
139
- ds: xr.Dataset,
139
+ ds: xr.Dataset | xr.DataArray,
140
140
  model: str = "EOT20",
141
141
  directory: str | os.PathLike | None = None,
142
142
  tidepost_lat: float | None = None,
@@ -167,7 +167,7 @@ def tide_stats(
167
167
 
168
168
  Parameters
169
169
  ----------
170
- ds : xarray.Dataset
170
+ ds : xarray.Dataset or xarray.DataArray
171
171
  A multi-dimensional dataset (e.g. "x", "y", "time") used
172
172
  to calculate tide statistics. This dataset must contain
173
173
  a "time" dimension.
@@ -266,7 +266,7 @@ def tide_stats(
266
266
  return_tideposts=True,
267
267
  **model_tides_kwargs,
268
268
  )
269
- obs_tides_da = obs_tides_da.sortby("time")
269
+ obs_tides_da = obs_tides_da.reindex_like(ds)
270
270
 
271
271
  # Generate range of times covering entire period of satellite record
272
272
  all_timerange = pd.date_range(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: eo-tides
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Tide modelling tools for large-scale satellite earth observation analysis
5
5
  Author-email: Robbi Bishop-Taylor <Robbi.BishopTaylor@ga.gov.au>
6
6
  Project-URL: Homepage, https://GeoscienceAustralia.github.io/eo-tides/
@@ -1,11 +1,11 @@
1
1
  eo_tides/__init__.py,sha256=TWmQNplePCcNAlua5WI_H7SShkWNk-Gd3X70EDEknSo,1557
2
2
  eo_tides/eo.py,sha256=OTFjchQWpSfgi2Q62mFBj6ckmy_1B_ExCAmex4UT4js,21616
3
3
  eo_tides/model.py,sha256=Bwc2VVhDDBJB0wuKUAdSKYfBPZG4XDfldb_BO5Wcy6Y,34517
4
- eo_tides/stats.py,sha256=9nfa7_obkS4tiHrQ1WTutuy2jlHtFg-cmOqP3l_Q7b8,20644
4
+ eo_tides/stats.py,sha256=JByNxsDBt88PKX-k0PP2KLg7G6-3_hsOilcbtnAbFY8,20681
5
5
  eo_tides/utils.py,sha256=l9VXJawQzaRBYaFMsP8VBeaN5VA3rFDdzcvF7Rk04Vc,5620
6
6
  eo_tides/validation.py,sha256=JjTUqDfbR189m_6W1bpaSolQIHNTLicTHN7z9O_nr3s,11828
7
- eo_tides-0.1.0.dist-info/LICENSE,sha256=owxWsXViCL2J6Ks3XYhot7t4Y93nstmXAT95Zf030Cc,11350
8
- eo_tides-0.1.0.dist-info/METADATA,sha256=S8nHZcj3TWi2w_RpYilZFeBM_Hjw38hXE16eFJhNPQc,7260
9
- eo_tides-0.1.0.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
10
- eo_tides-0.1.0.dist-info/top_level.txt,sha256=lXZDUUM1DlLdKWHRn8zdmtW8Rx-eQOIWVvt0b8VGiyQ,9
11
- eo_tides-0.1.0.dist-info/RECORD,,
7
+ eo_tides-0.1.1.dist-info/LICENSE,sha256=owxWsXViCL2J6Ks3XYhot7t4Y93nstmXAT95Zf030Cc,11350
8
+ eo_tides-0.1.1.dist-info/METADATA,sha256=JSTzMnxvPrQf1Ta0KXiRUQaENaleaWyzwu4m-DFdYGE,7260
9
+ eo_tides-0.1.1.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
10
+ eo_tides-0.1.1.dist-info/top_level.txt,sha256=lXZDUUM1DlLdKWHRn8zdmtW8Rx-eQOIWVvt0b8VGiyQ,9
11
+ eo_tides-0.1.1.dist-info/RECORD,,