Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pip install earthkit-climate
Example usage:

```python
from earthkit.climate.atmos import precipitation, temperature
from earthkit.climate.indicators import precipitation, temperature
from earthkit.climate.utils import conversions

# Example: compute a precipitation index
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ Compute a precipitation indicator from xclim:

.. code-block:: python

from earthkit.climate.atmos import precipitation
from earthkit.climate.indicators import precipitation
pr = precipitation.simple_daily_intensity(precip_data, freq="monthly")
2 changes: 1 addition & 1 deletion docs/how-tos/intro_precipitation_indices.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"import matplotlib.pyplot as plt\n",
"import xarray as xr\n",
"\n",
"from earthkit.climate.atmos import precipitation\n",
"from earthkit.climate.indicators import precipitation\n",
"\n",
"warnings.filterwarnings(\"ignore\")\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/how-tos/intro_temperature_indices.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"import matplotlib.pyplot as plt\n",
"import xarray as xr\n",
"\n",
"from earthkit.climate.atmos import temperature\n",
"from earthkit.climate.indicators import temperature\n",
"from earthkit.climate.utils.percentile import calculate_percentile_doy\n",
"\n",
"warnings.filterwarnings(\"ignore\")\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/era5_decadal_warming.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"import matplotlib.pyplot as plt\n",
"import pandas as pd\n",
"\n",
"from earthkit.climate.atmos import temperature"
"from earthkit.climate.indicators import temperature"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/frost_days_pyrenees.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"import earthkit.transforms as ekt\n",
"import numpy as np\n",
"\n",
"from earthkit.climate.atmos import temperature"
"from earthkit.climate.indicators import temperature"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/heatwave_evolution.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"import numpy\n",
"import xarray\n",
"\n",
"from earthkit.climate.atmos import temperature\n",
"from earthkit.climate.indicators import temperature\n",
"\n",
"warnings.filterwarnings(\"ignore\")"
]
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/tropical_nights_cooling_demand.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"import earthkit.plots as ekp\n",
"import matplotlib.pyplot as plt\n",
"\n",
"from earthkit.climate.atmos import temperature\n",
"from earthkit.climate.indicators import temperature\n",
"\n",
"warnings.filterwarnings(\"ignore\")\n",
"plt.rcParams[\"figure.figsize\"] = (12, 6)"
Expand Down
2 changes: 1 addition & 1 deletion docs/user-guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Example usage:

.. code-block:: python

from earthkit.climate.atmos import precipitation, temperature
from earthkit.climate.indicators import precipitation, temperature
from earthkit.climate.utils import conversions

# Example: compute a precipitation index
Expand Down
8 changes: 2 additions & 6 deletions src/earthkit/climate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,9 @@
__version__ = "999"


import earthkit.climate.atmos as atmos
import earthkit.climate.land as land
import earthkit.climate.ocean as ocean
import earthkit.climate.indicators as indicators # noqa

__all__ = [
"__version__",
"atmos",
"land",
"ocean",
"indicators",
]
8 changes: 0 additions & 8 deletions src/earthkit/climate/atmos/__init__.py

This file was deleted.

12 changes: 12 additions & 0 deletions src/earthkit/climate/indicators/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# (C) Copyright 2025 - ECMWF and individual contributors.

"""Climate indicators."""

from earthkit.climate.indicators.hydrology import * # noqa
from earthkit.climate.indicators.land import * # noqa
from earthkit.climate.indicators.precipitation import * # noqa
from earthkit.climate.indicators.sea_ice import * # noqa
from earthkit.climate.indicators.snow import * # noqa
from earthkit.climate.indicators.synoptic import * # noqa
from earthkit.climate.indicators.temperature import * # noqa
from earthkit.climate.indicators.wind import * # noqa
7 changes: 0 additions & 7 deletions src/earthkit/climate/land/__init__.py

This file was deleted.

5 changes: 0 additions & 5 deletions src/earthkit/climate/ocean/__init__.py

This file was deleted.

4 changes: 2 additions & 2 deletions tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
import pytest
import xarray as xr

import earthkit.climate.atmos.precipitation as ek_pr
import earthkit.climate.atmos.temperature as ek_temp
import earthkit.climate.indicators.precipitation as ek_pr
import earthkit.climate.indicators.temperature as ek_temp
from earthkit.climate.utils import percentile_doy


Expand Down
4 changes: 2 additions & 2 deletions tests/integration/test_performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
import pytest
import xarray as xr

import earthkit.climate.atmos.precipitation as ek_pr
import earthkit.climate.atmos.temperature as ek_temp
import earthkit.climate.indicators.precipitation as ek_pr
import earthkit.climate.indicators.temperature as ek_temp
from earthkit.climate.utils.percentile import percentile_doy

warnings.filterwarnings("ignore")
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/atmos/test_precipitation.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import xarray
from pytest_mock import MockerFixture

from earthkit.climate.atmos import precipitation
from earthkit.climate.indicators import precipitation

INDICATORS = [
(precipitation.antecedent_precipitation_index, "antecedent_precipitation_index", {"val": "test"}),
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/atmos/test_synoptic.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import xarray
from pytest_mock import MockerFixture

from earthkit.climate.atmos import synoptic
from earthkit.climate.indicators import synoptic

INDICATORS = [
(synoptic.jetstream_metric_woollings, "jetstream_metric_woollings"),
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/atmos/test_temperature.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import xarray
from pytest_mock import MockerFixture

from earthkit.climate.atmos import temperature
from earthkit.climate.indicators import temperature

INDICATORS = [
(temperature.australian_hardiness_zones, "australian_hardiness_zones"),
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/atmos/test_wind.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import xarray
from pytest_mock import MockerFixture

from earthkit.climate.atmos import wind
from earthkit.climate.indicators import wind

INDICATORS = [
(wind.calm_days, "calm_days"),
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/land/test_hydrology.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import xarray
from pytest_mock import MockerFixture

from earthkit.climate.land import hydrology
from earthkit.climate.indicators import hydrology

INDICATORS = [
(hydrology.base_flow_index, "base_flow_index", {"val": "test"}),
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/land/test_land.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import xarray
from pytest_mock import MockerFixture

from earthkit.climate.land import land
from earthkit.climate.indicators import land

INDICATORS = [
(land.flow_index, "flow_index", {"val": "test"}),
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/land/test_snow.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import xarray
from pytest_mock import MockerFixture

from earthkit.climate.land import snow
from earthkit.climate.indicators import snow

INDICATORS = [
(snow.blowing_snow, "blowing_snow", {"val": "test"}),
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/ocean/test_sea_ice.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import xarray
from pytest_mock import MockerFixture

from earthkit.climate.ocean import sea_ice
from earthkit.climate.indicators import sea_ice

INDICATORS = [
(sea_ice.sea_ice_area, "sea_ice_area", {"val": "test"}),
Expand Down
Loading
Loading