Skip to content

Commit

Permalink
Add earthkit-regrid
Browse files Browse the repository at this point in the history
  • Loading branch information
sandorkertesz committed Mar 5, 2024
1 parent 0834ea7 commit ecb2b77
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 6 deletions.
5 changes: 4 additions & 1 deletion docs/components_overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,8 @@ This is the summary of the available ``earthkit`` components.
- Meteorological computations.
-
* - :xref:`earthkit-plots`
- Graph chart visualisation
- Graph chart visualisation.
-
* - :xref:`earthkit-regrid`
- Regridding of geospatial data.
-
4 changes: 4 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@
"earthkit-plots",
"https://pypi.org/project/earthkit-plots",
),
"earthkit-regrid": (
"earthkit-regrid",
"https://earthkit-regrid.readthedocs.io",
),
"eccodes": (
"ecCodes",
"https://confluence.ecmwf.int/display/ECC/ecCodes+Home",
Expand Down
3 changes: 2 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Welcome to earthkit's documentation

The interface of :ref:`earthkit components <components>` is designed to be high-level in order to provide common tools to support activities across ECMWF and beyond. The design of the components also takes **scalability** into account, so researchers can enjoy efficiency whilst providing easier transfer to operations.

**earthkit** is still under development, but 4 components, :xref:`earthkit-data`, :xref:`earthkit-maps` , :xref:`earthkit-meteo` and :xref:`earthkit-plots` are now available in beta through PyPI and their GitHub repositories.
**earthkit** is still under development but some components are already available in beta through PyPI and their GitHub repositories.

.. .. toctree::
.. :maxdepth: 1
Expand All @@ -30,6 +30,7 @@ The interface of :ref:`earthkit components <components>` is designed to be high-
earthkit-maps <https://earthkit-maps.readthedocs.io>
earthkit-meteo <https://earthkit-meteo.readthedocs.io>
earthkit-plots <https://pypi.org/project/earthkit-plots>
earthkit-regrid <https://earthkit-regrid.readthedocs.io>

.. toctree::
:maxdepth: 1
Expand Down
5 changes: 4 additions & 1 deletion earthkit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@
import earthkit.data as data
import earthkit.maps as maps
import earthkit.meteo as meteo
import earthkit.plots as plots
import earthkit.regrid as regrid

__all__ = [
"data",
"maps",
"meteo",
# "regrid",
"plots",
"regrid",
"__version__",
]
3 changes: 2 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ channels:
- conda-forge
- nodefaults
dependencies:
- earthkit-data>=0.5.4
- earthkit-data>=0.5.5
- geos
- pip:
- earthkit-maps>=0.0.17
- earthkit-meteo>=0.0.1
- earthkit-plots>=0.0.6
- earthkit-regrid>=0.2.1
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ test_suite = tests
python-requires = >=3.8
packages = find_namespace:
install_requires =
earthkit-data>=0.5.4
earthkit-data>=0.5.5
earthkit-maps>=0.0.17
earthkit-meteo>=0.0.1
earthkit-plots>=0.0.6
earthkit-regrid>=0.2.1

[options.packages.find]
include = earthkit, earthkit.*
Expand Down
3 changes: 2 additions & 1 deletion tests/environment-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ dependencies:
- pytest-cov
- geos
- pip:
- earthkit-data>=0.5.4
- earthkit-data>=0.5.5
- earthkit-maps>=0.0.17
- earthkit-meteo>=0.0.1
- earthkit-plots>=0.0.6
- earthkit-regrid>=0.2.1
12 changes: 12 additions & 0 deletions tests/test_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,15 @@ def test_earthkit_plots_version_2():
from earthkit import plots # noqa

assert VERSION_RX.match(plots.__version__) is not None


def test_earthkit_regrid_version_1():
import earthkit.regrid # noqa

assert VERSION_RX.match(earthkit.regrid.__version__) is not None


def test_earthkit_regrid_version_2():
from earthkit import regrid # noqa

assert VERSION_RX.match(regrid.__version__) is not None

0 comments on commit ecb2b77

Please sign in to comment.