eo-tides 0.2.0__py3-none-any.whl → 0.3.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/__init__.py CHANGED
@@ -28,9 +28,9 @@ validation : Load observed tide gauge data to validate modelled tides
28
28
 
29
29
  # Import commonly used functions for convenience
30
30
  from .eo import pixel_tides, tag_tides
31
- from .model import list_models, model_phases, model_tides
31
+ from .model import model_phases, model_tides
32
32
  from .stats import pixel_stats, tide_stats
33
- from .utils import idw
33
+ from .utils import clip_models, idw, list_models
34
34
  from .validation import eval_metrics, load_gauge_gesla
35
35
 
36
36
  # Define what should be imported with "from eo_tides import *"
@@ -42,7 +42,8 @@ __all__ = [
42
42
  "pixel_tides",
43
43
  "tide_stats",
44
44
  "pixel_stats",
45
- "idw",
46
45
  "eval_metrics",
47
46
  "load_gauge_gesla",
47
+ "clip_models",
48
+ "idw",
48
49
  ]
eo_tides/eo.py CHANGED
@@ -8,17 +8,15 @@ from typing import TYPE_CHECKING
8
8
 
9
9
  import numpy as np
10
10
  import odc.geo.xr
11
- import pandas as pd
12
11
  import xarray as xr
13
12
  from odc.geo.geobox import GeoBox
14
13
 
15
14
  # Only import if running type checking
16
15
  if TYPE_CHECKING:
17
- import datetime
18
-
19
16
  from odc.geo import Shape2d
20
17
 
21
- from .model import DatetimeLike, _standardise_time, model_tides
18
+ from .model import model_tides
19
+ from .utils import DatetimeLike, _standardise_time
22
20
 
23
21
 
24
22
  def _resample_chunks(