eo-tides 0.2.0__tar.gz → 0.3.1__tar.gz

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.
@@ -1,8 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: eo-tides
3
- Version: 0.2.0
3
+ Version: 0.3.1
4
4
  Summary: Tide modelling tools for large-scale satellite earth observation analysis
5
- Author-email: Robbi Bishop-Taylor <Robbi.BishopTaylor@ga.gov.au>
5
+ Author: Robbi Bishop-Taylor, Stephen Sagar, Claire Phillips, Vanessa Newey
6
+ Author-email: Robbi.BishopTaylor@ga.gov.au
6
7
  Project-URL: Homepage, https://GeoscienceAustralia.github.io/eo-tides/
7
8
  Project-URL: Repository, https://github.com/GeoscienceAustralia/eo-tides
8
9
  Project-URL: Documentation, https://GeoscienceAustralia.github.io/eo-tides/
@@ -19,6 +20,7 @@ Classifier: Programming Language :: Python :: 3.9
19
20
  Classifier: Programming Language :: Python :: 3.10
20
21
  Classifier: Programming Language :: Python :: 3.11
21
22
  Classifier: Programming Language :: Python :: 3.12
23
+ Classifier: Programming Language :: Python :: 3.13
22
24
  Requires-Python: <4.0,>=3.9
23
25
  Description-Content-Type: text/markdown
24
26
  License-File: LICENSE
@@ -28,8 +30,9 @@ Requires-Dist: matplotlib>=3.8.0
28
30
  Requires-Dist: numpy>=1.26.0
29
31
  Requires-Dist: odc-geo>=0.4.7
30
32
  Requires-Dist: pandas>=2.2.0
33
+ Requires-Dist: psutil>=5.8.0
31
34
  Requires-Dist: pyproj>=3.6.1
32
- Requires-Dist: pyTMD==2.1.7
35
+ Requires-Dist: pyTMD==2.1.8
33
36
  Requires-Dist: scikit-learn>=1.4.0
34
37
  Requires-Dist: scipy>=1.11.2
35
38
  Requires-Dist: shapely>=2.0.6
@@ -44,16 +47,17 @@ Requires-Dist: planetary_computer>=1.0.0; extra == "notebooks"
44
47
 
45
48
  # `eo-tides`: Tide modelling tools for large-scale satellite earth observation analysis
46
49
 
47
- <img align="right" width="200" src="docs/assets/eo-tides-logo.gif" alt="eo-tides logo" style="margin-right: 40px;">
50
+ <img align="right" width="200" src="https://github.com/GeoscienceAustralia/eo-tides/blob/main/docs/assets/eo-tides-logo.gif?raw=true" alt="eo-tides logo" style="margin-right: 40px;">
48
51
 
