Skip to content
Merged
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
16 changes: 13 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,24 @@ RUN /factsVe/bin/pip install --no-cache-dir \
dask==2025.2.0


# installs R for ubuntu 20.04 Focal
RUN apt-get update &&\
# # installs R for ubuntu 20.04 Focal
# RUN apt-get update &&\
# apt-get install -y --no-install-recommends r-base \
# cmake \
# libopenblas-dev \
# gfortran

# Add CRAN repository and install R 4.5
RUN apt-get update && \
apt-get install -y --no-install-recommends software-properties-common wget && \
wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc && \
echo "deb https://cloud.r-project.org/bin/linux/ubuntu noble-cran40/" >> /etc/apt/sources.list && \
apt-get update && \
apt-get install -y --no-install-recommends r-base \
cmake \
libopenblas-dev \
gfortran


ARG NB_USER=jovyan
ARG NB_UID=1001
ENV USER=${NB_USER}
Expand Down
5 changes: 3 additions & 2 deletions modules/emulandice2/AIS/pipeline.global.2150.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project:
task1:
python_dependencies: "xarray dask numpy scipy"
executable: "python3"
script: "emulandice_project.py"
script_noupload: "emulandice_project.py"
arguments:
- --ice_source
- AIS
Expand All @@ -25,7 +25,8 @@ project:
upload_input_data:
- "%MODULE_PATH%/../shared/emulandice_environment.sh"
- "%MODULE_PATH%/../shared/emulandice_steer.sh"
- "%MODULE_PATH%/../shared/emulandice_steer.R"
- "%MODULE_PATH%/../shared/emulandice2/main.R"
- "%MODULE_PATH%/../shared/emulandice_project.py"
upload_and_extract_input_data:
- "%MODULE_PATH%/../shared/emulandice_bundled_dependencies.tgz"
- "emulandice2_AIS_project_2150_240214_data.tgz"
Expand Down
5 changes: 3 additions & 2 deletions modules/emulandice2/AIS/pipeline.global.2300.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project:
task1:
python_dependencies: "xarray dask numpy scipy"
executable: "python3"
script: "emulandice_project.py"
script_noupload: "emulandice_project.py"
arguments:
- --ice_source
- AIS
Expand All @@ -25,7 +25,8 @@ project:
upload_input_data:
- "%MODULE_PATH%/../shared/emulandice_environment.sh"
- "%MODULE_PATH%/../shared/emulandice_steer.sh"
- "%MODULE_PATH%/../shared/emulandice_steer.R"
- "%MODULE_PATH%/../shared/emulandice2/main.R"
- "%MODULE_PATH%/../shared/emulandice_project.py"
upload_and_extract_input_data:
- "%MODULE_PATH%/../shared/emulandice_bundled_dependencies.tgz"
- "emulandice2_AIS_project_2300_240214_data.tgz"
Expand Down
5 changes: 3 additions & 2 deletions modules/emulandice2/AIS/pipeline.global.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project:
task1:
python_dependencies: "xarray dask numpy scipy"
executable: "python3"
script: "emulandice_project.py"
script_noupload: "emulandice_project.py"
arguments:
- --ice_source
- AIS
Expand All @@ -25,7 +25,8 @@ project:
upload_input_data:
- "%MODULE_PATH%/../shared/emulandice_environment.sh"
- "%MODULE_PATH%/../shared/emulandice_steer.sh"
- "%MODULE_PATH%/../shared/emulandice_steer.R"
- "%MODULE_PATH%/../shared/emulandice2/main.R"
- "%MODULE_PATH%/../shared/emulandice_project.py"
upload_and_extract_input_data:
- "%MODULE_PATH%/../shared/emulandice_bundled_dependencies.tgz"
- "emulandice2_AIS_project_data.tgz"
Expand Down
8 changes: 5 additions & 3 deletions modules/emulandice2/AIS/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project:
task1:
python_dependencies: "xarray dask numpy scipy"
executable: "python3"
script: "emulandice_project.py"
script_noupload: "emulandice_project.py"
arguments:
- --ice_source
- AIS
Expand All @@ -23,7 +23,8 @@ project:
upload_input_data:
- "%MODULE_PATH%/../shared/emulandice_environment.sh"
- "%MODULE_PATH%/../shared/emulandice_steer.sh"
- "%MODULE_PATH%/../shared/emulandice_steer.R"
- "%MODULE_PATH%/../shared/emulandice2/main.R"
- "%MODULE_PATH%/../shared/emulandice_project.py"
upload_and_extract_input_data:
- "%MODULE_PATH%/../shared/emulandice_bundled_dependencies.tgz"
- "emulandice2_AIS_project_data.tgz"
Expand All @@ -36,7 +37,7 @@ project:
postprocess:
task1:
executable: "python3"
script: "emulandice_postprocess.py"
script_noupload: "emulandice_postprocess.py"
arguments:
- --ncfiles
- "%PIPELINE_ID%_ALL_globalsl.nc"
Expand All @@ -52,6 +53,7 @@ postprocess:
- '%MODULE_PATH%/../shared/AssignFP.py'
- '%MODULE_PATH%/../shared/ReadFingerprint.py'
- '%MODULE_PATH%/../shared/grd_fingerprintmap.yml'
- '%MODULE_PATH%/../shared/emulandice_postprocess.py'
upload_and_extract_input_data:
- 'grd_fingerprints_data.tgz'
copy_shared_data:
Expand Down
5 changes: 3 additions & 2 deletions modules/emulandice2/GrIS/pipeline.global.2100.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project:
task1:
python_dependencies: "xarray dask numpy scipy"
executable: "python3"
script: "emulandice_project.py"
script_noupload: "emulandice_project.py"
arguments:
- --ice_source
- GIS
Expand All @@ -25,7 +25,8 @@ project:
upload_input_data:
- "%MODULE_PATH%/../shared/emulandice_environment.sh"
- "%MODULE_PATH%/../shared/emulandice_steer.sh"
- "%MODULE_PATH%/../shared/emulandice_steer.R"
- "%MODULE_PATH%/../shared/emulandice2/main.R"
- "%MODULE_PATH%/../shared/emulandice_project.py"
upload_and_extract_input_data:
- "%MODULE_PATH%/../shared/emulandice_bundled_dependencies.tgz"
- "emulandice2_GrIS_project_2100_240214_data.tgz"
Expand Down
5 changes: 3 additions & 2 deletions modules/emulandice2/GrIS/pipeline.global.2300.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project:
task1:
python_dependencies: "xarray dask numpy scipy"
executable: "python3"
script: "emulandice_project.py"
script_noupload: "emulandice_project.py"
arguments:
- --ice_source
- GIS
Expand All @@ -25,7 +25,8 @@ project:
upload_input_data:
- "%MODULE_PATH%/../shared/emulandice_environment.sh"
- "%MODULE_PATH%/../shared/emulandice_steer.sh"
- "%MODULE_PATH%/../shared/emulandice_steer.R"
- "%MODULE_PATH%/../shared/emulandice2/main.R"
- "%MODULE_PATH%/../shared/emulandice_project.py"
upload_and_extract_input_data:
- "%MODULE_PATH%/../shared/emulandice_bundled_dependencies.tgz"
- "emulandice2_GrIS_project_2300_240214_data.tgz"
Expand Down
5 changes: 3 additions & 2 deletions modules/emulandice2/GrIS/pipeline.global.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project:
task1:
python_dependencies: "xarray dask numpy scipy"
executable: "python3"
script: "emulandice_project.py"
script_noupload: "emulandice_project.py"
arguments:
- --ice_source
- GIS
Expand All @@ -25,7 +25,8 @@ project:
upload_input_data:
- "%MODULE_PATH%/../shared/emulandice_environment.sh"
- "%MODULE_PATH%/../shared/emulandice_steer.sh"
- "%MODULE_PATH%/../shared/emulandice_steer.R"
- "%MODULE_PATH%/../shared/emulandice2/main.R"
- "%MODULE_PATH%/../shared/emulandice_project.py"
upload_and_extract_input_data:
- "%MODULE_PATH%/../shared/emulandice_bundled_dependencies.tgz"
- "emulandice2_GrIS_project_data.tgz"
Expand Down
8 changes: 5 additions & 3 deletions modules/emulandice2/GrIS/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project:
task1:
python_dependencies: "xarray dask numpy scipy"
executable: "python3"
script: "emulandice_project.py"
script_noupload: "emulandice_project.py"
arguments:
- --ice_source
- GIS
Expand All @@ -23,7 +23,8 @@ project:
upload_input_data:
- "%MODULE_PATH%/../shared/emulandice_environment.sh"
- "%MODULE_PATH%/../shared/emulandice_steer.sh"
- "%MODULE_PATH%/../shared/emulandice_steer.R"
- "%MODULE_PATH%/../shared/emulandice2/main.R"
- "%MODULE_PATH%/../shared/emulandice_project.py"
upload_and_extract_input_data:
- "%MODULE_PATH%/../shared/emulandice_bundled_dependencies.tgz"
- "emulandice2_GrIS_project_data.tgz"
Expand All @@ -36,7 +37,7 @@ project:
postprocess:
task1:
executable: "python3"
script: "emulandice_postprocess.py"
script_noupload: "emulandice_postprocess.py"
arguments:
- --ncfiles
- "%PIPELINE_ID%_ALL_globalsl.nc"
Expand All @@ -52,6 +53,7 @@ postprocess:
- '%MODULE_PATH%/../shared/AssignFP.py'
- '%MODULE_PATH%/../shared/ReadFingerprint.py'
- '%MODULE_PATH%/../shared/grd_fingerprintmap.yml'
- '%MODULE_PATH%/../shared/emulandice_postprocess.py'
upload_and_extract_input_data:
- 'grd_fingerprints_data.tgz'
copy_shared_data:
Expand Down
5 changes: 3 additions & 2 deletions modules/emulandice2/emulandice_config.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/bash
set -e

