Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
robbibt committed Oct 1, 2024
1 parent 465871b commit 914ce37
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions docs/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ To migrate your code from DEA Tools to `eo-tides`, please be aware of the follow
The output tide heights column generated by the `model_tides` function (when running in the default `output_format="long"` format) has been renamed from `tide_m` to `tide_height`.
This more clearly describes the data, particularly when used in combination with `output_units="cm"` or `output_units="mm"` which returns tide heights in non-metre units.

- **Action:** Update references to column `tide_m` to `tide_height`

### Tide model directory environment variable updated

The `DEA_TOOLS_TIDE_MODELS` environmental variable has been renamed to `EO_TIDES_TIDE_MODELS`.

- **Action:** Set the `EO_TIDES_TIDE_MODELS` environment variable instead of `DEA_TOOLS_TIDE_MODELS`
7 changes: 4 additions & 3 deletions docs/notebooks/Model_tides.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"source": [
"# Modelling tides\n",
"\n",
"To model tide heights for a specific location and set of timesteps, we can use the `eo_tides.model.model_tides` function. \n",
"\n",
"## Getting started\n",
"As a first step, we need to tell `eo-tides` the location of our tide model directory that contains our downloaded tide model data ([refer to the detailed setup instructions here](../setup.md) if you haven't set this up).\n",
"\n",
Expand Down Expand Up @@ -36,8 +38,7 @@
"source": [
"## Using \"model_tides\"\n",
"\n",
"To model tide heights for a specific location and set of timesteps, we can use the `eo_tides.model.model_tides` function. \n",
"For example, we can model hourly tides across a one month period (January 2028):"
"In the example below, we model hourly tides for Broome in Western Australia across January 2018:"
]
},
{
Expand Down Expand Up @@ -162,7 +163,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The resulting `pandas.DataFrame` contains a `tide_model` column containing the name of the tide model used (FES2014 by default), and modelled tide heights in the `tide_height` column above with values representing tide height in metres relative to Mean Sea Level.\n",
"The resulting `pandas.DataFrame` contains a `tide_model` column listing the tide model used (FES2014 by default), and modelled tide heights in the `tide_height` column with values representing tide height in metres relative to Mean Sea Level.\n",
"\n",
"We can also plot out resulting tides to view how tides changed across this month. \n",
"Looking at the y-axis, we can see that tides at this macrotidal region ranged from -4 metres up to a maximum of +4 metres relative to Mean Sea Level:"
Expand Down
1 change: 1 addition & 0 deletions eo_tides/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ def model_tides(
This function is parallelised to improve performance, and
supports all tidal models supported by `pyTMD`, including:
- Empirical Ocean Tide model (`EOT20`)
- Finite Element Solution tide models (`FES2022`, `FES2014`, `FES2012`)
- TOPEX/POSEIDON global tide models (`TPXO10`, `TPXO9`, `TPXO8`)
Expand Down

0 comments on commit 914ce37

Please sign in to comment.