Skip to content

Commit

Permalink
cmorized esm-hist for realisation 2-10
Browse files Browse the repository at this point in the history
issues #327 to #335
  • Loading branch information
YanchunHe committed Sep 25, 2023
1 parent 8d3fefe commit e28a40c
Show file tree
Hide file tree
Showing 176 changed files with 7,626 additions and 7 deletions.
8 changes: 3 additions & 5 deletions namelists/CMIP6_NorESM2-LM/esm-hist/checkcmorout.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ CMOR_ROOT=$(cd $(dirname $0) && cd ../../.. && pwd)
# parse input parameters
source $CMOR_ROOT/workflow/cmorParse.sh

years1=($(seq 1850 10 1940))
years2=($(seq 1859 10 1949))
years1+=($(seq 1950 10 2000) 2010)
years2+=($(seq 1959 10 2009) 2014)
years1=(1850 $(seq 1860 10 2000) 2010)
years2=(1859 $(seq 1869 10 2009) 2014)

${CMOR_ROOT}/workflow/cmorCheck.sh -v=$version -e=$expid -m=$model -yrs1="${years1[*]}" -yrs2="${years2[*]}"
${CMOR_ROOT}/workflow/cmorCheck.sh -v=$version -e=$expid -m=$model -o=$cmorout -yrs1="${years1[*]}" -yrs2="${years2[*]}"

25 changes: 23 additions & 2 deletions namelists/CMIP6_NorESM2-LM/esm-hist/cmor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@ login2=false
login3=false

# set active
login0=true
#login1=true
#login0=true
login1=true
#login2=true
#login3=true

# initialize
#version=v20190920
#version=v20191108b
version=v20200218
version=v20230616

expid=esm-hist
model=NorESM2-LM
Expand Down Expand Up @@ -74,6 +75,26 @@ runcmor -c=$CaseName -m=$model -e=$expid -v=$version -r=$real -yrs1="${years1[*]
fi
#---

if $login1
then
#----------------
# part 1
#----------------
CaseName=NHIST_1901_f19_tn14_20230201esm
real=2
physics=1
forcing=1
init=1
years1=(1850 $(seq 1860 10 2000) 2010)
years2=(1859 $(seq 1869 10 2009) 2014)
years1=($(seq 1940 10 2000) 2010)
years2=($(seq 1949 10 2009) 2014)

runcmor -c=$CaseName -m=$model -e=$expid -v=$version -r=$real -p=$physics -f=$forcing -i=$init -yrs1="${years1[*]}" -yrs2="${years2[*]}" -mpi=DMPI
#---
fi
#---

wait
echo " "
echo "CMOR DONE"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
#!/bin/bash

CMOR_ROOT=$(cd $(dirname $0) && cd ../../.. && pwd)
source ${CMOR_ROOT}/workflow/cmorRun1memb.sh

# initialize
login0=false

# set active
login0=true

# initialize
version=v20230616
expid=esm-hist
model=NorESM2-LM

# --- Use input arguments if exits
if [ $# -ge 1 ]
then
while test $# -gt 0; do
case "$1" in
-m=*)
model=$(echo $1|sed -e 's/^[^=]*=//g')
shift
;;
-e=*)
expid=$(echo $1|sed -e 's/^[^=]*=//g')
shift
;;
-v=*)
version=$(echo $1|sed -e 's/^[^=]*=//g')
shift
;;
* )
echo "ERROR: option $1 not allowed."
echo "*** EXITING THE SCRIPT"
exit 1
;;
esac
done
fi
# ---

echo "--------------------"
echo "EXPID: $expid "
echo "--------------------"

echo " "
echo "START CMOR... "
echo "$(date) "
echo " "

if $login0
then
#----------------
# part 1
#----------------
CaseName=NHIST_1901_f19_tn14_20230201esm
real=2
physics=1
forcing=1
init=1
years1=(1850 $(seq 1860 10 2000) 2010)
years2=(1859 $(seq 1869 10 2009) 2014)
years1=(1970)
years2=(1979)
years1=(1940)
years2=(1949)

runcmor -c=$CaseName -m=$model -e=$expid -v=$version -r=$real -p=$physics -f=$forcing -i=$init -yrs1="${years1[*]}" -yrs2="${years2[*]}" -mpi=DMPI
#---
fi
#---

wait
echo " "
echo "CMOR DONE"
echo "$(date) "
echo "~~~~~~~~~"

# PrePARE QC check, create links and update sha256sum
#${CMOR_ROOT}/workflow/cmorPost.sh -m=${model} -e=${expid} -v=${version} --verbose=false
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
#!/bin/bash

CMOR_ROOT=$(cd $(dirname $0) && cd ../../.. && pwd)
source ${CMOR_ROOT}/workflow/cmorRun1memb.sh

# initialize
login0=false

# set active
login0=true

# initialize
version=v20230616
expid=esm-hist
model=NorESM2-LM

# --- Use input arguments if exits
if [ $# -ge 1 ]
then
while test $# -gt 0; do
case "$1" in
-m=*)
model=$(echo $1|sed -e 's/^[^=]*=//g')
shift
;;
-e=*)
expid=$(echo $1|sed -e 's/^[^=]*=//g')
shift
;;
-v=*)
version=$(echo $1|sed -e 's/^[^=]*=//g')
shift
;;
* )
echo "ERROR: option $1 not allowed."
echo "*** EXITING THE SCRIPT"
exit 1
;;
esac
done
fi
# ---

