eo-tides 0.6.2.dev10__tar.gz → 0.6.3__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.
Files changed (77) hide show
  1. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/.gitignore +1 -0
  2. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/PKG-INFO +3 -2
  3. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/docs/changelog.md +11 -0
  4. eo_tides-0.6.3/docs/install.md +136 -0
  5. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/docs/migration.md +2 -2
  6. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/docs/notebooks/Model_tides.ipynb +30 -106
  7. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/docs/setup.md +86 -23
  8. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/eo_tides/model.py +13 -2
  9. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/mkdocs.yml +2 -0
  10. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/pyproject.toml +4 -2
  11. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/tests/conftest.py +70 -4
  12. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/tests/test_model.py +25 -1
  13. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/tests/test_utils.py +14 -10
  14. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/tests/testing.ipynb +155 -118
  15. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/uv.lock +480 -419
  16. eo_tides-0.6.2.dev10/docs/install.md +0 -49
  17. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/.editorconfig +0 -0
  18. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  19. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  20. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/.github/actions/setup-python-env/action.yml +0 -0
  21. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/.github/workflows/check-links.yml +0 -0
  22. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/.github/workflows/main.yml +0 -0
  23. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/.github/workflows/on-release-main.yml +0 -0
  24. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/.github/workflows/paper.yml +0 -0
  25. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/.pre-commit-config.yaml +0 -0
  26. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/CITATION.cff +0 -0
  27. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/CONTRIBUTING.md +0 -0
  28. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/Dockerfile +0 -0
  29. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/LICENSE +0 -0
  30. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/Makefile +0 -0
  31. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/README.md +0 -0
  32. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/codecov.yaml +0 -0
  33. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/docs/api.md +0 -0
  34. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/docs/assets/dtu23_download.jpg +0 -0
  35. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/docs/assets/eo-tides-abstract.gif +0 -0
  36. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/docs/assets/eo-tides-logo-128.png +0 -0
  37. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/docs/assets/eo-tides-logo-256.png +0 -0
  38. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/docs/assets/eo-tides-logo.gif +0 -0
  39. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/docs/assets/eo-tides-logo.png +0 -0
  40. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/docs/assets/eot20_download.jpg +0 -0
  41. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/docs/assets/fes_ftp.jpg +0 -0
  42. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/docs/assets/fes_myproducts.jpg +0 -0
  43. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/docs/assets/fes_productselection.jpg +0 -0
  44. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/docs/assets/fes_subscriptions.jpg +0 -0
  45. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/docs/assets/got_download.jpg +0 -0
  46. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/docs/assets/tide_models_clipped.jpg +0 -0
  47. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/docs/assets/tpxo_download.jpg +0 -0
  48. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/docs/credits.md +0 -0
  49. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/docs/index.md +0 -0
  50. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/docs/notebooks/Case_study_intertidal.ipynb +0 -0
  51. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/docs/notebooks/Satellite_data.ipynb +0 -0
  52. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/docs/notebooks/Tide_statistics.ipynb +0 -0
  53. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/docs/notebooks/Validating_tides.ipynb +0 -0
  54. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/docs/stylesheets/extra.css +0 -0
  55. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/eo_tides/__init__.py +0 -0
  56. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/eo_tides/eo.py +0 -0
  57. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/eo_tides/stats.py +0 -0
  58. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/eo_tides/utils.py +0 -0
  59. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/eo_tides/validation.py +0 -0
  60. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/paper/benchmarking.ipynb +0 -0
  61. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/paper/figures/joss_abstract.png +0 -0
  62. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/paper/figures/joss_fig_gesla.png +0 -0
  63. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/paper/figures/joss_fig_list.png +0 -0
  64. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/paper/figures/joss_fig_pixel.png +0 -0
  65. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/paper/figures/joss_fig_stats.png +0 -0
  66. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/paper/paper.bib +0 -0
  67. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/paper/paper.md +0 -0
  68. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/paper/paper.pdf +0 -0
  69. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/tests/data/GESLA3_ALL 2.csv +0 -0
  70. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/tests/data/IDO71013_2020.csv +0 -0
  71. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/tests/data/broome-62650-aus-bom +0 -0
  72. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/tests/data/san_diego_ca-569a-usa-uhslc +0 -0
  73. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/tests/data/sydney_fort_denison-60370-aus-bom +0 -0
  74. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/tests/data/tide_models.tar.gz +0 -0
  75. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/tests/test_eo.py +0 -0
  76. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/tests/test_stats.py +0 -0
  77. {eo_tides-0.6.2.dev10 → eo_tides-0.6.3}/tests/test_validation.py +0 -0
@@ -1,6 +1,7 @@
1
1
  # Ignore project-specific directories
