forked from FASSt-simulation/simulation_containers
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Shawn P. Serbin
committed
Jun 14, 2023
1 parent
c5870a9
commit bcbccfe
Showing
4 changed files
with
48 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,56 +6,50 @@ | |
# ---------------------------------------------------------------------- | ||
|
||
# grab the jupyter-lab container | ||
FROM fasstsimulation/fasst_simulation_tools:fasst_jupyterlab_3.3.2 | ||
FROM serbinsh/ngeearctic_elm_containers:ngeearctic_jupyterlab_3.3.2 | ||
LABEL maintainer.name="Shawn P. Serbin" \ | ||
maintainer.email="[email protected]" \ | ||
author.name="Shawn P. Serbin" \ | ||
author.email="[email protected]" \ | ||
description="ELM Analysis Jupyter-Lab Container" | ||
|
||
ENV TOOLS_REPOSITORY_RAW_URL=https://raw.githubusercontent.com/FASSt-simulation/fasst_simulation_tools | ||
ENV REPOSITORY_RAW_URL=https://raw.githubusercontent.com/TESTgroup-BNL/ngeearctic_elm_containers | ||
|
||
# Copy in example plotting scripts for use with model output | ||
# add Ben Sulman's matplotlib plotting ascetics defaults | ||
RUN cd "/home/${NB_USER}/scripts" \ | ||
&& wget $TOOLS_REPOSITORY_RAW_URL/main/elm_scripts/plotting/plot_KG64_ELM_output.py \ | ||
&& wget $REPOSITORY_RAW_URL/main/scripts/elm_scripts/plotting/plot_KG64_ELM_output.py \ | ||
&& chmod 775 plot_KG64_ELM_output.py \ | ||
&& wget $TOOLS_REPOSITORY_RAW_URL/main/elm_scripts/plotting/plot_ELM_output.py \ | ||
&& wget $REPOSITORY_RAW_URL/main/scripts/elm_scripts/plotting/plot_ELM_output.py \ | ||
&& chmod 775 plot_ELM_output.py \ | ||
&& cd "/home/${NB_USER}" \ | ||
&& mkdir -p "/home/${NB_USER}/.config/matplotlib" \ | ||
&& cd "/home/${NB_USER}/.config/matplotlib" \ | ||
&& wget $TOOLS_REPOSITORY_RAW_URL/main/elm_scripts/plotting/matplotlibrc \ | ||
&& wget $REPOSITORY_RAW_URL/main/scripts/elm_scripts/plotting/matplotlibrc \ | ||
&& cd "/home/${NB_USER}" \ | ||
&& fix-permissions "/home/${NB_USER}" | ||
|
||
# Add example jupyter notebook scripts here | ||
RUN cd "/home/${NB_USER}/scripts" \ | ||
&& wget $TOOLS_REPOSITORY_RAW_URL/main/notebooks/ngeearctic/plot_ELM_variable.ipynb \ | ||
&& wget $REPOSITORY_RAW_URL/main/notebooks/ngeearctic/plot_ELM_variable.ipynb \ | ||
&& chmod 775 plot_ELM_variable.ipynb \ | ||
&& wget $TOOLS_REPOSITORY_RAW_URL/main/notebooks/ngeearctic/plot_ELM_variable_2D.ipynb \ | ||
&& wget $REPOSITORY_RAW_URL/main/notebooks/ngeearctic/plot_ELM_variable_2D.ipynb \ | ||
&& chmod 775 plot_ELM_variable_2D.ipynb \ | ||
&& wget $TOOLS_REPOSITORY_RAW_URL/main/notebooks/ngeearctic/plot_ELM_output.ipynb \ | ||
&& wget $REPOSITORY_RAW_URL/main/notebooks/ngeearctic/plot_ELM_output.ipynb \ | ||
&& chmod 775 plot_ELM_output.ipynb \ | ||
&& wget $TOOLS_REPOSITORY_RAW_URL/main/notebooks/ngeearctic/plot_ELM_radiation.ipynb \ | ||
&& wget $REPOSITORY_RAW_URL/main/notebooks/ngeearctic/plot_ELM_radiation.ipynb \ | ||
&& chmod 775 plot_ELM_radiation.ipynb \ | ||
&& wget $TOOLS_REPOSITORY_RAW_URL/main/notebooks/ngeearctic/plot_moisture_temperature.ipynb \ | ||
&& wget $REPOSITORY_RAW_URL/main/notebooks/ngeearctic/plot_moisture_temperature.ipynb \ | ||
&& chmod 775 plot_moisture_temperature.ipynb \ | ||
&& wget $TOOLS_REPOSITORY_RAW_URL/main/notebooks/ngeearctic/plot_soil_BGC.ipynb \ | ||
&& wget $REPOSITORY_RAW_URL/main/notebooks/ngeearctic/plot_soil_BGC.ipynb \ | ||
&& chmod 775 plot_soil_BGC.ipynb \ | ||
&& wget $TOOLS_REPOSITORY_RAW_URL/main/notebooks/ngeearctic/plot_veg_data.ipynb \ | ||
&& wget $REPOSITORY_RAW_URL/main/notebooks/ngeearctic/plot_veg_data.ipynb \ | ||
&& chmod 775 plot_veg_data.ipynb \ | ||
&& wget $TOOLS_REPOSITORY_RAW_URL/main/notebooks/ngeearctic/plot_ELM_ensembles.ipynb \ | ||
&& wget $REPOSITORY_RAW_URL/main/notebooks/ngeearctic/plot_ELM_ensembles.ipynb \ | ||
&& chmod 775 plot_ELM_ensembles.ipynb \ | ||
&& wget $TOOLS_REPOSITORY_RAW_URL/main/notebooks/ngeearctic/plot_ELM_compare_cases.ipynb \ | ||
&& wget $REPOSITORY_RAW_URL/main/notebooks/ngeearctic/plot_ELM_compare_cases.ipynb \ | ||
&& chmod 775 plot_ELM_compare_cases.ipynb | ||
|
||
# add back in if we want examples showing how to run the model from within a notebook | ||
# && wget $TOOLS_REPOSITORY_RAW_URL/main/notebooks/ngeearctic/run_ELM_KG64_basic.ipynb \ | ||
# && chmod 775 run_ELM_KG64_basic.ipynb \ | ||
# && wget $TOOLS_REPOSITORY_RAW_URL/main/notebooks/ngeearctic/run_plot_KG64_ELM_output.ipynb \ | ||
# && chmod 775 run_plot_KG64_ELM_output.ipynb | ||
|
||
# Setup default user, when enter docker container | ||
USER ${NB_UID} | ||
WORKDIR "${HOME}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,59 +6,53 @@ | |
# ---------------------------------------------------------------------- | ||
|
||
# grab the jupyter-lab container | ||
FROM fasstsimulation/fasst_simulation_tools:fasst_jupyterlab_3.3.2_gee | ||
FROM serbinsh/ngeearctic_elm_containers:ngeearctic_jupyterlab_3.3.2_gee | ||
LABEL maintainer.name="Shawn P. Serbin" \ | ||
maintainer.email="[email protected]" \ | ||
author.name="Shawn P. Serbin" \ | ||
author.email="[email protected]" \ | ||
description="ELM Analysis Jupyter-Lab Container" | ||
|
||
ENV TOOLS_REPOSITORY_RAW_URL=https://raw.githubusercontent.com/FASSt-simulation/fasst_simulation_tools | ||
ENV REPOSITORY_RAW_URL=https://raw.githubusercontent.com/TESTgroup-BNL/ngeearctic_elm_containers | ||
|
||
# Copy in example plotting scripts for use with model output | ||
# add Ben Sulman's matplotlib plotting ascetics defaults | ||
RUN cd "/home/${NB_USER}/scripts" \ | ||
&& wget $TOOLS_REPOSITORY_RAW_URL/main/elm_scripts/plotting/plot_KG64_ELM_output.py \ | ||
&& wget $REPOSITORY_RAW_URL/main/scripts/elm_scripts/plotting/plot_KG64_ELM_output.py \ | ||
&& chmod 775 plot_KG64_ELM_output.py \ | ||
&& wget $TOOLS_REPOSITORY_RAW_URL/main/elm_scripts/plotting/plot_ELM_output.py \ | ||
&& wget $REPOSITORY_RAW_URL/main/scripts/elm_scripts/plotting/plot_ELM_output.py \ | ||
&& chmod 775 plot_ELM_output.py \ | ||
&& cd "/home/${NB_USER}" \ | ||
&& mkdir -p "/home/${NB_USER}/.config/matplotlib" \ | ||
&& cd "/home/${NB_USER}/.config/matplotlib" \ | ||
&& wget $TOOLS_REPOSITORY_RAW_URL/main/elm_scripts/plotting/matplotlibrc \ | ||
&& wget $REPOSITORY_RAW_URL/main/scripts/elm_scripts/plotting/matplotlibrc \ | ||
&& cd "/home/${NB_USER}" \ | ||
&& fix-permissions "/home/${NB_USER}" | ||
|
||
# Add example jupyter notebook scripts here | ||
RUN cd "/home/${NB_USER}/scripts" \ | ||
&& wget $TOOLS_REPOSITORY_RAW_URL/main/notebooks/ngeearctic/plot_ELM_variable.ipynb \ | ||
&& wget $REPOSITORY_RAW_URL/main/notebooks/ngeearctic/plot_ELM_variable.ipynb \ | ||
&& chmod 775 plot_ELM_variable.ipynb \ | ||
&& wget $TOOLS_REPOSITORY_RAW_URL/main/notebooks/ngeearctic/plot_ELM_variable_2D.ipynb \ | ||
&& wget $REPOSITORY_RAW_URL/main/notebooks/ngeearctic/plot_ELM_variable_2D.ipynb \ | ||
&& chmod 775 plot_ELM_variable_2D.ipynb \ | ||
&& wget $TOOLS_REPOSITORY_RAW_URL/main/notebooks/ngeearctic/plot_ELM_output.ipynb \ | ||
&& wget $REPOSITORY_RAW_URL/main/notebooks/ngeearctic/plot_ELM_output.ipynb \ | ||
&& chmod 775 plot_ELM_output.ipynb \ | ||
&& wget $TOOLS_REPOSITORY_RAW_URL/main/notebooks/ngeearctic/plot_ELM_radiation.ipynb \ | ||
&& wget $REPOSITORY_RAW_URL/main/notebooks/ngeearctic/plot_ELM_radiation.ipynb \ | ||
&& chmod 775 plot_ELM_radiation.ipynb \ | ||
&& wget $TOOLS_REPOSITORY_RAW_URL/main/notebooks/ngeearctic/plot_moisture_temperature.ipynb \ | ||
&& wget $REPOSITORY_RAW_URL/main/notebooks/ngeearctic/plot_moisture_temperature.ipynb \ | ||
&& chmod 775 plot_moisture_temperature.ipynb \ | ||
&& wget $TOOLS_REPOSITORY_RAW_URL/main/notebooks/ngeearctic/plot_soil_BGC.ipynb \ | ||
&& wget $REPOSITORY_RAW_URL/main/notebooks/ngeearctic/plot_soil_BGC.ipynb \ | ||
&& chmod 775 plot_soil_BGC.ipynb \ | ||
&& wget $TOOLS_REPOSITORY_RAW_URL/main/notebooks/ngeearctic/plot_veg_data.ipynb \ | ||
&& wget $REPOSITORY_RAW_URL/main/notebooks/ngeearctic/plot_veg_data.ipynb \ | ||
&& chmod 775 plot_veg_data.ipynb \ | ||
&& wget $TOOLS_REPOSITORY_RAW_URL/main/notebooks/ngeearctic/plot_ELM_ensembles.ipynb \ | ||
&& wget $REPOSITORY_RAW_URL/main/notebooks/ngeearctic/plot_ELM_ensembles.ipynb \ | ||
&& chmod 775 plot_ELM_ensembles.ipynb \ | ||
&& wget $TOOLS_REPOSITORY_RAW_URL/main/notebooks/ngeearctic/plot_ELM_compare_cases.ipynb \ | ||
&& wget $REPOSITORY_RAW_URL/main/notebooks/ngeearctic/plot_ELM_compare_cases.ipynb \ | ||
&& chmod 775 plot_ELM_compare_cases.ipynb \ | ||
# GEE notebooks | ||
&& wget $TOOLS_REPOSITORY_RAW_URL/main/notebooks/ngeearctic/plot_ELM_vs_GEE_data.ipynb \ | ||
&& wget $REPOSITORY_RAW_URL/main/notebooks/ngeearctic/plot_ELM_vs_GEE_data.ipynb \ | ||
&& chmod 775 plot_ELM_vs_GEE_data.ipynb | ||
|
||
# add back in if we want examples showing how to run the model from within a notebook | ||
# && wget $TOOLS_REPOSITORY_RAW_URL/main/notebooks/ngeearctic/run_ELM_KG64_basic.ipynb \ | ||
# && chmod 775 run_ELM_KG64_basic.ipynb \ | ||
# && wget $TOOLS_REPOSITORY_RAW_URL/main/notebooks/ngeearctic/run_plot_KG64_ELM_output.ipynb \ | ||
# && chmod 775 run_plot_KG64_ELM_output.ipynb | ||
|
||
# Setup default user, when enter docker container | ||
USER ${NB_UID} | ||
WORKDIR "${HOME}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters