Skip to content

Commit 93f420e

Browse files
authored
Merge pull request #134 from csiro-coasts/kgari
Use K'gari consistently
2 parents 578adb8 + 012719b commit 93f420e

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

docs/releases/development.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,7 @@ Next release (in development)
2121
for testing plotting methods
2222
(:pr:`128`).
2323
* Update all URLs to the NCI THREDDS server
24-
(`update notice <https://opus.nci.org.au/display/NDP/THREDDS+Upgrade>`,
24+
(`update notice <https://opus.nci.org.au/display/NDP/THREDDS+Upgrade>`_,
2525
:issue:`135`, :pr:`136`, :pr:`csiro-coast/emsarray-data#2`).
26+
* Correct all references to K'gari, formerly Fraser Island
27+
(:issue:`133`, :pr:`csiro-coast/emsarray-data#2`, :pr:`134`).

src/emsarray/conventions/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ def wind(
807807
import numpy
808808
import xarray
809809
810-
dataset = emsarray.tutorial.open_dataset('fraser')
810+
dataset = emsarray.tutorial.open_dataset('kgari')
811811
face_size = dataset.ems.grid_size[dataset.ems.default_grid_kind]
812812
flat_array = xarray.DataArray(
813813
data=numpy.arange(face_size),

src/emsarray/tutorial.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
# Bump this version as new datasets are added or as old datasets are updated.
2828
# Should be a tag name or commit hash, something immutable.
29-
VERSION = "v0.3.0"
29+
VERSION = "v0.4.0"
3030

3131

3232
def _make_download_url(name: str) -> str:
@@ -86,9 +86,9 @@ def open_dataset(name: str, **kwargs: Any) -> xarray.Dataset:
8686
This dataset is defined on a rectangular grid with one dimensional coordinates,
8787
handled by the :class:`.CFGrid1D` convenion.
8888
89-
``fraser``
89+
``kgari``
9090
A subset of the Great Barrier Reef 4km (GBR4) v2.0 model, part of the eReefs data.
91-
This subset is centred around K'gari / Fraser Island.
91+
This subset is centred around K'gari.
9292
This dataset is defined on a curvilinear grid with two dimensional coordinates,
9393
handled by the :class:`.CFGrid2D` convention.
9494
Temperature, sea surface height, and current variables are included.
@@ -117,8 +117,8 @@ def open_dataset(name: str, **kwargs: Any) -> xarray.Dataset:
117117
.. code-block:: python
118118
119119
import emsarray
120-
fraser = emsarray.tutorial.open_dataset('fraser')
121-
fraser.ems.plot(fraser['temp'].isel(time=0, k=-1))
120+
kgari = emsarray.tutorial.open_dataset('kgari')
121+
kgari.ems.plot(kgari['temp'].isel(time=0, k=-1))
122122
"""
123123
local_path = _fetch(name)
124124
return emsarray.open_dataset(local_path, **kwargs)

tests/test_plot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def test_plot(
5959
datasets: pathlib.Path,
6060
tmp_path: pathlib.Path,
6161
):
62-
dataset = emsarray.tutorial.open_dataset('fraser')
62+
dataset = emsarray.tutorial.open_dataset('kgari')
6363
temp = dataset['temp'].copy()
6464
temp = temp.isel(time=0, k=-1)
6565

@@ -82,7 +82,7 @@ def test_plot_no_long_name(
8282
Test plotting a variable with no long_name attribute works.
8383
Regression test for https://github.com/csiro-coasts/emsarray/issues/105
8484
"""
85-
dataset = emsarray.tutorial.open_dataset('fraser')
85+
dataset = emsarray.tutorial.open_dataset('kgari')
8686
temp = dataset['temp'].copy()
8787
temp = temp.isel(time=0, k=-1)
8888
del temp.attrs['long_name']

0 commit comments

Comments
 (0)