49
52
  [![Release](https://img.shields.io/github/v/release/GeoscienceAustralia/eo-tides)](https://pypi.org/project/eo-tides/)
50
53
  [![Build status](https://img.shields.io/github/actions/workflow/status/GeoscienceAustralia/eo-tides/main.yml?branch=main)](https://github.com/GeoscienceAustralia/eo-tides/actions/workflows/main.yml?query=branch%3Amain)
51
- ![Python Version from PEP 621 TOML](https://img.shields.io/pypi/pyversions/eo-tides)
54
+ [![Python Version from PEP 621 TOML](https://img.shields.io/pypi/pyversions/eo-tides)](https://github.com/GeoscienceAustralia/eo-tides/blob/main/pyproject.toml)
52
55
  [![codecov](https://codecov.io/gh/GeoscienceAustralia/eo-tides/branch/main/graph/badge.svg)](https://codecov.io/gh/GeoscienceAustralia/eo-tides)
53
56
  [![License](https://img.shields.io/github/license/GeoscienceAustralia/eo-tides)](https://img.shields.io/github/license/GeoscienceAustralia/eo-tides)
54
57
 
55
- - **Github repository**: <https://github.com/GeoscienceAustralia/eo-tides/>
56
- - **Documentation** <https://GeoscienceAustralia.github.io/eo-tides/>
58
+ - ⚙️ **Github repository**: <https://github.com/GeoscienceAustralia/eo-tides/>
59
+ - 📘 **Documentation**: <https://GeoscienceAustralia.github.io/eo-tides/>
60
+ - 🐍 **PyPI**: <https://pypi.org/project/eo-tides/>
57
61
 
58
62
  > [!CAUTION]
59
63
  > This package is a work in progress, and not currently ready for operational use.
@@ -64,12 +68,12 @@ Requires-Dist: planetary_computer>=1.0.0; extra == "notebooks"
64
68
 
65
69
  These tools can be applied to petabytes of freely available satellite data (e.g. from [Digital Earth Australia](https://knowledge.dea.ga.gov.au/) or [Microsoft Planetary Computer](https://planetarycomputer.microsoft.com/)) loaded via Open Data Cube's [`odc-stac`](https://odc-stac.readthedocs.io/en/latest/) or [`datacube`](https://opendatacube.readthedocs.io/en/latest/) packages, supporting coastal and ocean earth observation analysis for any time period or location globally.
66
70
 
67
- ![eo-tides abstract showing satellite data, tide data array and tide animation](docs/assets/eo-tides-abstract.gif)
71
+ ![eo-tides abstract showing satellite data, tide data array and tide animation](https://github.com/GeoscienceAustralia/eo-tides/blob/main/docs/assets/eo-tides-abstract.gif?raw=true)
68
72
 
69
73
  ## Highlights
70
74
 
71
75
  - 🌊 Model tide heights and phases (e.g. high, low, ebb, flow) from multiple global ocean tide models in parallel, and return a `pandas.DataFrame` for further analysis
72
- - 🛰️ "Tag" satellite data with tide height and stage based on the exact moment of image acquisition
76
+ - 🛰️ "Tag" satellite data with tide heights based on the exact moment of image acquisition
73
77
  - 🌐 Model tides for every individual satellite pixel through time, producing three-dimensional "tide height" `xarray`-format datacubes that can be integrated with satellite data
74
78
  - 📈 Calculate statistics describing local tide dynamics, as well as biases caused by interactions between tidal processes and satellite orbits
75
79
  - 🛠️ Validate modelled tides using measured sea levels from coastal tide gauges (e.g. [GESLA Global Extreme Sea Level Analysis](https://gesla.org/))
@@ -1,15 +1,16 @@
1
1
  # `eo-tides`: Tide modelling tools for large-scale satellite earth observation analysis
2
2
 
3
- <img align="right" width="200" src="docs/assets/eo-tides-logo.gif" alt="eo-tides logo" style="margin-right: 40px;">
3
+ <img align="right" width="200" src="https://github.com/GeoscienceAustralia/eo-tides/blob/main/docs/assets/eo-tides-logo.gif?raw=true" alt="eo-tides logo" style="margin-right: 40px;">
4
4
 
5
5
  [![Release](https://img.shields.io/github/v/release/GeoscienceAustralia/eo-tides)](https://pypi.org/project/eo-tides/)
6
6
  [![Build status](https://img.shields.io/github/actions/workflow/status/GeoscienceAustralia/eo-tides/main.yml?branch=main)](https://github.com/GeoscienceAustralia/eo-tides/actions/workflows/main.yml?query=branch%3Amain)
7
- ![Python Version from PEP 621 TOML](https://img.shields.io/pypi/pyversions/eo-tides)
7
+ [![Python Version from PEP 621 TOML](https://img.shields.io/pypi/pyversions/eo-tides)](https://github.com/GeoscienceAustralia/eo-tides/blob/main/pyproject.toml)
8
8
  [![codecov](https://codecov.io/gh/GeoscienceAustralia/eo-tides/branch/main/graph/badge.svg)](https://codecov.io/gh/GeoscienceAustralia/eo-tides)
9
9
  [![License](https://img.shields.io/github/license/GeoscienceAustralia/eo-tides)](https://img.shields.io/github/license/GeoscienceAustralia/eo-tides)
10
10
 
11
- - **Github repository**: <https://github.com/GeoscienceAustralia/eo-tides/>
12
- - **Documentation** <https://GeoscienceAustralia.github.io/eo-tides/>
11
+ - ⚙️ **Github repository**: <https://github.com/GeoscienceAustralia/eo-tides/>
12
+ - 📘 **Documentation**: <https://GeoscienceAustralia.github.io/eo-tides/>
13
+ - 🐍 **PyPI**: <https://pypi.org/project/eo-tides/>
13
14
 
14
15
  > [!CAUTION]
15
16
  > This package is a work in progress, and not currently ready for operational use.
@@ -20,12 +21,12 @@
20
21
 
21
22
  These tools can be applied to petabytes of freely available satellite data (e.g. from [Digital Earth Australia](https://knowledge.dea.ga.gov.au/) or [Microsoft Planetary Computer](https://planetarycomputer.microsoft.com/)) loaded via Open Data Cube's [`odc-stac`](https://odc-stac.readthedocs.io/en/latest/) or [`datacube`](https://opendatacube.readthedocs.io/en/latest/) packages, supporting coastal and ocean earth observation analysis for any time period or location globally.
22
23
 
23
- ![eo-tides abstract showing satellite data, tide data array and tide animation](docs/assets/eo-tides-abstract.gif)
24
+ ![eo-tides abstract showing satellite data, tide data array and tide animation](https://github.com/GeoscienceAustralia/eo-tides/blob/main/docs/assets/eo-tides-abstract.gif?raw=true)
24
25
 
25
26
  ## Highlights
26
27
 
27
28
  - 🌊 Model tide heights and phases (e.g. high, low, ebb, flow) from multiple global ocean tide models in parallel, and return a `pandas.DataFrame` for further analysis
28
- - 🛰️ "Tag" satellite data with tide height and stage based on the exact moment of image acquisition
29
+ - 🛰️ "Tag" satellite data with tide heights based on the exact moment of image acquisition
29
30
  - 🌐 Model tides for every individual satellite pixel through time, producing three-dimensional "tide height" `xarray`-format datacubes that can be integrated with satellite data
30
31
  - 📈 Calculate statistics describing local tide dynamics, as well as biases caused by interactions between tidal processes and satellite orbits
31
32
  - 🛠️ Validate modelled tides using measured sea levels from coastal tide gauges (e.g. [GESLA Global Extreme Sea Level Analysis](https://gesla.org/))
@@ -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
  ]
@@ -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(