Skip to content

Commit

Permalink
add cesm environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Anne Fouilloux committed Jun 18, 2020
1 parent ffc50d0 commit 7325be9
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,22 @@ RUN source activate esmvaltool && \
/opt/conda/bin/jupyter labextension install @pyviz/jupyterlab_pyviz \
jupyter-leaflet

# Install requirements for cesm
ADD cesm_environment.yml cesm_environment.yml

# Python packages
RUN conda env create -f cesm_environment.yml && conda clean -yt
RUN ["/bin/bash" , "-c", ". /opt/conda/etc/profile.d/conda.sh && \
conda activate cesm && \
python -m pip install ipykernel && \
ipython kernel install --user --name cesm && \
python -m ipykernel install --user --name=cesm && \
jupyter labextension install @jupyterlab/hub-extension \
@jupyter-widgets/jupyterlab-manager && \
jupyter labextension install jupyterlab-datawidgets && \
conda deactivate && \
conda init bash"]

# Fix hub failure
RUN fix-permissions $HOME

Expand Down
52 changes: 52 additions & 0 deletions cesm_environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: cesm
channels:
- conda-forge
- bioconda
- defaults
dependencies:
- biopython
# core scipy packages
- numpy
- scipy
- matplotlib
- pandas
- xarray
# geospatial
- iris
- cartopy
- basemap
- basemap-data-hires
- geopandas
- rasterio
- netcdf4
- erddapy
- pydap
- h5py
- h5netcdf
- regionmask
- rio-cogeo
# geoscience-related
- climlab
- metpy
- satpy
- gsw
- eofs
- esmpy
- xesmf
- windspharm
# misc
- python-wget
- wget
- pip
- pyaerocom
- nc-time-axis
- nco
- jupytext
- cdo
- cdsapi
- cfgrib
- cis
- cesm
- pip:
- bioblend
- galaxy-ie-helpers

0 comments on commit 7325be9

Please sign in to comment.