ROOTDIR=`dirname $0`
MODE=$1
ROOTDIR="$(dirname "$0")"
MODE=${1:-}

case $MODE in
"clean")
Expand Down
5 changes: 3 additions & 2 deletions modules/emulandice2/glaciers/pipeline.global.2100.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project:
task1:
python_dependencies: "xarray dask numpy scipy"
executable: "python3"
script: "emulandice_project.py"
script_noupload: "emulandice_project.py"
arguments:
- --ice_source
- GLA
Expand Down Expand Up @@ -61,7 +61,8 @@ project:
upload_input_data:
- "%MODULE_PATH%/../shared/emulandice_environment.sh"
- "%MODULE_PATH%/../shared/emulandice_steer.sh"
- "%MODULE_PATH%/../shared/emulandice_steer.R"
- "%MODULE_PATH%/../shared/emulandice2/main.R"
- "%MODULE_PATH%/../shared/emulandice_project.py"
upload_and_extract_input_data:
- "%MODULE_PATH%/../shared/emulandice_bundled_dependencies.tgz"
- "emulandice2_glaciers_project_2100_240223_data.tgz"
Expand Down
5 changes: 3 additions & 2 deletions modules/emulandice2/glaciers/pipeline.global.2300.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project:
task1:
python_dependencies: "xarray dask numpy scipy"
executable: "python3"
script: "emulandice_project.py"
script_noupload: "emulandice_project.py"
arguments:
- --ice_source
- GLA
Expand Down Expand Up @@ -61,7 +61,8 @@ project:
upload_input_data:
- "%MODULE_PATH%/../shared/emulandice_environment.sh"
- "%MODULE_PATH%/../shared/emulandice_steer.sh"
- "%MODULE_PATH%/../shared/emulandice_steer.R"
- "%MODULE_PATH%/../shared/emulandice2/main.R"
- "%MODULE_PATH%/../shared/emulandice_project.py"
upload_and_extract_input_data:
- "%MODULE_PATH%/../shared/emulandice_bundled_dependencies.tgz"
- "emulandice2_glaciers_project_2300_240223_data.tgz"
Expand Down
5 changes: 3 additions & 2 deletions modules/emulandice2/glaciers/pipeline.global.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project:
task1:
python_dependencies: "xarray dask numpy scipy"
executable: "python3"
script: "emulandice_project.py"
script_noupload: "emulandice_project.py"
arguments:
- --ice_source
- GLA
Expand Down Expand Up @@ -61,7 +61,8 @@ project:
upload_input_data:
- "%MODULE_PATH%/../shared/emulandice_environment.sh"
- "%MODULE_PATH%/../shared/emulandice_steer.sh"
- "%MODULE_PATH%/../shared/emulandice_steer.R"
- "%MODULE_PATH%/../shared/emulandice2/main.R"
- "%MODULE_PATH%/../shared/emulandice_project.py"
upload_and_extract_input_data:
- "%MODULE_PATH%/../shared/emulandice_bundled_dependencies.tgz"
- "emulandice2_glaciers_project_data.tgz"
Expand Down
8 changes: 5 additions & 3 deletions modules/emulandice2/glaciers/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project:
task1:
python_dependencies: "xarray dask numpy scipy"
executable: "python3"
script: "emulandice_project.py"
script_noupload: "emulandice_project.py"
arguments:
- --ice_source
- GLA
Expand Down Expand Up @@ -59,7 +59,8 @@ project:
upload_input_data:
- "%MODULE_PATH%/../shared/emulandice_environment.sh"
- "%MODULE_PATH%/../shared/emulandice_steer.sh"
- "%MODULE_PATH%/../shared/emulandice_steer.R"
- "%MODULE_PATH%/../shared/emulandice2/main.R"
- "%MODULE_PATH%/../shared/emulandice_project.py"
upload_and_extract_input_data:
- "%MODULE_PATH%/../shared/emulandice_bundled_dependencies.tgz"
- "emulandice2_glaciers_project_data.tgz"
Expand All @@ -71,7 +72,7 @@ project:
postprocess:
task1:
executable: "python3"
script: "emulandice_postprocess.py"
script_noupload: "emulandice_postprocess.py"
arguments:
- --ncfiles
- "%PIPELINE_ID%_RGI01_globalsl.nc"
Expand Down Expand Up @@ -105,6 +106,7 @@ postprocess:
- '%MODULE_PATH%/../shared/AssignFP.py'
- '%MODULE_PATH%/../shared/ReadFingerprint.py'
- '%MODULE_PATH%/../shared/grd_fingerprintmap.yml'
- '%MODULE_PATH%/../shared/emulandice_postprocess.py'
upload_and_extract_input_data:
- 'grd_fingerprints_data.tgz'
copy_shared_data:
Expand Down
2 changes: 1 addition & 1 deletion modules/emulandice2/shared/emulandice_steer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ then
exit 1
fi

Rscript -e "source('.Rprofile')" -e "library(emulandice2)" -e "source('emulandice_steer.R')" $ice_source $region $emu_file $climate_data_file $scenario $outdir $seed $pipeline_id
Rscript -e "source('.Rprofile')" -e "library(emulandice2)" -e "source('main.R')" $ice_source $region $emu_file $climate_data_file $scenario $outdir $seed $pipeline_id

# Arguments to add ____________
# Read from emulator RData file:
Expand Down