2
2
  tests/data/tide_models
3
3
  tests/data/tide_models_clipped
4
+ tests/data/tide_models_synthetic
4
5
  docs/source
5
6
 
6
7
  # From https://raw.githubusercontent.com/github/gitignore/main/Python.gitignore
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: eo-tides
3
- Version: 0.6.2.dev10
3
+ Version: 0.6.3
4
4
  Summary: Tide modelling tools for large-scale satellite earth observation analysis
5
5
  Project-URL: Homepage, https://GeoscienceAustralia.github.io/eo-tides/
6
6
  Project-URL: Repository, https://github.com/GeoscienceAustralia/eo-tides
@@ -23,6 +23,7 @@ Classifier: Topic :: Scientific/Engineering :: Oceanography
23
23
  Classifier: Topic :: Scientific/Engineering :: Visualization
24
24
  Requires-Python: <4.0,>=3.10
25
25
  Requires-Dist: colorama>=0.4.3
26
+ Requires-Dist: dask[complete]>=2023.1.0
26
27
  Requires-Dist: geopandas>=0.10.0
27
28
  Requires-Dist: matplotlib>=3.8.0
28
29
  Requires-Dist: numpy>=1.26.0
@@ -31,7 +32,7 @@ Requires-Dist: pandas>=2.2.0
31
32
  Requires-Dist: psutil>=5.8.0
32
33
  Requires-Dist: pyogrio>=0.10.0
33
34
  Requires-Dist: pyproj>=3.7.0
34
- Requires-Dist: pytmd>=2.2.2
35
+ Requires-Dist: pytmd==2.2.2
35
36
  Requires-Dist: scikit-learn>=1.4.0
36
37
  Requires-Dist: scipy>=1.14.1
