From c9559e61ef97c18b1f98e33b7452a5a30df7ed46 Mon Sep 17 00:00:00 2001 From: Christopher Polster Date: Fri, 22 Nov 2024 16:17:25 +0100 Subject: [PATCH 1/4] Configure a Python 3.12-based environment Had to remove basemap which is currently used in fire and droughts envs, so some changes are required there. --- environment.yml | 87 ++++++++++++++++++++++++------------------------- 1 file changed, 43 insertions(+), 44 deletions(-) diff --git a/environment.yml b/environment.yml index a9b81a4..e76c24a 100644 --- a/environment.yml +++ b/environment.yml @@ -7,71 +7,70 @@ channels: # specified in https://github.com/CLIMAAX/workflow_template dependencies: - affine=2.4.0 - - aiohttp=3.9.5 - - basemap=1.4.1 - - bokeh=3.5.0 - - bottleneck=1.4.0 - - cartopy=0.23.0 - - cdsapi=0.7.0 - - cfgrib=0.9.14.0 - - contextily=1.6.0 + - aiohttp=3.11.7 + - bokeh=3.6.1 + - bottleneck=1.4.2 + - cartopy=0.24.0 + - cdsapi=0.7.4 + - cfgrib=0.9.14.1 + - contextily=1.6.2 - dask-labextension=7.0.0 - - dask=2024.7.0 - - distributed=2024.7.0 - - eccodes=2.36.0 + - dask=2024.11.2 + - distributed=2024.11.2 + - eccodes=2.38.3 - flask=2.3.3 - - gdal=3.9.1 + - gdal=3.9.2 - geopandas=1.0.1 - ipykernel=6.29.5 - - ipyleaflet=0.19.1 + - ipyleaflet=0.19.2 - ipympl=0.9.4 - - ipython=8.27.0 - - ipywidgets=8.1.3 + - ipython=8.29.0 + - ipywidgets=8.1.5 - jenkspy=0.4.1 - - jupyter-resource-usage=1.0.2 - - jupyter-server-proxy=4.3.0 - - jupyterlab-git=0.50.1 + - jupyter-resource-usage=1.1.0 + - jupyter-server-proxy=4.4.0 + - jupyterlab-git=0.50.2 - jupyterlab-myst=2.4.2 - - jupyterlab=4.2.3 + - jupyterlab=4.2.6 - localtileserver=0.10.3 - - matplotlib=3.8.4 + - matplotlib=3.9.2 - mplleaflet=0.0.5 - nbgitpuller=1.2.1 - netcdf4=1.7.1 - - notebook=7.2.1 + - notebook=7.2.2 - numba=0.60.0 - - numexpr=2.10.0 - - numpy=1.26.4 - - openpyxl=3.1.4 + - numexpr=2.10.1 + - numpy=2.0.2 + - openpyxl=3.1.5 - osmnx=1.9.3 - - pandas=2.2.2 + - pandas=2.2.3 - pip - planetary-computer=1.0.0 - - plotly=5.22.0 + - plotly=5.24.1 - pooch=1.8.2 - pydataverse=0.3.3 - - pyogrio=0.8.0 - - pyproj=3.6.1 - - pystac-client=0.8.2 - - pytest=8.3.2 + - pyogrio=0.10.0 + - pyproj=3.7.0 + - pystac-client=0.8.5 + - pytest=8.3.3 - python-kaleido=0.2.1 - - python=3.11 - - pyyaml=6.0.1 - - rasterio=1.3.10 - - rasterstats=0.19.0 + - python=3.12 + - pyyaml=6.0.2 + - rasterio=1.3.11 + - rasterstats=0.20.0 - requests=2.32.3 - - rio-cogeo=5.3.3 - - rioxarray=0.15.7 - - scikit-learn=1.5.1 - - scipy=1.14.0 + - rio-cogeo=5.3.6 + - rioxarray=0.17.0 + - scikit-learn=1.5.2 + - scipy=1.13.1 - seaborn=0.13.2 - - shapely=2.0.4 - - tqdm=4.66.4 + - shapely=2.0.6 + - tqdm=4.67.0 - werkzeug=3.0.6 - - xarray=2024.6.0 - - xesmf=0.8.6 - - zarr=2.18.2 - - xclim=0.50.0 + - xarray=2024.9.0 + - xesmf=0.8.8 + - zarr=2.18.3 + - xclim=0.53.2 - xlrd=2.0.1 - pip: - damagescanner==0.7 From 34f387fe8e1e31b68d460688a47a703987d6cc4d Mon Sep 17 00:00:00 2001 From: Christopher Polster Date: Wed, 2 Apr 2025 14:48:31 +0200 Subject: [PATCH 2/4] Update versions --- environment.yml | 91 ++++++++++++++++++++++++++----------------------- 1 file changed, 49 insertions(+), 42 deletions(-) diff --git a/environment.yml b/environment.yml index 178c4fa..8736fc5 100644 --- a/environment.yml +++ b/environment.yml @@ -1,4 +1,4 @@ -name: climaax_hazard +name: climaax channels: - conda-forge @@ -6,76 +6,83 @@ channels: # Package versions should follow the general CLIMAAX environment # specified in https://github.com/CLIMAAX/workflow_template dependencies: - - adlfs=2024.7.0 + - adlfs=2024.12.0 - affine=2.4.0 - aiohttp=3.11.7 - - bokeh=3.6.1 + - bokeh=3.7.2 - bottleneck=1.4.2 + - branca=0.8.1 - cartopy=0.24.0 - cdsapi=0.7.5 - - cfgrib=0.9.14.1 + - cfgrib=0.9.15.0 - contextily=1.6.2 - dask-labextension=7.0.0 - - dask=2024.11.2 - - distributed=2024.11.2 - - eccodes=2.38.3 - - flask=2.3.3 - - gdal=3.9.2 + - dask=2025.03.0 + - distributed=2025.03.0 + - eccodes=2.40.0 + - eodag=3.2.0 + - flask=3.1.0 + - folium=0.19.5 + - gdal=3.10.2 - geopandas=1.0.1 + - httpx=0.27.2 - ipykernel=6.29.5 - ipyleaflet=0.19.2 - - ipympl=0.9.4 - - ipython=8.29.0 + - ipympl=0.9.7 + - ipython=9.0.2 - ipywidgets=8.1.5 - jenkspy=0.4.1 - - jupyter-resource-usage=1.1.0 + - jupyter-resource-usage=1.1.1 - jupyter-server-proxy=4.4.0 - - jupyterlab-git=0.50.2 + - jupyterlab-git=0.51.0 - jupyterlab-myst=2.4.2 - - jupyterlab=4.2.6 - - localtileserver=0.10.3 - - matplotlib=3.9.2 - - mplleaflet=0.0.5 - - nbgitpuller=1.2.1 - - netcdf4=1.7.1 - - notebook=7.2.2 - - numba=0.60.0 - - numexpr=2.10.1 - - numpy=2.0.2 + - jupyterlab=4.3.6 + - localtileserver=0.10.6 + - matplotlib=3.10.1 + - nbgitpuller=1.2.2 + - netcdf4=1.7.2 + - notebook=7.3.3 + - numba=0.61.0 + - numexpr=2.10.2 + - numpy=2.1.3 - openpyxl=3.1.5 - - osmnx=1.9.3 + - osmnx=2.0.2 - pandas=2.2.3 - pip - planetary-computer=1.0.0 - - plotly=5.24.1 + - plotly=6.0.1 - pooch=1.8.2 - pyogrio=0.10.0 - - pyproj=3.7.0 - - pystac-client=0.8.5 - - pytest=8.3.3 + - pyproj=3.7.1 + - pystac-client=0.8.6 + - pytest=8.3.5 - python-kaleido=0.2.1 - - python=3.12 + - python=3.12.9 - pyyaml=6.0.2 - - rasterio=1.3.11 + - rasterio=1.4.3 - rasterstats=0.20.0 - requests=2.32.3 - - rio-cogeo=5.3.6 - - rio-tiler=6.7.0 - - rioxarray=0.17.0 - - scikit-learn=1.5.2 - - scipy=1.13.1 + - rio-cogeo=5.4.1 + - rio-tiler=7.6.0 + - rioxarray=0.18.2 + - scikit-learn=1.6.1 + - scipy=1.15.2 - seaborn=0.13.2 - - shapely=2.0.6 - - tqdm=4.67.0 - - werkzeug=3.0.6 - - xarray=2024.9.0 + - shapely=2.0.7 + - tqdm=4.67.1 + - werkzeug=3.1.3 + - xarray=2025.3.1 - xesmf=0.8.8 - - zarr=2.18.3 - - xclim=0.53.2 + - zarr=3.0.6 + - xclim=0.55.1 - xlrd=2.0.1 - pip: - damagescanner==0.7 + - earthkit-data==0.13.6 - earthkit-geo==0.3.0 + - git+https://github.com/ecmwf/earthkit-meteo.git@feature/extreme-values - earthkit-plots==0.2.8 - - paretoset==1.2.4 + - git+https://github.com/tommyod/paretoset.git@5d8f3a739eeb38fb0b63340840353ad99845a5f0 - pyDataverse==0.3.4 + - pylandtemp==0.0.1a1 + - git+https://github.com/kapadia/usgs@ec8b5e2e77cc020890d9dbab0fa46cb2d4867e44 From d294939b3150ac2889fecaa870e294e4a3916d85 Mon Sep 17 00:00:00 2001 From: Christopher Polster Date: Wed, 2 Apr 2025 21:43:04 +0200 Subject: [PATCH 3/4] Add regionmask and gisco-geodata, fix order --- environment.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/environment.yml b/environment.yml index 8736fc5..90bd899 100644 --- a/environment.yml +++ b/environment.yml @@ -61,6 +61,7 @@ dependencies: - pyyaml=6.0.2 - rasterio=1.4.3 - rasterstats=0.20.0 + - regionmask=0.13.0 - requests=2.32.3 - rio-cogeo=5.4.1 - rio-tiler=7.6.0 @@ -73,15 +74,16 @@ dependencies: - werkzeug=3.1.3 - xarray=2025.3.1 - xesmf=0.8.8 - - zarr=3.0.6 - xclim=0.55.1 - xlrd=2.0.1 + - zarr=3.0.6 - pip: - damagescanner==0.7 - earthkit-data==0.13.6 - earthkit-geo==0.3.0 - git+https://github.com/ecmwf/earthkit-meteo.git@feature/extreme-values - earthkit-plots==0.2.8 + - gisco-geodata==0.1.2 - git+https://github.com/tommyod/paretoset.git@5d8f3a739eeb38fb0b63340840353ad99845a5f0 - pyDataverse==0.3.4 - pylandtemp==0.0.1a1 From f3dbc43bce3c5ec87c128cf16686ca96a7dafa2f Mon Sep 17 00:00:00 2001 From: Christopher Polster Date: Thu, 3 Apr 2025 10:05:56 +0200 Subject: [PATCH 4/4] Downgrade jupyterlab and notebook until myst catches up with their CSS https://github.com/jupyter-book/jupyterlab-myst/issues/248 --- environment.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/environment.yml b/environment.yml index 90bd899..559eec9 100644 --- a/environment.yml +++ b/environment.yml @@ -36,12 +36,12 @@ dependencies: - jupyter-server-proxy=4.4.0 - jupyterlab-git=0.51.0 - jupyterlab-myst=2.4.2 - - jupyterlab=4.3.6 + - jupyterlab=4.2.7 - localtileserver=0.10.6 - matplotlib=3.10.1 - nbgitpuller=1.2.2 - netcdf4=1.7.2 - - notebook=7.3.3 + - notebook=7.2.2 - numba=0.61.0 - numexpr=2.10.2 - numpy=2.1.3