Skip to content

Commit 94a1adb

Browse files
committed
Update readmes
1 parent e286dcd commit 94a1adb

File tree

3 files changed

+34
-27
lines changed

3 files changed

+34
-27
lines changed

docs/index.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
<img style="float: left; margin: 0 50px 0 0;" src="assets/eo-tides-logo.jpg" width="136">
22
# `eo-tides:` Tide modelling tools for large-scale satellite earth observation analysis
33

4-
<!-- <img src="assets/eo-tides-logo.jpg" alt="drawing" width="200"/> -->
5-
<!-- <img style="display: block; margin: auto;" src="assets/eo-tides-logo.jpg"/> -->
6-
74
[![Release](https://img.shields.io/github/v/release/GeoscienceAustralia/eo-tides)](https://img.shields.io/github/v/release/GeoscienceAustralia/eo-tides)
85
[![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)
96
[![Commit activity](https://img.shields.io/github/commit-activity/m/GeoscienceAustralia/eo-tides)](https://img.shields.io/github/commit-activity/m/GeoscienceAustralia/eo-tides)
@@ -15,14 +12,24 @@
1512

1613
The `eo-tides` package provides tools for analysing coastal and ocean satellite earth observation data using information about ocean tides.
1714

18-
`eo-tides` combines advanced tide modelling functionality from the [`pyTMD`](https://pytmd.readthedocs.io/en/latest/) package and integrates it with `pandas`, `xarray` and `odc-geo` to provide a powerful set of tools for integrating satellite imagery with tide data.
15+
`eo-tides` combines advanced tide modelling functionality from the [`pyTMD`](https://pytmd.readthedocs.io/en/latest/) package and integrates it with `pandas`, `xarray` and `odc-geo` to provide a powerful set of parallelised tools for integrating satellite imagery with tide data – from local, regional to continental scale.
1916

2017
Some key functionality includes the ability to:
2118

22-
- Model tides from multiple global ocean tide models (e.g. FES2022, FES2014, TPXO9, EOT20 and many more) in parallel, and return tide heights in standardised `pandas.DataFrame` format for further analysis
19+
- Model tides from multiple global ocean tide models in parallel, and return tide heights in standardised `pandas.DataFrame` format for further analysis
2320
- "Tag" satellite data timeseries with tide data based on the exact moment of each satellite acquisition
2421
- Model tides for every individual satellite pixel, producing three-dimensional "tide height" `xarray`-format datacubes that can be combined with satellite data
2522
- Calculate statistics describing local tide dynamics, as well as biases caused by interactions between tidal processes and satellite orbits
26-
- Validate modelled tides using measured sea levels from coastal tide gauges
23+
- Validate modelled tides using measured sea levels from coastal tide gauges (e.g. GESLA)
2724

2825
These tools can be applied directly to petabytes of freely available satellite data (e.g. from Digital Earth Australia or Microsoft Planetary Computer) loaded via Open Data Cube's `odc-stac` or `datacube` packages, supporting coastal and ocean earth observation analysis for any time period or location globally.
26+
27+
## Supported tide models
28+
29+
`eo-tides` supports [all ocean tide models supported by `pyTMD`](https://pytmd.readthedocs.io/en/latest/getting_started/Getting-Started.html#model-database). These include:
30+
31+
- FES2022, FES2014, FES2012
32+
- TPXO10, TPXO9, TPXO8
33+
- GOT5.6, GOT5.5, GOT4.10
34+
- EOT20
35+
- HAMTIDE11

docs/install.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Installing `eo-tides`
2+
3+
`eo-tides` can be installed into your Python environment from [PyPI](https://pypi.org/project/eo-tides/) using `pip`:
4+
5+
```
6+
pip install eo-tides
7+
```
8+
9+
By default, only essential package dependencies are installed. To install all packages required for running the included Jupyter Notebook examples (including `odc-stac` and `pystac-client` for loading freely available satellite data):
10+
11+
```
12+
pip install eo-tides[notebooks]
13+
```
14+
15+
Once you have installed `eo-tides`, you will need to [download and set up at least one tide model](../setup/) before you can model tides.

docs/setup.md

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -21,37 +21,24 @@
2121

2222
6. Navigate to `/auxiliary/tide_model/fes2014_elevations_and_load/`, and download the following files:
2323

24-
- `fes2014a_loadtide/load_tide.tar.xz`
2524
- `fes2014b_elevations/ocean_tide.tar.xz` (_or_ `fes2014b_elevations_extrapolated/ocean_tide_extrapolated.tar.xz`; this extrapolated version includes additional coverage of the coastal zone, which can be useful for coastal applications)
2625

27-
7. Create a new folder (i.e. `tide_models/fes2014/`) to store the model files in a location that will be accessible to the DEA Coastlines code. Extract `load_tide.tar.xz` and `ocean_tide.tar.xz` into this folder (e.g. `tar -xf load_tide.tar.xz`). You should end up with the following directory structure containing the extracted NetCDF files:
26+
7. Create a new folder (i.e. `tide_models/fes2014/`) to store the model files in an accessible location. Extract `ocean_tide.tar.xz` into this folder (e.g. `tar -xf ocean_tide.tar.xz`). You should end up with the following directory structure containing the extracted NetCDF files:
2827

2928
```
30-
tide_models/fes2014/load_tide/
31-
|- 2n2.nc
32-
|- ...
33-
|- t2.nc
3429
tide_models/fes2014/ocean_tide/
3530
|- 2n2.nc
3631
|- ...
3732
|- t2.nc
3833
```
3934

40-
> **Note**: If you downloaded `ocean_tide_extrapolated.tar.xz`, you will need to rename the extracted `ocean_tide_extrapolated` folder to `ocean_tide`.
41-
4235
### Modelling tides
4336

44-
If the `pyTMD` Python package is not installed on your system, this can be installed using:
45-
46-
```
47-
pip install pytmd
48-
```
49-
50-
Tides can now be modelled using the `model_tides` function from the `dea_tools.coastal` package:
37+
Tides can now be modelled using the `model_tides` function from the `eo_tides.model` module:
5138

5239
```
5340
import pandas as pd
54-
from dea_tools.coastal import model_tides
41+
from eo_tides.model import model_tides
5542
5643
lons=[155, 160]
5744
lats=[-35, -36]
@@ -60,11 +47,9 @@ example_times = pd.date_range("2022-01-01", "2022-01-04", freq="1D")
6047
model_tides(
6148
x=lons,
6249
y=lats,
63-
time=example_times.values,
64-
directory='tide_models'
50+
time=example_times,
51+
directory='tide_models/'
6552
)
6653
```
6754

68-
In the DEA Coastlines code, this function is used in the `raster` module as part of the annual water index composite generation process.
69-
70-
Depending on where you created the `tide_models` directory, you may need to update the `directory` parameter of the `model_tide_points` function to point to the location of the FES2014 model files.
55+
Depending on where you created the `tide_models` directory, you may need to update the `directory` parameter of the `model_tides` function to point to the location of the FES2014 model files.

0 commit comments

Comments
 (0)