Skip to content

Commit

Permalink
fixed echam monitoring, added comment to NEMO monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
seb-wahl committed Nov 26, 2024
1 parent 0ce9f6e commit 445a7b9
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 66 deletions.
77 changes: 16 additions & 61 deletions configs/setups/foci/echam_monitoring.ipynb

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions configs/setups/foci/echam_monitoring.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ basedir="$HOME/esm/esm-experiments/"
obsroot="$HOME/foci_input2/OBS_MONITORING/T63/"
expid="test"
iniyear=1850
condapath="$HOME/miniconda3/"
condapath="$HOME/miniforge3/"
#
#------- DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING ------#
#
Expand All @@ -26,7 +26,7 @@ while getopts "h?:r:i:p:c:o:" opt; do
echo " -o path to obs data (basedir, default is $obsroot)"
echo " -r experiment / run id (run, default is $expid)"
echo " -i initial year (initial year, default is $iniyear)"
echo " -c root path to conda env (condapath, default is \$HOME/miniconda3/)"
echo " -c root path to conda env (condapath, default is \$HOME/miniforge3/)"
echo
exit 0
;;
Expand All @@ -50,20 +50,20 @@ echo "Doing ECHAM6 monitoring in $basedir for $expid from year $iniyear onwards"
echo "Using conda environment from $condapath"
echo
if ! source $condapath/bin/activate jupyter_mon ; then
echo
echo
echo "source $condapath/bin/activate jupyter_mon failed"
echo "install with"
echo " conda env create -n jupyter_mon --file $(dirname $0)/jupyter_mon.yaml"
echo " source $condapath/bin/activate jupyter_mon"
echo ' python -m ipykernel install --user --name jupyter_mon --display-name "jupyter_mon"'
echo ' python -m ipykernel install --user --name jupyter_mon --display-name "jupyter_mon"'
echo
exit 1
else
source $condapath/bin/activate jupyter_mon
fi

cd $(dirname $0)
papermill echam_monitoring.ipynb echam_monitoring_${expid}.ipynb -p expid $expid -p iniyear $iniyear -p exproot $basedir -p obsroot $obsroot
papermill echam_monitoring.ipynb echam_monitoring_${expid}.ipynb -k jupyter_mon -p expid $expid -p iniyear $iniyear -p exproot $basedir -p obsroot $obsroot
jupyter-nbconvert --no-input --to html echam_monitoring_${expid}.ipynb
mv -v *.html $basedir/$expid/mon/echam/

Expand Down
9 changes: 9 additions & 0 deletions configs/setups/foci/nemo_monitoring.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@
#################################################################################
# default settings for the variables that can be changed via the command line
#
# seb-wahl: The monitoring needs some rework to work on the updated HRLN cluster
# - test support of apptainer
# - remove dependency on Willi's 10 year old python2 based code, do the AMOC etc
# calculations with XIOS online of based on xorca etc.
echo
echo "`date`: The NEMO monitoring needs some re-design before it can be run"
echo "`date`: on $(hostname) again. Sebastian Wahl 2024-11-26"
echo
exit 0
basedir=~/esm/esm-experiments/ # change via -p
EXP_ID="test_experiment" # change via -r
ncpus=48
Expand Down

0 comments on commit 445a7b9

Please sign in to comment.