37
38
  Requires-Dist: shapely>=2.0.6
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.6.3
4
+
5
+ ### New features
6
+
7
+ - Major updates to installation and setup documentation, to provide additional context about tide modelling data and installing `eo-tides` using both `pip` and `uv`
8
+
9
+ ### Bug fixes
10
+
11
+ - Fixed bug where ensemble tide modelling used excessive memory, by ensuring dtype of ensemble modelled tides matches dtype of input modelled tides ([#70](https://github.com/GeoscienceAustralia/eo-tides/pull/70))
12
+ - Added missing `dask` dependency to requirements ([#68](https://github.com/GeoscienceAustralia/eo-tides/pull/68))
13
+
3
14
  ## v0.6.2
4
15
 
5
16
  ### New features
@@ -0,0 +1,136 @@
1
+ # Installing `eo-tides`
2
+
3
+ ## Stable version
4
+
5
+ The latest stable release of `eo-tides` is:
6
+
7
+ [![PyPI](https://img.shields.io/pypi/v/eo-tides)](https://pypi.org/project/eo-tides/)
8
+
9
+ It is compatible with the following Python versions:
10
+
11
+ [![Python Version from PEP 621 TOML](https://img.shields.io/pypi/pyversions/eo-tides)](https://github.com/GeoscienceAustralia/eo-tides/blob/main/pyproject.toml)
12
+
13
+ `eo-tides` can be installed into your Python environment using either `pip` (the standard Python package manager), or `uv` ([a fast Python package manager](https://docs.astral.sh/uv/) written in Rust).
14
+
15
+ !!! tip
16
+
17
+ We recommend installing with `uv` as this makes it easy to set up an isolated environment containing compatible Python packages.
18
+
19
+ === "Installing with `pip`"
20
+
21
+ Install `eo-tides` with essential package dependencies only:
22
+ ```console
23
+ python3 -m pip install eo-tides
24
+ ```
25
+
26
+ To install [additional package dependencies](https://github.com/GeoscienceAustralia/eo-tides/blob/main/pyproject.toml#L62-L69) required for running the included Jupyter Notebook examples (including `odc-stac` and `pystac-client` for loading freely available satellite data), run:
27
+
28
+ ```console
29
+ python3 -m pip install eo-tides[notebooks]
30
+ ```
31
+
32
+ === "Installing with `uv`"
33
+
34
+ First, [install `uv` using the method of your choice](https://docs.astral.sh/uv/getting-started/installation/). Then:
35
+
36
+ Create a new virtual environment:
37
+ ```console
38
+ uv venv
39
+ ```
40
+
41
+ Activate your virtual environment:
42
+ ```console
43
+ source .venv/bin/activate
44
+ ```
45
+
46
+ Install `eo-tides` into your virtual environment, with essential package dependencies only:
47
+ ```console
48
+ uv pip install eo-tides
49
+ ```
50
+
51
+ To install [additional package dependencies](https://github.com/GeoscienceAustralia/eo-tides/blob/main/pyproject.toml#L62-L69) required for running the included Jupyter Notebook examples (including `odc-stac` and `pystac-client` for loading freely available satellite data), run:
52
+
53
+ ```console
54
+ uv pip install eo-tides[notebooks]
55
+ ```
56
+
57
+ ## Unstable development pre-releases
58
+
59
+ Unstable development pre-releases of `eo-tides` are also available:
60
+
61
+ [![PyPI](https://img.shields.io/badge/pypi-releases-f48041)](https://pypi.org/project/eo-tides/#history)
62
+
63
+ === "Installing with `pip`"
64
+
65
+ Install an example `eo-tides` pre-release (see [full list here](https://pypi.org/project/eo-tides/#history)):
66
+ ```console
67
+ python3 -m pip install eo-tides==0.6.3.dev5
68
+ ```
69
+
70
+ === "Installing with `uv`"
71
+
72
+ First, [install `uv` using the method of your choice](https://docs.astral.sh/uv/getting-started/installation/). Then:
73
+
74
+ Create a new virtual environment:
75
+ ```console
76
+ uv venv
77
+ ```
78
+
79
+ Activate your virtual environment:
80
+ ```console
81
+ source .venv/bin/activate
82
+ ```
83
+
84
+ Install an example `eo-tides` pre-release (see [full list here](https://pypi.org/project/eo-tides/#history)):
85
+ ```console
86
+ uv pip install eo-tides==0.6.3.dev5
87
+ ```
88
+
89
+ !!! important
90
+
91
+ Unstable development pre-releases may contain bugs and untested new features. Unless you need access to a specific unpublished feature, we recommend installing the latest stable version instead.
92
+
93
+ ### Advanced: Developing locally
94
+
95
+ To work on `eo-tides` locally, we recommend using `uv`.
96
+
97
+ First, [install `uv` using the method of your choice](https://docs.astral.sh/uv/getting-started/installation/).
98
+
99
+ Clone the `eo-tides` repository:
100
+
101
+ ```console
102
+ git clone https://github.com/GeoscienceAustralia/eo-tides
103
+ cd eo-tides/
104
+ ```
105
+
106
+ Use `uv sync` to populate an environment with package dependencies from the `eo-tides` [lockfile](https://github.com/GeoscienceAustralia/eo-tides/blob/main/uv.lock):
107
+
108
+ ```console
109
+ uv sync --all-extras
110
+ ```
111
+
112
+ Set up pre-commit hooks:
113
+
114
+ ```console
115
+ uv run pre-commit install
116
+ ```
117
+
118
+ We provide a [pre-prepared Makefile](https://github.com/GeoscienceAustralia/eo-tides/blob/main/Makefile) that you can use to easily run common tasks:
119
+
120
+ ```console
121
+ # Run code quality checks
122
+ make check
123
+
124
+ # Run pytest tests
125
+ make test
126
+
127
+ # Run Jupyter notebook tests
128
+ make test-notebooks
129
+
130
+ # Build and preview documentation
131
+ make docs
132
+ ```
133
+
134
+ ## Next steps
135
+
136
+ Once you have installed `eo-tides`, you will need to [download and set up at least one tide model](setup.md) before you can model tides.
@@ -34,7 +34,7 @@ Renamed for consistency with `model_tides` and `pixel_tides`.
34
34
 
35
35
  Update references to `tidal_tag` to `tag_tides`.
36
36
 
37
- ## `ds` param renamed to `data`, now accepts `GeoBox`
37
+ ### `ds` param renamed to `data`, now accepts `GeoBox`
38
38
 
39
39
  The `ds` param in all satellite data functions (`tag_tides`, `pixel_tides`, `tide_stats`, `pixel_tides`) has been updated to accept either `xarray.Dataset`, `xarray.DataArray` or a `odc.geo.geobox.GeoBox`. To account for this change, the `ds` param has been renamed to a more generic name `data`.
40
40
 
@@ -49,7 +49,7 @@ The `ds` param in all satellite data functions (`tag_tides`, `pixel_tides`, `tid
49
49
  tag_tides(data=your_data)
50
50
  ```
51
51
 
52
- ## `times` param renamed to `time`, accepts any format supported by `pandas.to_datetime()`
52
+ ### `times` param renamed to `time`, accepts any format supported by `pandas.to_datetime()`
53
53
 
54
54
  The `times` parameter has been renamed to `time`, and updated to more flexibly accept any time format that can be converted by `pandas.to_datetime()`; e.g. `np.ndarray[datetime64]`, `pd.DatetimeIndex`, `pd.Timestamp`, `datetime.datetime` and strings (e.g. `"2020-01-01 23:00"`). For example: `time=pd.date_range(start="2000", end="2001", freq="5h")`.
55
55