echo "--------------------"
echo "EXPID: $expid "
echo "--------------------"

echo " "
echo "START CMOR... "
echo "$(date) "
echo " "

if $login0
then
#----------------
# part 1
#----------------
CaseName=NHIST_1951_f19_tn14_20230201esm
real=3
physics=1
forcing=1
init=1
years1=(1850 $(seq 1860 10 2000) 2010)
years2=(1859 $(seq 1869 10 2009) 2014)
years1=($(seq 1990 10 2000) 2010)
years2=($(seq 1999 10 2009) 2014)

runcmor -c=$CaseName -m=$model -e=$expid -v=$version -r=$real -p=$physics -f=$forcing -i=$init -yrs1="${years1[*]}" -yrs2="${years2[*]}" -mpi=DMPI
#---
fi
#---

wait
echo " "
echo "CMOR DONE"
echo "$(date) "
echo "~~~~~~~~~"

# PrePARE QC check, create links and update sha256sum
${CMOR_ROOT}/workflow/cmorPost.sh -m=${model} -e=${expid} -v=${version} --verbose=false
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
#!/bin/bash

CMOR_ROOT=$(cd $(dirname $0) && cd ../../.. && pwd)
source ${CMOR_ROOT}/workflow/cmorRun1memb.sh

# initialize
login0=false

# set active
login0=true

# initialize
version=v20230616
expid=esm-hist
model=NorESM2-LM

# --- Use input arguments if exits
if [ $# -ge 1 ]
then
while test $# -gt 0; do
case "$1" in
-m=*)
model=$(echo $1|sed -e 's/^[^=]*=//g')
shift
;;
-e=*)
expid=$(echo $1|sed -e 's/^[^=]*=//g')
shift
;;
-v=*)
version=$(echo $1|sed -e 's/^[^=]*=//g')
shift
;;
* )
echo "ERROR: option $1 not allowed."
echo "*** EXITING THE SCRIPT"
exit 1
;;
esac
done
fi
# ---

echo "--------------------"
echo "EXPID: $expid "
echo "--------------------"

echo " "
echo "START CMOR... "
echo "$(date) "
echo " "

if $login0
then
#----------------
# part 1
#----------------
CaseName=NHIST_2001_f19_tn14_20230201esm
real=4
physics=1
forcing=1
init=1
years1=(1850 $(seq 1860 10 2000) 2010)
years2=(1859 $(seq 1869 10 2009) 2014)
years1=($(seq 1970 10 2000) 2010)
years2=($(seq 1979 10 2009) 2014)

runcmor -c=$CaseName -m=$model -e=$expid -v=$version -r=$real -p=$physics -f=$forcing -i=$init -yrs1="${years1[*]}" -yrs2="${years2[*]}" -mpi=DMPI
#---
fi
#---

wait
echo " "
echo "CMOR DONE"
echo "$(date) "
echo "~~~~~~~~~"

# PrePARE QC check, create links and update sha256sum
${CMOR_ROOT}/workflow/cmorPost.sh -m=${model} -e=${expid} -v=${version} --verbose=false
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
#!/bin/bash

CMOR_ROOT=$(cd $(dirname $0) && cd ../../.. && pwd)
source ${CMOR_ROOT}/workflow/cmorRun1memb.sh

# initialize
login0=false

# set active
login0=true

# initialize
version=v20230616
expid=esm-hist
model=NorESM2-LM

# --- Use input arguments if exits
if [ $# -ge 1 ]
then
while test $# -gt 0; do
case "$1" in
-m=*)
model=$(echo $1|sed -e 's/^[^=]*=//g')
shift
;;
-e=*)
expid=$(echo $1|sed -e 's/^[^=]*=//g')
shift
;;
-v=*)
version=$(echo $1|sed -e 's/^[^=]*=//g')
shift
;;
* )
echo "ERROR: option $1 not allowed."
echo "*** EXITING THE SCRIPT"
exit 1
;;
esac
done
fi
# ---

echo "--------------------"
echo "EXPID: $expid "
echo "--------------------"

echo " "
echo "START CMOR... "
echo "$(date) "
echo " "

if $login0
then
#----------------
# part 1
#----------------
CaseName=NHIST_2051_f19_tn14_20230201esm
real=5
physics=1
forcing=1
init=1
years1=(1850 $(seq 1860 10 2000) 2010)
years2=(1859 $(seq 1869 10 2009) 2014)
years1=($(seq 1910 10 2000) 2010)
years2=($(seq 1919 10 2009) 2014)

runcmor -c=$CaseName -m=$model -e=$expid -v=$version -r=$real -p=$physics -f=$forcing -i=$init -yrs1="${years1[*]}" -yrs2="${years2[*]}" -mpi=DMPI
#---
fi
#---

wait
echo " "
echo "CMOR DONE"
echo "$(date) "
echo "~~~~~~~~~"

# PrePARE QC check, create links and update sha256sum
#${CMOR_ROOT}/workflow/cmorPost.sh -m=${model} -e=${expid} -v=${version} --verbose=false
Loading

0 comments on commit e28a40c

Please sign in to comment.