[INFO] JOBID=805828

job_name_ptrn='/gpfs/scratch/bsc32/bsc32627/t0ni/LOG_t0ni/t0ni_19931101_fc0_2_NCTIME'
+ job_name_ptrn=/gpfs/scratch/bsc32/bsc32627/t0ni/LOG_t0ni/t0ni_19931101_fc0_2_NCTIME
echo $(date +%s) > ${job_name_ptrn}_STAT
date +%s
++ date +%s
+ echo 1639863388

###################
# Autosubmit job
###################

set -v
+ set -v
#
# Architecture
#
CHUNK=2
+ CHUNK=2
Chunk_end_date=19931231
+ Chunk_end_date=19931231
Chunk_start_date=19931201
+ Chunk_start_date=19931201
EXPID=t0ni
+ EXPID=t0ni
HPCARCH=marenostrum4
+ HPCARCH=marenostrum4
CURRENT_ARCH=nord3
+ CURRENT_ARCH=nord3
HPCPROJ=bsc32
+ HPCPROJ=bsc32
HPCUSER=bsc32627
+ HPCUSER=bsc32627
JOBNAME=t0ni_19931101_fc0_2_NCTIME
+ JOBNAME=t0ni_19931101_fc0_2_NCTIME
MEMBER=fc0
+ MEMBER=fc0
MODEL=ecearth
+ MODEL=ecearth
PROJDIR=/esarchive/autosubmit/t0ni/proj/auto-ecearth3
+ PROJDIR=/esarchive/autosubmit/t0ni/proj/auto-ecearth3
PROJ=bsc32
+ PROJ=bsc32
CHUNKSIZE=1
+ CHUNKSIZE=1
MEMBER=fc0
+ MEMBER=fc0
CMOR_REALIZATION_INDEX=""
+ CMOR_REALIZATION_INDEX=
START_date=19931101
+ START_date=19931101

export HPCPROJ
+ export HPCPROJ
# load components & libraries
. ${PROJDIR}/platforms/${CURRENT_ARCH}/configure.sh
+ . /esarchive/autosubmit/t0ni/proj/auto-ecearth3/platforms/nord3/configure.sh
#####################################################################################################################
# Globals:
#   PROJDIR
# Arguments:
#   None
# Returns:
#   None
# Purpose: main function to prepare execution environment for the underlying platform, that basically consist on
#   setting up the modules to be used, common environment variables and the common paths
#####################################################################################################################
function load_platform_environment() {
  # load utils/filesystem libraries for common env functions
  . ${PROJDIR}/platforms/nord3/filesystem.sh
  . ${PROJDIR}/platforms/nord3/utils.sh
  #load global environment variables
  setup_modules
  #configure all modules needed for run the job
  setup_environment_vars
  # define all paths needed
  setup_paths
}

#####################################################################################################################
# Globals:
#   None
# Arguments:
#   None
# Returns:
#   None
# Purpose: Prepare the modules needed to execute ece2cmor component for Nord3 platform, currently not yet supported
#####################################################################################################################
function load_modules_ece2cmor() {
  echo "ece2cmor is not supported in Nord3"
  exit 1
}

#####################################################################################################################
# Globals:
#   None
# Arguments:
#   None
# Returns:
#   None
# Purpose: define the global vars with the path to the grib modules needed to run the ece2cmor module,
#          for Nord3 platform, currently not yet supported
#####################################################################################################################
function define_paths_ece2cmor() {
  echo "ece2cmor is not supported in Nord3"
  exit 1
}

#####################################################################################################################
# Globals:
#   None
# Arguments:
#   None
# Returns:
#   None
# Purpose: Prepare the modules needed to execute the OASIS restart generation script for Marenostrum4 platform
#####################################################################################################################
function load_modules_oas_rsts_gen() {
  echo "Function generate_oasis_restarts not available in this platform (Nord3)"
}

#####################################################################################################################
# Globals:
#   None
# Arguments:
#   None
# Returns:
#   None
# Purpose: load the modules needed for executing NCTIME lib in the underlying architecture
#####################################################################################################################
function configure_nctime() {
  set +xuve
  module unuse /apps/modules/modulefiles/applications /apps/modules/modulefiles/applications_bis /apps/modules/modulefiles/compilers /apps/modules/modulefiles/tools /apps/modules/modulefiles/libraries /apps/modules/modulefiles/environment /apps/modules/PRACE
  module use /gpfs/projects/bsc32/software/suselinux/11/modules/all
  module purge
  module load nctime/4.6.5-foss-2019b-Python-2.7.16
  nctime_tmpdir=$TMPDIR/${EXPID}/nctime
  mkdir -p $nctime_tmpdir
  set -xuve
}
configure_nctime
+ configure_nctime
+ set +xuve
remove openmpi/1.8.1 (PATH, MANPATH, LD_LIBRARY_PATH)
. ${PROJDIR}/plugins/cmorization.sh
+ . /esarchive/autosubmit/t0ni/proj/auto-ecearth3/plugins/cmorization.sh
#####################################################################################################################
# Globals: CMOR_REALIZATION_INDEX, MEMBER
# Arguments:
#
# Returns:
#   None
# Purpose: Set the cmor realization index based on the member list
#
#####################################################################################################################
function cmor_realization_indexing() {

  if [[ ! -z ${CMOR_REALIZATION_INDEX} ]]; then
    CMOR_REALIZATION_INDEX_LIST=($(echo ${CMOR_REALIZATION_INDEX}))
    member_index0=$(echo $((10#$(echo ${MEMBER} | cut -c3-))))
    realization_index=${CMOR_REALIZATION_INDEX_LIST[${member_index0}]}
  else
    realization_index=${member_index}
  fi

}

#####################################################################################################################
# Globals: CMOR_EXP_CUSTOM BSC_OUTCLASS CMOR_ADD_STARTDATE sub_experiment_id
# Arguments:
#
# Returns:
#   None
# Purpose: Creates the subexperiment id according to CMOR_EXP_CUSTOM BSC_OUTCLASS CMOR_ADD_STARTDATE to add it in the CMOR file names
#
#####################################################################################################################

function create_sub_experiment_id() {
  #The logics of the creation of the sub_experiment_id are described in https://earth.bsc.es/gitlab/es/auto-ecearth3/-/issues/1355#note_101060
  if [[ ${CMOR_EXP_CUSTOM} == "TRUE" ]]; then
    if [[ -n $(echo ${BSC_OUTCLASS} | grep dcpp) ]] || [[ "${CMOR_ACTIVITY_ID}" == "DCPP" ]]; then
      if [[ ${CMOR_ADD_STARTDATE} == "TRUE" ]]; then
        echo TRUE TRUE TRUE
        sub_experiment_id=s$(echo ${START_date} | cut -c1-8)
      else
        echo TRUE TRUE FALSE
        sub_experiment_id=s$(echo ${START_date} | cut -c1-4)
      fi
    else
      if [[ ${CMOR_ADD_STARTDATE} == "TRUE" ]]; then
        echo TRUE FALSE TRUE
        sub_experiment_id=s$(echo ${START_date} | cut -c1-8)
      else
        echo TRUE FALSE FALSE
        sub_experiment_id=""
      fi
    fi
  else
    if [[ -n $(echo ${BSC_OUTCLASS} | grep dcpp) ]] || [[ "${CMOR_ACTIVITY_ID}" == "DCPP" ]]; then
      if [[ ${CMOR_ADD_STARTDATE} == "TRUE" ]]; then
        echo "Running with CMOR_EXP_CUSTOM=False + CMOR_ADD_STARTDATE=True is forbidden, exiting"
        exit 0
      else
        sub_experiment_id=s$(echo ${START_date} | cut -c1-4)
      fi
    else
      if [[ ${CMOR_ADD_STARTDATE} == "TRUE" ]]; then
        echo "Running with CMOR_EXP_CUSTOM=False + CMOR_ADD_STARTDATE=True is forbidden, exiting"
        exit 0
      else
        sub_experiment_id=""
      fi
    fi
  fi

}
member_index=$(echo $((10#$(echo ${MEMBER} | cut -c3-) + 1)))
echo $((10#$(echo ${MEMBER} | cut -c3-) + 1))
echo ${MEMBER} | cut -c3-
+++ cut -c3-
+++ echo fc0
++ echo 1
+ member_index=1
cmor_realization_indexing
+ cmor_realization_indexing
+ [[ ! -z '' ]]
+ realization_index=1

#Monthly instantaneous variables. Require special treatment because the CMOR files don't have the name Chunk_start_date-Chunk_end_date
#If nctime fails this might be due to a new instantaneous variable. Original files should be checked and the variable eventually added to this list. More details in https://earth.bsc.es/gitlab/es/auto-ecearth3/-/issues/1450#note_109064
varlist_monthly_instant="SImon/sidivvel"
+ varlist_monthly_instant=SImon/sidivvel
varlist_ignored="Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct"
+ varlist_ignored='Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct'
frequency_nctime=$(sed -n '/\[NCTIME\]/,/\[/p' /esarchive/autosubmit/${EXPID}/conf/jobs_${EXPID}.conf | grep "^FREQUENCY =" | cut -f2 -d"=" | cut -f2 -d" ")
sed -n '/\[NCTIME\]/,/\[/p' /esarchive/autosubmit/${EXPID}/conf/jobs_${EXPID}.conf | grep "^FREQUENCY =" | cut -f2 -d"=" | cut -f2 -d" "
++ grep '^FREQUENCY ='
++ cut -f2 -d=
++ cut -f2 '-d '
++ sed -n '/\[NCTIME\]/,/\[/p' /esarchive/autosubmit/t0ni/conf/jobs_t0ni.conf
+ frequency_nctime=3
[[ -z $frequency_nctime ]] && frequency_nctime=1
+ [[ -z 3 ]]

cd /esarchive/exp/ecearth/${EXPID}/original_files/cmorfiles/
+ cd /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/

for i in $(seq $CHUNK -1 $(($CHUNK - $frequency_nctime + 1))); do
  ii=$(printf "%03d" ${i})
  if [[ -n $(ls CMOR_${EXPID}_${START_date}_${MEMBER}_${ii}_*.tar) ]]; then
    tar xvf $(ls CMOR_${EXPID}_${START_date}_${MEMBER}_${ii}_*.tar) --strip-components=10
    rm -f CMOR_${EXPID}_${START_date}_${MEMBER}_${ii}*.tar
  fi
done
seq $CHUNK -1 $(($CHUNK - $frequency_nctime + 1))
++ seq 2 -1 0
+ for i in '$(seq $CHUNK -1 $(($CHUNK - $frequency_nctime + 1)))'
printf "%03d" ${i}
++ printf %03d 2
+ ii=002
ls CMOR_${EXPID}_${START_date}_${MEMBER}_${ii}_*.tar
++ ls 'CMOR_t0ni_19931101_fc0_002_*.tar'
ls: cannot access CMOR_t0ni_19931101_fc0_002_*.tar: No such file or directory
+ [[ -n '' ]]
+ for i in '$(seq $CHUNK -1 $(($CHUNK - $frequency_nctime + 1)))'
printf "%03d" ${i}
++ printf %03d 1
+ ii=001
ls CMOR_${EXPID}_${START_date}_${MEMBER}_${ii}_*.tar
++ ls 'CMOR_t0ni_19931101_fc0_001_*.tar'
ls: cannot access CMOR_t0ni_19931101_fc0_001_*.tar: No such file or directory
+ [[ -n '' ]]
+ for i in '$(seq $CHUNK -1 $(($CHUNK - $frequency_nctime + 1)))'
printf "%03d" ${i}
++ printf %03d 0
+ ii=000
ls CMOR_${EXPID}_${START_date}_${MEMBER}_${ii}_*.tar
++ ls 'CMOR_t0ni_19931101_fc0_000_*.tar'
ls: cannot access CMOR_t0ni_19931101_fc0_000_*.tar: No such file or directory
+ [[ -n '' ]]

if [[ -z $(ls -d /esarchive/exp/ecearth/${EXPID}/original_files/cmorfiles/*/*/*/*/r${realization_index}i1p1f1) ]]; then
  echo "No cmor outputs found"
  exit 1
else
  cd /esarchive/exp/ecearth/${EXPID}/original_files/cmorfiles
  for cmor_directory in $(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx"); do
    #for monthly instantaneous variables, the date of the cmor files is shifted of one month ahead compared to the real chunk date
    freq_var=$(echo $cmor_directory | cut -f7-8 -d"/")
    if [[ -z $( echo $varlist_ignored | grep ${freq_var} ) ]]; then
      if [[ -n $(echo ${varlist_monthly_instant} | grep ${freq_var}) ]] ; then
        previous_chunk_start_date=$(date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE - 1)) months" +%Y%m)01
      else
        previous_chunk_start_date=$(date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m)01
      fi
      mkdir -p ${nctime_tmpdir}/${MEMBER}/$cmor_directory
      for index_month in $(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))); do
        date=$(date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m) #every yearmonth since the beginning of previous chunk start date to 2 * $CHUNKSIZE -1
        year=$(date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y)    #every yearmonth since the beginning of previous chunk start date to 2 * $CHUNKSIZE -1
        list_cmorfiles=""
        if [[ ${date}01 -ge ${START_date} ]]; then
          if [[ ! -z $(echo $cmor_directory | grep -vE "Oyr|Eyr") ]]; then
            if  [[ -n $(ls ${cmor_directory}/*g?_${date}*nc) ]]; then
              list_cmorfiles="$(ls ${cmor_directory}/*g?_${date}*nc)"
            else
              [[ -n $( ls ${cmor_directory}/*_*_g?_${year}*.nc ) ]] && list_cmorfiles="${list_cmorfiles[@]} $(ls ${cmor_directory}/*_*_g?_${year}*.nc)"
            fi
          else
            if [[ $(echo ${START_date} | cut -c5-6) == "01" ]] && [[ ${CHUNKSIZE} == "12" ]]; then
              list_cmorfiles="${list_cmorfiles[@]}  $(ls ${cmor_directory}/*_*yr_*g?_${year}*.nc)"
            fi
          fi
          if [[ ! -z ${list_cmorfiles[@]} ]]; then
            for cmorfile in ${list_cmorfiles[@]}; do
              [[ -n $cmorfile ]] && ln -sf /esarchive/exp/ecearth/${EXPID}/original_files/cmorfiles/$cmorfile $nctime_tmpdir/$MEMBER/$cmor_directory/.
            done
          fi
        fi
      done
    fi
  done
  ls -lrt ${nctime_tmpdir}/${MEMBER}/*/*/*/*/*/*/*/*/*
  nctxck -i /esarchive/software/nctime --max-processes -1 ${nctime_tmpdir}/$MEMBER
  nctcck -i /esarchive/software/nctime --max-processes -1 ${nctime_tmpdir}/$MEMBER
  rm -rf ${nctime_tmpdir}
fi
ls -d /esarchive/exp/ecearth/${EXPID}/original_files/cmorfiles/*/*/*/*/r${realization_index}i1p1f1
++ ls -d /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1
+ [[ -z /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1 ]]
+ cd /esarchive/exp/ecearth/t0ni/original_files/cmorfiles
find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx"
++ grep r1i1p1f1
++ grep -vE fx
++ find . -maxdepth 9 -mindepth 9 -type d
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/day/psl/gr/v20211218
+ freq_var=day/psl
 echo $varlist_ignored | grep ${freq_var} 
++ grep day/psl
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep day/psl
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/day/psl/gr/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/day/psl/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/day/psl/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/day/psl/gr/v20211218/psl_day_EC-Earth3_piControl_r1i1p1f1_gr_19931101-19931130.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/day/psl/gr/v20211218/psl_day_EC-Earth3_piControl_r1i1p1f1_gr_19931101-19931130.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/day/psl/gr/v20211218/psl_day_EC-Earth3_piControl_r1i1p1f1_gr_19931101-19931130.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/day/psl/gr/v20211218/psl_day_EC-Earth3_piControl_r1i1p1f1_gr_19931101-19931130.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/day/psl/gr/v20211218/psl_day_EC-Earth3_piControl_r1i1p1f1_gr_19931101-19931130.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/day/psl/gr/v20211218/psl_day_EC-Earth3_piControl_r1i1p1f1_gr_19931101-19931130.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/day/psl/gr/v20211218/psl_day_EC-Earth3_piControl_r1i1p1f1_gr_19931101-19931130.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/day/psl/gr/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/day/psl/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/day/psl/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/day/psl/gr/v20211218/psl_day_EC-Earth3_piControl_r1i1p1f1_gr_19931201-19931231.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/day/psl/gr/v20211218/psl_day_EC-Earth3_piControl_r1i1p1f1_gr_19931201-19931231.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/day/psl/gr/v20211218/psl_day_EC-Earth3_piControl_r1i1p1f1_gr_19931201-19931231.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/day/psl/gr/v20211218/psl_day_EC-Earth3_piControl_r1i1p1f1_gr_19931201-19931231.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/day/psl/gr/v20211218/psl_day_EC-Earth3_piControl_r1i1p1f1_gr_19931201-19931231.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/day/psl/gr/v20211218/psl_day_EC-Earth3_piControl_r1i1p1f1_gr_19931201-19931231.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/day/psl/gr/v20211218/psl_day_EC-Earth3_piControl_r1i1p1f1_gr_19931201-19931231.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/day/psl/gr/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/wfonocorr/gn/v20211218
+ freq_var=Omon/wfonocorr
 echo $varlist_ignored | grep ${freq_var} 
++ grep Omon/wfonocorr
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Omon/wfonocorr
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/wfonocorr/gn/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/wfonocorr/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/wfonocorr/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/wfonocorr/gn/v20211218/wfonocorr_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/wfonocorr/gn/v20211218/wfonocorr_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/wfonocorr/gn/v20211218/wfonocorr_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/wfonocorr/gn/v20211218/wfonocorr_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/wfonocorr/gn/v20211218/wfonocorr_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/wfonocorr/gn/v20211218/wfonocorr_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/wfonocorr/gn/v20211218/wfonocorr_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/wfonocorr/gn/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/wfonocorr/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/wfonocorr/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/wfonocorr/gn/v20211218/wfonocorr_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/wfonocorr/gn/v20211218/wfonocorr_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/wfonocorr/gn/v20211218/wfonocorr_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/wfonocorr/gn/v20211218/wfonocorr_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/wfonocorr/gn/v20211218/wfonocorr_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/wfonocorr/gn/v20211218/wfonocorr_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/wfonocorr/gn/v20211218/wfonocorr_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/wfonocorr/gn/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauuo/gn/v20211218
+ freq_var=Omon/tauuo
 echo $varlist_ignored | grep ${freq_var} 
++ grep Omon/tauuo
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Omon/tauuo
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauuo/gn/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauuo/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauuo/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauuo/gn/v20211218/tauuo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauuo/gn/v20211218/tauuo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauuo/gn/v20211218/tauuo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauuo/gn/v20211218/tauuo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauuo/gn/v20211218/tauuo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauuo/gn/v20211218/tauuo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauuo/gn/v20211218/tauuo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauuo/gn/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauuo/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauuo/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauuo/gn/v20211218/tauuo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauuo/gn/v20211218/tauuo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauuo/gn/v20211218/tauuo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauuo/gn/v20211218/tauuo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauuo/gn/v20211218/tauuo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauuo/gn/v20211218/tauuo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauuo/gn/v20211218/tauuo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauuo/gn/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tos/gn/v20211218
+ freq_var=Omon/tos
 echo $varlist_ignored | grep ${freq_var} 
++ grep Omon/tos
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Omon/tos
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tos/gn/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tos/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tos/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tos/gn/v20211218/tos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tos/gn/v20211218/tos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tos/gn/v20211218/tos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tos/gn/v20211218/tos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tos/gn/v20211218/tos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tos/gn/v20211218/tos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tos/gn/v20211218/tos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tos/gn/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tos/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tos/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tos/gn/v20211218/tos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tos/gn/v20211218/tos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tos/gn/v20211218/tos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tos/gn/v20211218/tos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tos/gn/v20211218/tos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tos/gn/v20211218/tos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tos/gn/v20211218/tos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tos/gn/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfevapds/gn/v20211218
+ freq_var=Omon/hfevapds
 echo $varlist_ignored | grep ${freq_var} 
++ grep Omon/hfevapds
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Omon/hfevapds
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfevapds/gn/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfevapds/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfevapds/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfevapds/gn/v20211218/hfevapds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfevapds/gn/v20211218/hfevapds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfevapds/gn/v20211218/hfevapds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfevapds/gn/v20211218/hfevapds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfevapds/gn/v20211218/hfevapds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfevapds/gn/v20211218/hfevapds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfevapds/gn/v20211218/hfevapds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfevapds/gn/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfevapds/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfevapds/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfevapds/gn/v20211218/hfevapds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfevapds/gn/v20211218/hfevapds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfevapds/gn/v20211218/hfevapds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfevapds/gn/v20211218/hfevapds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfevapds/gn/v20211218/hfevapds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfevapds/gn/v20211218/hfevapds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfevapds/gn/v20211218/hfevapds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfevapds/gn/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/sos/gn/v20211218
+ freq_var=Omon/sos
 echo $varlist_ignored | grep ${freq_var} 
++ grep Omon/sos
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Omon/sos
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/sos/gn/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/sos/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/sos/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/sos/gn/v20211218/sos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/sos/gn/v20211218/sos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/sos/gn/v20211218/sos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/sos/gn/v20211218/sos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/sos/gn/v20211218/sos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/sos/gn/v20211218/sos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/sos/gn/v20211218/sos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/sos/gn/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/sos/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/sos/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/sos/gn/v20211218/sos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/sos/gn/v20211218/sos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/sos/gn/v20211218/sos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/sos/gn/v20211218/sos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/sos/gn/v20211218/sos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/sos/gn/v20211218/sos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/sos/gn/v20211218/sos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/sos/gn/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/friver/gn/v20211218
+ freq_var=Omon/friver
 echo $varlist_ignored | grep ${freq_var} 
++ grep Omon/friver
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Omon/friver
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/friver/gn/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/friver/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/friver/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/friver/gn/v20211218/friver_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/friver/gn/v20211218/friver_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/friver/gn/v20211218/friver_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/friver/gn/v20211218/friver_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/friver/gn/v20211218/friver_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/friver/gn/v20211218/friver_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/friver/gn/v20211218/friver_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/friver/gn/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/friver/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/friver/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/friver/gn/v20211218/friver_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/friver/gn/v20211218/friver_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/friver/gn/v20211218/friver_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/friver/gn/v20211218/friver_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/friver/gn/v20211218/friver_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/friver/gn/v20211218/friver_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/friver/gn/v20211218/friver_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/friver/gn/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/thetao/gn/v20211218
+ freq_var=Omon/thetao
 echo $varlist_ignored | grep ${freq_var} 
++ grep Omon/thetao
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Omon/thetao
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/thetao/gn/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/thetao/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/thetao/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/thetao/gn/v20211218/thetao_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/thetao/gn/v20211218/thetao_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/thetao/gn/v20211218/thetao_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/thetao/gn/v20211218/thetao_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/thetao/gn/v20211218/thetao_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/thetao/gn/v20211218/thetao_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/thetao/gn/v20211218/thetao_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/thetao/gn/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/thetao/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/thetao/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/thetao/gn/v20211218/thetao_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/thetao/gn/v20211218/thetao_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/thetao/gn/v20211218/thetao_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/thetao/gn/v20211218/thetao_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/thetao/gn/v20211218/thetao_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/thetao/gn/v20211218/thetao_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/thetao/gn/v20211218/thetao_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/thetao/gn/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/precip/gn/v20211218
+ freq_var=Omon/precip
 echo $varlist_ignored | grep ${freq_var} 
++ grep Omon/precip
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Omon/precip
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/precip/gn/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/precip/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/precip/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/precip/gn/v20211218/precip_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/precip/gn/v20211218/precip_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/precip/gn/v20211218/precip_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/precip/gn/v20211218/precip_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/precip/gn/v20211218/precip_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/precip/gn/v20211218/precip_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/precip/gn/v20211218/precip_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/precip/gn/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/precip/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/precip/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/precip/gn/v20211218/precip_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/precip/gn/v20211218/precip_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/precip/gn/v20211218/precip_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/precip/gn/v20211218/precip_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/precip/gn/v20211218/precip_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/precip/gn/v20211218/precip_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/precip/gn/v20211218/precip_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/precip/gn/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauvo/gn/v20211218
+ freq_var=Omon/tauvo
 echo $varlist_ignored | grep ${freq_var} 
++ grep Omon/tauvo
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Omon/tauvo
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauvo/gn/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauvo/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauvo/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauvo/gn/v20211218/tauvo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauvo/gn/v20211218/tauvo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauvo/gn/v20211218/tauvo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauvo/gn/v20211218/tauvo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauvo/gn/v20211218/tauvo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauvo/gn/v20211218/tauvo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauvo/gn/v20211218/tauvo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauvo/gn/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauvo/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauvo/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauvo/gn/v20211218/tauvo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauvo/gn/v20211218/tauvo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauvo/gn/v20211218/tauvo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauvo/gn/v20211218/tauvo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauvo/gn/v20211218/tauvo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauvo/gn/v20211218/tauvo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauvo/gn/v20211218/tauvo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauvo/gn/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/vo/gn/v20211218
+ freq_var=Omon/vo
 echo $varlist_ignored | grep ${freq_var} 
++ grep Omon/vo
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Omon/vo
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/vo/gn/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/vo/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/vo/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/vo/gn/v20211218/vo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/vo/gn/v20211218/vo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/vo/gn/v20211218/vo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/vo/gn/v20211218/vo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/vo/gn/v20211218/vo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/vo/gn/v20211218/vo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/vo/gn/v20211218/vo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/vo/gn/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/vo/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/vo/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/vo/gn/v20211218/vo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/vo/gn/v20211218/vo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/vo/gn/v20211218/vo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/vo/gn/v20211218/vo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/vo/gn/v20211218/vo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/vo/gn/v20211218/vo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/vo/gn/v20211218/vo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/vo/gn/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfds/gn/v20211218
+ freq_var=Omon/hfds
 echo $varlist_ignored | grep ${freq_var} 
++ grep Omon/hfds
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Omon/hfds
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfds/gn/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfds/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfds/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfds/gn/v20211218/hfds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfds/gn/v20211218/hfds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfds/gn/v20211218/hfds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfds/gn/v20211218/hfds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfds/gn/v20211218/hfds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfds/gn/v20211218/hfds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfds/gn/v20211218/hfds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfds/gn/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfds/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfds/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfds/gn/v20211218/hfds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfds/gn/v20211218/hfds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfds/gn/v20211218/hfds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfds/gn/v20211218/hfds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfds/gn/v20211218/hfds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfds/gn/v20211218/hfds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfds/gn/v20211218/hfds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfds/gn/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/ficeberg/gn/v20211218
+ freq_var=Omon/ficeberg
 echo $varlist_ignored | grep ${freq_var} 
++ grep Omon/ficeberg
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Omon/ficeberg
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/ficeberg/gn/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/ficeberg/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/ficeberg/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/ficeberg/gn/v20211218/ficeberg_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/ficeberg/gn/v20211218/ficeberg_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/ficeberg/gn/v20211218/ficeberg_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/ficeberg/gn/v20211218/ficeberg_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/ficeberg/gn/v20211218/ficeberg_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/ficeberg/gn/v20211218/ficeberg_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/ficeberg/gn/v20211218/ficeberg_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/ficeberg/gn/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/ficeberg/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/ficeberg/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/ficeberg/gn/v20211218/ficeberg_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/ficeberg/gn/v20211218/ficeberg_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/ficeberg/gn/v20211218/ficeberg_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/ficeberg/gn/v20211218/ficeberg_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/ficeberg/gn/v20211218/ficeberg_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/ficeberg/gn/v20211218/ficeberg_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/ficeberg/gn/v20211218/ficeberg_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/ficeberg/gn/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/subl/gn/v20211218
+ freq_var=Omon/subl
 echo $varlist_ignored | grep ${freq_var} 
++ grep Omon/subl
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Omon/subl
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/subl/gn/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/subl/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/subl/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/subl/gn/v20211218/subl_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/subl/gn/v20211218/subl_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/subl/gn/v20211218/subl_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/subl/gn/v20211218/subl_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/subl/gn/v20211218/subl_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/subl/gn/v20211218/subl_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/subl/gn/v20211218/subl_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/subl/gn/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/subl/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/subl/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/subl/gn/v20211218/subl_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/subl/gn/v20211218/subl_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/subl/gn/v20211218/subl_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/subl/gn/v20211218/subl_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/subl/gn/v20211218/subl_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/subl/gn/v20211218/subl_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/subl/gn/v20211218/subl_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/subl/gn/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/calving/gn/v20211218
+ freq_var=Omon/calving
 echo $varlist_ignored | grep ${freq_var} 
++ grep Omon/calving
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Omon/calving
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/calving/gn/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/calving/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/calving/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/calving/gn/v20211218/calving_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/calving/gn/v20211218/calving_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/calving/gn/v20211218/calving_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/calving/gn/v20211218/calving_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/calving/gn/v20211218/calving_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/calving/gn/v20211218/calving_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/calving/gn/v20211218/calving_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/calving/gn/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/calving/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/calving/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/calving/gn/v20211218/calving_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/calving/gn/v20211218/calving_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/calving/gn/v20211218/calving_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/calving/gn/v20211218/calving_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/calving/gn/v20211218/calving_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/calving/gn/v20211218/calving_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/calving/gn/v20211218/calving_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/calving/gn/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/uo/gn/v20211218
+ freq_var=Omon/uo
 echo $varlist_ignored | grep ${freq_var} 
++ grep Omon/uo
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Omon/uo
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/uo/gn/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/uo/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/uo/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/uo/gn/v20211218/uo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/uo/gn/v20211218/uo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/uo/gn/v20211218/uo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/uo/gn/v20211218/uo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/uo/gn/v20211218/uo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/uo/gn/v20211218/uo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/uo/gn/v20211218/uo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/uo/gn/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/uo/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/uo/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/uo/gn/v20211218/uo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/uo/gn/v20211218/uo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/uo/gn/v20211218/uo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/uo/gn/v20211218/uo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/uo/gn/v20211218/uo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/uo/gn/v20211218/uo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/uo/gn/v20211218/uo_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/uo/gn/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/rsntds/gn/v20211218
+ freq_var=Omon/rsntds
 echo $varlist_ignored | grep ${freq_var} 
++ grep Omon/rsntds
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/rsntds/gn/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/rsntds/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/rsntds/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/rsntds/gn/v20211218/rsntds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/rsntds/gn/v20211218/rsntds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/rsntds/gn/v20211218/rsntds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/rsntds/gn/v20211218/rsntds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/rsntds/gn/v20211218/rsntds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/rsntds/gn/v20211218/rsntds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/rsntds/gn/v20211218/rsntds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/rsntds/gn/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/rsntds/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/rsntds/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/rsntds/gn/v20211218/rsntds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/rsntds/gn/v20211218/rsntds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/rsntds/gn/v20211218/rsntds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/rsntds/gn/v20211218/rsntds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/rsntds/gn/v20211218/rsntds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/rsntds/gn/v20211218/rsntds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/rsntds/gn/v20211218/rsntds_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/rsntds/gn/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/zos/gn/v20211218
+ freq_var=Omon/zos
 echo $varlist_ignored | grep ${freq_var} 
++ grep Omon/zos
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Omon/zos
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/zos/gn/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/zos/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/zos/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/zos/gn/v20211218/zos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/zos/gn/v20211218/zos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/zos/gn/v20211218/zos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/zos/gn/v20211218/zos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/zos/gn/v20211218/zos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/zos/gn/v20211218/zos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/zos/gn/v20211218/zos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/zos/gn/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/zos/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/zos/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/zos/gn/v20211218/zos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/zos/gn/v20211218/zos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/zos/gn/v20211218/zos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/zos/gn/v20211218/zos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/zos/gn/v20211218/zos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/zos/gn/v20211218/zos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/zos/gn/v20211218/zos_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/zos/gn/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/so/gn/v20211218
+ freq_var=Omon/so
 echo $varlist_ignored | grep ${freq_var} 
++ grep Omon/so
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Omon/so
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/so/gn/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/so/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/so/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/so/gn/v20211218/so_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/so/gn/v20211218/so_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/so/gn/v20211218/so_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/so/gn/v20211218/so_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/so/gn/v20211218/so_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/so/gn/v20211218/so_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/so/gn/v20211218/so_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/so/gn/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/so/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/so/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/so/gn/v20211218/so_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/so/gn/v20211218/so_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/so/gn/v20211218/so_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/so/gn/v20211218/so_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/so/gn/v20211218/so_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/so/gn/v20211218/so_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/so/gn/v20211218/so_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/so/gn/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/mlotst/gn/v20211218
+ freq_var=Omon/mlotst
 echo $varlist_ignored | grep ${freq_var} 
++ grep Omon/mlotst
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Omon/mlotst
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/mlotst/gn/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/mlotst/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/mlotst/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/mlotst/gn/v20211218/mlotst_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/mlotst/gn/v20211218/mlotst_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/mlotst/gn/v20211218/mlotst_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/mlotst/gn/v20211218/mlotst_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/mlotst/gn/v20211218/mlotst_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/mlotst/gn/v20211218/mlotst_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/mlotst/gn/v20211218/mlotst_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/mlotst/gn/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/mlotst/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/mlotst/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/mlotst/gn/v20211218/mlotst_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/mlotst/gn/v20211218/mlotst_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/mlotst/gn/v20211218/mlotst_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/mlotst/gn/v20211218/mlotst_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/mlotst/gn/v20211218/mlotst_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/mlotst/gn/v20211218/mlotst_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/mlotst/gn/v20211218/mlotst_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/mlotst/gn/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/evs/gn/v20211218
+ freq_var=Omon/evs
 echo $varlist_ignored | grep ${freq_var} 
++ grep Omon/evs
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Omon/evs
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/evs/gn/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/evs/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/evs/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/evs/gn/v20211218/evs_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/evs/gn/v20211218/evs_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/evs/gn/v20211218/evs_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/evs/gn/v20211218/evs_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/evs/gn/v20211218/evs_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/evs/gn/v20211218/evs_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/evs/gn/v20211218/evs_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/evs/gn/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/evs/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/evs/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/evs/gn/v20211218/evs_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/evs/gn/v20211218/evs_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/evs/gn/v20211218/evs_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/evs/gn/v20211218/evs_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/evs/gn/v20211218/evs_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/evs/gn/v20211218/evs_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/evs/gn/v20211218/evs_Omon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/evs/gn/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/LImon/snw/gr/v20211218
+ freq_var=LImon/snw
 echo $varlist_ignored | grep ${freq_var} 
++ grep LImon/snw
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep LImon/snw
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/LImon/snw/gr/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/LImon/snw/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/LImon/snw/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/LImon/snw/gr/v20211218/snw_LImon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/LImon/snw/gr/v20211218/snw_LImon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/LImon/snw/gr/v20211218/snw_LImon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/LImon/snw/gr/v20211218/snw_LImon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/LImon/snw/gr/v20211218/snw_LImon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/LImon/snw/gr/v20211218/snw_LImon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/LImon/snw/gr/v20211218/snw_LImon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/LImon/snw/gr/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/LImon/snw/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/LImon/snw/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/LImon/snw/gr/v20211218/snw_LImon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/LImon/snw/gr/v20211218/snw_LImon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/LImon/snw/gr/v20211218/snw_LImon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/LImon/snw/gr/v20211218/snw_LImon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/LImon/snw/gr/v20211218/snw_LImon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/LImon/snw/gr/v20211218/snw_LImon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/LImon/snw/gr/v20211218/snw_LImon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/LImon/snw/gr/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siconc/gn/v20211218
+ freq_var=SImon/siconc
 echo $varlist_ignored | grep ${freq_var} 
++ grep SImon/siconc
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep SImon/siconc
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siconc/gn/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siconc/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siconc/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siconc/gn/v20211218/siconc_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siconc/gn/v20211218/siconc_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siconc/gn/v20211218/siconc_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siconc/gn/v20211218/siconc_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siconc/gn/v20211218/siconc_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siconc/gn/v20211218/siconc_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siconc/gn/v20211218/siconc_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siconc/gn/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siconc/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siconc/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siconc/gn/v20211218/siconc_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siconc/gn/v20211218/siconc_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siconc/gn/v20211218/siconc_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siconc/gn/v20211218/siconc_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siconc/gn/v20211218/siconc_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siconc/gn/v20211218/siconc_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siconc/gn/v20211218/siconc_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siconc/gn/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sithick/gn/v20211218
+ freq_var=SImon/sithick
 echo $varlist_ignored | grep ${freq_var} 
++ grep SImon/sithick
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep SImon/sithick
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sithick/gn/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sithick/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sithick/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sithick/gn/v20211218/sithick_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sithick/gn/v20211218/sithick_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sithick/gn/v20211218/sithick_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sithick/gn/v20211218/sithick_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sithick/gn/v20211218/sithick_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sithick/gn/v20211218/sithick_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sithick/gn/v20211218/sithick_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sithick/gn/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sithick/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sithick/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sithick/gn/v20211218/sithick_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sithick/gn/v20211218/sithick_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sithick/gn/v20211218/sithick_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sithick/gn/v20211218/sithick_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sithick/gn/v20211218/sithick_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sithick/gn/v20211218/sithick_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sithick/gn/v20211218/sithick_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sithick/gn/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sispeed/gn/v20211218
+ freq_var=SImon/sispeed
 echo $varlist_ignored | grep ${freq_var} 
++ grep SImon/sispeed
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep SImon/sispeed
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sispeed/gn/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sispeed/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sispeed/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sispeed/gn/v20211218/sispeed_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sispeed/gn/v20211218/sispeed_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sispeed/gn/v20211218/sispeed_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sispeed/gn/v20211218/sispeed_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sispeed/gn/v20211218/sispeed_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sispeed/gn/v20211218/sispeed_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sispeed/gn/v20211218/sispeed_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sispeed/gn/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sispeed/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sispeed/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sispeed/gn/v20211218/sispeed_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sispeed/gn/v20211218/sispeed_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sispeed/gn/v20211218/sispeed_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sispeed/gn/v20211218/sispeed_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sispeed/gn/v20211218/sispeed_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sispeed/gn/v20211218/sispeed_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sispeed/gn/v20211218/sispeed_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sispeed/gn/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siu/gn/v20211218
+ freq_var=SImon/siu
 echo $varlist_ignored | grep ${freq_var} 
++ grep SImon/siu
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep SImon/siu
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siu/gn/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siu/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siu/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siu/gn/v20211218/siu_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siu/gn/v20211218/siu_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siu/gn/v20211218/siu_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siu/gn/v20211218/siu_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siu/gn/v20211218/siu_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siu/gn/v20211218/siu_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siu/gn/v20211218/siu_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siu/gn/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siu/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siu/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siu/gn/v20211218/siu_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siu/gn/v20211218/siu_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siu/gn/v20211218/siu_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siu/gn/v20211218/siu_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siu/gn/v20211218/siu_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siu/gn/v20211218/siu_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siu/gn/v20211218/siu_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siu/gn/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sivol/gn/v20211218
+ freq_var=SImon/sivol
 echo $varlist_ignored | grep ${freq_var} 
++ grep SImon/sivol
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep SImon/sivol
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sivol/gn/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sivol/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sivol/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sivol/gn/v20211218/sivol_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sivol/gn/v20211218/sivol_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sivol/gn/v20211218/sivol_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sivol/gn/v20211218/sivol_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sivol/gn/v20211218/sivol_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sivol/gn/v20211218/sivol_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sivol/gn/v20211218/sivol_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sivol/gn/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sivol/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sivol/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sivol/gn/v20211218/sivol_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sivol/gn/v20211218/sivol_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sivol/gn/v20211218/sivol_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sivol/gn/v20211218/sivol_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sivol/gn/v20211218/sivol_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sivol/gn/v20211218/sivol_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sivol/gn/v20211218/sivol_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sivol/gn/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sitemptop/gn/v20211218
+ freq_var=SImon/sitemptop
 echo $varlist_ignored | grep ${freq_var} 
++ grep SImon/sitemptop
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep SImon/sitemptop
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sitemptop/gn/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sitemptop/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sitemptop/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sitemptop/gn/v20211218/sitemptop_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sitemptop/gn/v20211218/sitemptop_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sitemptop/gn/v20211218/sitemptop_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sitemptop/gn/v20211218/sitemptop_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sitemptop/gn/v20211218/sitemptop_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sitemptop/gn/v20211218/sitemptop_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sitemptop/gn/v20211218/sitemptop_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sitemptop/gn/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sitemptop/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sitemptop/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sitemptop/gn/v20211218/sitemptop_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sitemptop/gn/v20211218/sitemptop_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sitemptop/gn/v20211218/sitemptop_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sitemptop/gn/v20211218/sitemptop_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sitemptop/gn/v20211218/sitemptop_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sitemptop/gn/v20211218/sitemptop_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sitemptop/gn/v20211218/sitemptop_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sitemptop/gn/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siv/gn/v20211218
+ freq_var=SImon/siv
 echo $varlist_ignored | grep ${freq_var} 
++ grep SImon/siv
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep SImon/siv
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siv/gn/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siv/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siv/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siv/gn/v20211218/siv_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siv/gn/v20211218/siv_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siv/gn/v20211218/siv_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siv/gn/v20211218/siv_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siv/gn/v20211218/siv_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siv/gn/v20211218/siv_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siv/gn/v20211218/siv_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siv/gn/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siv/gn/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siv/gn/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siv/gn/v20211218/siv_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siv/gn/v20211218/siv_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siv/gn/v20211218/siv_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siv/gn/v20211218/siv_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siv/gn/v20211218/siv_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siv/gn/v20211218/siv_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siv/gn/v20211218/siv_SImon_EC-Earth3_piControl_r1i1p1f1_gn_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siv/gn/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Emon/tdps/gr/v20211218
+ freq_var=Emon/tdps
 echo $varlist_ignored | grep ${freq_var} 
++ grep Emon/tdps
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Emon/tdps
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Emon/tdps/gr/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Emon/tdps/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Emon/tdps/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Emon/tdps/gr/v20211218/tdps_Emon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Emon/tdps/gr/v20211218/tdps_Emon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Emon/tdps/gr/v20211218/tdps_Emon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Emon/tdps/gr/v20211218/tdps_Emon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Emon/tdps/gr/v20211218/tdps_Emon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Emon/tdps/gr/v20211218/tdps_Emon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Emon/tdps/gr/v20211218/tdps_Emon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Emon/tdps/gr/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Emon/tdps/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Emon/tdps/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Emon/tdps/gr/v20211218/tdps_Emon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Emon/tdps/gr/v20211218/tdps_Emon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Emon/tdps/gr/v20211218/tdps_Emon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Emon/tdps/gr/v20211218/tdps_Emon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Emon/tdps/gr/v20211218/tdps_Emon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Emon/tdps/gr/v20211218/tdps_Emon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Emon/tdps/gr/v20211218/tdps_Emon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Emon/tdps/gr/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Lmon/mrro/gr/v20211218
+ freq_var=Lmon/mrro
 echo $varlist_ignored | grep ${freq_var} 
++ grep Lmon/mrro
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Lmon/mrro
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Lmon/mrro/gr/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Lmon/mrro/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Lmon/mrro/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Lmon/mrro/gr/v20211218/mrro_Lmon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Lmon/mrro/gr/v20211218/mrro_Lmon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Lmon/mrro/gr/v20211218/mrro_Lmon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Lmon/mrro/gr/v20211218/mrro_Lmon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Lmon/mrro/gr/v20211218/mrro_Lmon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Lmon/mrro/gr/v20211218/mrro_Lmon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Lmon/mrro/gr/v20211218/mrro_Lmon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Lmon/mrro/gr/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Lmon/mrro/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Lmon/mrro/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Lmon/mrro/gr/v20211218/mrro_Lmon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Lmon/mrro/gr/v20211218/mrro_Lmon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Lmon/mrro/gr/v20211218/mrro_Lmon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Lmon/mrro/gr/v20211218/mrro_Lmon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Lmon/mrro/gr/v20211218/mrro_Lmon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Lmon/mrro/gr/v20211218/mrro_Lmon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Lmon/mrro/gr/v20211218/mrro_Lmon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Lmon/mrro/gr/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prc/gr/v20211218
+ freq_var=Amon/prc
 echo $varlist_ignored | grep ${freq_var} 
++ grep Amon/prc
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Amon/prc
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prc/gr/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prc/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prc/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prc/gr/v20211218/prc_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prc/gr/v20211218/prc_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prc/gr/v20211218/prc_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prc/gr/v20211218/prc_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prc/gr/v20211218/prc_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prc/gr/v20211218/prc_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prc/gr/v20211218/prc_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prc/gr/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prc/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prc/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prc/gr/v20211218/prc_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prc/gr/v20211218/prc_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prc/gr/v20211218/prc_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prc/gr/v20211218/prc_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prc/gr/v20211218/prc_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prc/gr/v20211218/prc_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prc/gr/v20211218/prc_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prc/gr/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfls/gr/v20211218
+ freq_var=Amon/hfls
 echo $varlist_ignored | grep ${freq_var} 
++ grep Amon/hfls
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Amon/hfls
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfls/gr/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfls/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfls/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfls/gr/v20211218/hfls_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfls/gr/v20211218/hfls_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfls/gr/v20211218/hfls_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfls/gr/v20211218/hfls_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfls/gr/v20211218/hfls_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfls/gr/v20211218/hfls_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfls/gr/v20211218/hfls_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfls/gr/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfls/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfls/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfls/gr/v20211218/hfls_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfls/gr/v20211218/hfls_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfls/gr/v20211218/hfls_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfls/gr/v20211218/hfls_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfls/gr/v20211218/hfls_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfls/gr/v20211218/hfls_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfls/gr/v20211218/hfls_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfls/gr/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/vas/gr/v20211218
+ freq_var=Amon/vas
 echo $varlist_ignored | grep ${freq_var} 
++ grep Amon/vas
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Amon/vas
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/vas/gr/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/vas/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/vas/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/vas/gr/v20211218/vas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/vas/gr/v20211218/vas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/vas/gr/v20211218/vas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/vas/gr/v20211218/vas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/vas/gr/v20211218/vas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/vas/gr/v20211218/vas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/vas/gr/v20211218/vas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/vas/gr/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/vas/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/vas/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/vas/gr/v20211218/vas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/vas/gr/v20211218/vas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/vas/gr/v20211218/vas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/vas/gr/v20211218/vas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/vas/gr/v20211218/vas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/vas/gr/v20211218/vas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/vas/gr/v20211218/vas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/vas/gr/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlds/gr/v20211218
+ freq_var=Amon/rlds
 echo $varlist_ignored | grep ${freq_var} 
++ grep Amon/rlds
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Amon/rlds
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlds/gr/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlds/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlds/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlds/gr/v20211218/rlds_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlds/gr/v20211218/rlds_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlds/gr/v20211218/rlds_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlds/gr/v20211218/rlds_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlds/gr/v20211218/rlds_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlds/gr/v20211218/rlds_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlds/gr/v20211218/rlds_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlds/gr/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlds/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlds/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlds/gr/v20211218/rlds_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlds/gr/v20211218/rlds_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlds/gr/v20211218/rlds_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlds/gr/v20211218/rlds_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlds/gr/v20211218/rlds_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlds/gr/v20211218/rlds_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlds/gr/v20211218/rlds_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlds/gr/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/uas/gr/v20211218
+ freq_var=Amon/uas
 echo $varlist_ignored | grep ${freq_var} 
++ grep Amon/uas
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Amon/uas
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/uas/gr/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/uas/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/uas/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/uas/gr/v20211218/uas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/uas/gr/v20211218/uas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/uas/gr/v20211218/uas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/uas/gr/v20211218/uas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/uas/gr/v20211218/uas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/uas/gr/v20211218/uas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/uas/gr/v20211218/uas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/uas/gr/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/uas/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/uas/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/uas/gr/v20211218/uas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/uas/gr/v20211218/uas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/uas/gr/v20211218/uas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/uas/gr/v20211218/uas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/uas/gr/v20211218/uas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/uas/gr/v20211218/uas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/uas/gr/v20211218/uas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/uas/gr/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prsn/gr/v20211218
+ freq_var=Amon/prsn
 echo $varlist_ignored | grep ${freq_var} 
++ grep Amon/prsn
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Amon/prsn
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prsn/gr/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prsn/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prsn/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prsn/gr/v20211218/prsn_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prsn/gr/v20211218/prsn_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prsn/gr/v20211218/prsn_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prsn/gr/v20211218/prsn_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prsn/gr/v20211218/prsn_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prsn/gr/v20211218/prsn_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prsn/gr/v20211218/prsn_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prsn/gr/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prsn/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prsn/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prsn/gr/v20211218/prsn_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prsn/gr/v20211218/prsn_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prsn/gr/v20211218/prsn_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prsn/gr/v20211218/prsn_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prsn/gr/v20211218/prsn_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prsn/gr/v20211218/prsn_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prsn/gr/v20211218/prsn_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prsn/gr/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/va/gr/v20211218
+ freq_var=Amon/va
 echo $varlist_ignored | grep ${freq_var} 
++ grep Amon/va
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Amon/va
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/va/gr/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/va/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/va/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/va/gr/v20211218/va_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/va/gr/v20211218/va_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/va/gr/v20211218/va_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/va/gr/v20211218/va_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/va/gr/v20211218/va_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/va/gr/v20211218/va_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/va/gr/v20211218/va_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/va/gr/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/va/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/va/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/va/gr/v20211218/va_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/va/gr/v20211218/va_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/va/gr/v20211218/va_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/va/gr/v20211218/va_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/va/gr/v20211218/va_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/va/gr/v20211218/va_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/va/gr/v20211218/va_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/va/gr/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tas/gr/v20211218
+ freq_var=Amon/tas
 echo $varlist_ignored | grep ${freq_var} 
++ grep Amon/tas
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Amon/tas
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tas/gr/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tas/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tas/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tas/gr/v20211218/tas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tas/gr/v20211218/tas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tas/gr/v20211218/tas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tas/gr/v20211218/tas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tas/gr/v20211218/tas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tas/gr/v20211218/tas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tas/gr/v20211218/tas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tas/gr/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tas/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tas/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tas/gr/v20211218/tas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tas/gr/v20211218/tas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tas/gr/v20211218/tas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tas/gr/v20211218/tas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tas/gr/v20211218/tas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tas/gr/v20211218/tas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tas/gr/v20211218/tas_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tas/gr/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/clt/gr/v20211218
+ freq_var=Amon/clt
 echo $varlist_ignored | grep ${freq_var} 
++ grep Amon/clt
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Amon/clt
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/clt/gr/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/clt/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/clt/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/clt/gr/v20211218/clt_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/clt/gr/v20211218/clt_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/clt/gr/v20211218/clt_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/clt/gr/v20211218/clt_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/clt/gr/v20211218/clt_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/clt/gr/v20211218/clt_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/clt/gr/v20211218/clt_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/clt/gr/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/clt/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/clt/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/clt/gr/v20211218/clt_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/clt/gr/v20211218/clt_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/clt/gr/v20211218/clt_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/clt/gr/v20211218/clt_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/clt/gr/v20211218/clt_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/clt/gr/v20211218/clt_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/clt/gr/v20211218/clt_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/clt/gr/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ua/gr/v20211218
+ freq_var=Amon/ua
 echo $varlist_ignored | grep ${freq_var} 
++ grep Amon/ua
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Amon/ua
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ua/gr/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ua/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ua/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ua/gr/v20211218/ua_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ua/gr/v20211218/ua_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ua/gr/v20211218/ua_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ua/gr/v20211218/ua_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ua/gr/v20211218/ua_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ua/gr/v20211218/ua_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ua/gr/v20211218/ua_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ua/gr/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ua/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ua/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ua/gr/v20211218/ua_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ua/gr/v20211218/ua_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ua/gr/v20211218/ua_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ua/gr/v20211218/ua_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ua/gr/v20211218/ua_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ua/gr/v20211218/ua_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ua/gr/v20211218/ua_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ua/gr/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfss/gr/v20211218
+ freq_var=Amon/hfss
 echo $varlist_ignored | grep ${freq_var} 
++ grep Amon/hfss
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Amon/hfss
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfss/gr/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfss/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfss/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfss/gr/v20211218/hfss_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfss/gr/v20211218/hfss_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfss/gr/v20211218/hfss_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfss/gr/v20211218/hfss_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfss/gr/v20211218/hfss_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfss/gr/v20211218/hfss_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfss/gr/v20211218/hfss_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfss/gr/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfss/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfss/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfss/gr/v20211218/hfss_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfss/gr/v20211218/hfss_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfss/gr/v20211218/hfss_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfss/gr/v20211218/hfss_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfss/gr/v20211218/hfss_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfss/gr/v20211218/hfss_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfss/gr/v20211218/hfss_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfss/gr/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsds/gr/v20211218
+ freq_var=Amon/rsds
 echo $varlist_ignored | grep ${freq_var} 
++ grep Amon/rsds
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Amon/rsds
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsds/gr/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsds/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsds/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsds/gr/v20211218/rsds_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsds/gr/v20211218/rsds_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsds/gr/v20211218/rsds_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsds/gr/v20211218/rsds_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsds/gr/v20211218/rsds_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsds/gr/v20211218/rsds_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsds/gr/v20211218/rsds_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsds/gr/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsds/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsds/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsds/gr/v20211218/rsds_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsds/gr/v20211218/rsds_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsds/gr/v20211218/rsds_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsds/gr/v20211218/rsds_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsds/gr/v20211218/rsds_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsds/gr/v20211218/rsds_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsds/gr/v20211218/rsds_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsds/gr/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlus/gr/v20211218
+ freq_var=Amon/rlus
 echo $varlist_ignored | grep ${freq_var} 
++ grep Amon/rlus
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Amon/rlus
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlus/gr/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlus/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlus/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlus/gr/v20211218/rlus_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlus/gr/v20211218/rlus_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlus/gr/v20211218/rlus_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlus/gr/v20211218/rlus_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlus/gr/v20211218/rlus_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlus/gr/v20211218/rlus_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlus/gr/v20211218/rlus_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlus/gr/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlus/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlus/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlus/gr/v20211218/rlus_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlus/gr/v20211218/rlus_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlus/gr/v20211218/rlus_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlus/gr/v20211218/rlus_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlus/gr/v20211218/rlus_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlus/gr/v20211218/rlus_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlus/gr/v20211218/rlus_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlus/gr/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsdt/gr/v20211218
+ freq_var=Amon/rsdt
 echo $varlist_ignored | grep ${freq_var} 
++ grep Amon/rsdt
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Amon/rsdt
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsdt/gr/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsdt/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsdt/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsdt/gr/v20211218/rsdt_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsdt/gr/v20211218/rsdt_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsdt/gr/v20211218/rsdt_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsdt/gr/v20211218/rsdt_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsdt/gr/v20211218/rsdt_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsdt/gr/v20211218/rsdt_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsdt/gr/v20211218/rsdt_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsdt/gr/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsdt/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsdt/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsdt/gr/v20211218/rsdt_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsdt/gr/v20211218/rsdt_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsdt/gr/v20211218/rsdt_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsdt/gr/v20211218/rsdt_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsdt/gr/v20211218/rsdt_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsdt/gr/v20211218/rsdt_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsdt/gr/v20211218/rsdt_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsdt/gr/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmin/gr/v20211218
+ freq_var=Amon/tasmin
 echo $varlist_ignored | grep ${freq_var} 
++ grep Amon/tasmin
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Amon/tasmin
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmin/gr/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmin/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmin/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmin/gr/v20211218/tasmin_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmin/gr/v20211218/tasmin_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmin/gr/v20211218/tasmin_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmin/gr/v20211218/tasmin_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmin/gr/v20211218/tasmin_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmin/gr/v20211218/tasmin_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmin/gr/v20211218/tasmin_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmin/gr/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmin/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmin/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmin/gr/v20211218/tasmin_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmin/gr/v20211218/tasmin_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmin/gr/v20211218/tasmin_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmin/gr/v20211218/tasmin_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmin/gr/v20211218/tasmin_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmin/gr/v20211218/tasmin_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmin/gr/v20211218/tasmin_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmin/gr/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ta/gr/v20211218
+ freq_var=Amon/ta
 echo $varlist_ignored | grep ${freq_var} 
++ grep Amon/ta
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Amon/ta
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ta/gr/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ta/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ta/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ta/gr/v20211218/ta_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ta/gr/v20211218/ta_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ta/gr/v20211218/ta_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ta/gr/v20211218/ta_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ta/gr/v20211218/ta_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ta/gr/v20211218/ta_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ta/gr/v20211218/ta_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ta/gr/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ta/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ta/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ta/gr/v20211218/ta_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ta/gr/v20211218/ta_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ta/gr/v20211218/ta_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ta/gr/v20211218/ta_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ta/gr/v20211218/ta_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ta/gr/v20211218/ta_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ta/gr/v20211218/ta_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ta/gr/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlut/gr/v20211218
+ freq_var=Amon/rlut
 echo $varlist_ignored | grep ${freq_var} 
++ grep Amon/rlut
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Amon/rlut
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlut/gr/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlut/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlut/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlut/gr/v20211218/rlut_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlut/gr/v20211218/rlut_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlut/gr/v20211218/rlut_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlut/gr/v20211218/rlut_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlut/gr/v20211218/rlut_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlut/gr/v20211218/rlut_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlut/gr/v20211218/rlut_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlut/gr/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlut/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlut/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlut/gr/v20211218/rlut_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlut/gr/v20211218/rlut_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlut/gr/v20211218/rlut_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlut/gr/v20211218/rlut_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlut/gr/v20211218/rlut_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlut/gr/v20211218/rlut_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlut/gr/v20211218/rlut_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlut/gr/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tosa/gr/v20211218
+ freq_var=Amon/tosa
 echo $varlist_ignored | grep ${freq_var} 
++ grep Amon/tosa
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Amon/tosa
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tosa/gr/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tosa/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tosa/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tosa/gr/v20211218/tosa_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tosa/gr/v20211218/tosa_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tosa/gr/v20211218/tosa_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tosa/gr/v20211218/tosa_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tosa/gr/v20211218/tosa_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tosa/gr/v20211218/tosa_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tosa/gr/v20211218/tosa_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tosa/gr/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tosa/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tosa/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tosa/gr/v20211218/tosa_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tosa/gr/v20211218/tosa_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tosa/gr/v20211218/tosa_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tosa/gr/v20211218/tosa_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tosa/gr/v20211218/tosa_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tosa/gr/v20211218/tosa_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tosa/gr/v20211218/tosa_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tosa/gr/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/psl/gr/v20211218
+ freq_var=Amon/psl
 echo $varlist_ignored | grep ${freq_var} 
++ grep Amon/psl
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Amon/psl
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/psl/gr/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/psl/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/psl/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/psl/gr/v20211218/psl_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/psl/gr/v20211218/psl_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/psl/gr/v20211218/psl_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/psl/gr/v20211218/psl_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/psl/gr/v20211218/psl_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/psl/gr/v20211218/psl_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/psl/gr/v20211218/psl_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/psl/gr/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/psl/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/psl/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/psl/gr/v20211218/psl_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/psl/gr/v20211218/psl_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/psl/gr/v20211218/psl_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/psl/gr/v20211218/psl_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/psl/gr/v20211218/psl_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/psl/gr/v20211218/psl_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/psl/gr/v20211218/psl_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/psl/gr/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/pr/gr/v20211218
+ freq_var=Amon/pr
 echo $varlist_ignored | grep ${freq_var} 
++ grep Amon/pr
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Amon/pr
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/pr/gr/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/pr/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/pr/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/pr/gr/v20211218/pr_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/pr/gr/v20211218/pr_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/pr/gr/v20211218/pr_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/pr/gr/v20211218/pr_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/pr/gr/v20211218/pr_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/pr/gr/v20211218/pr_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/pr/gr/v20211218/pr_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/pr/gr/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/pr/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/pr/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/pr/gr/v20211218/pr_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/pr/gr/v20211218/pr_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/pr/gr/v20211218/pr_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/pr/gr/v20211218/pr_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/pr/gr/v20211218/pr_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/pr/gr/v20211218/pr_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/pr/gr/v20211218/pr_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/pr/gr/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmax/gr/v20211218
+ freq_var=Amon/tasmax
 echo $varlist_ignored | grep ${freq_var} 
++ grep Amon/tasmax
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Amon/tasmax
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmax/gr/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmax/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmax/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmax/gr/v20211218/tasmax_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmax/gr/v20211218/tasmax_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmax/gr/v20211218/tasmax_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmax/gr/v20211218/tasmax_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmax/gr/v20211218/tasmax_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmax/gr/v20211218/tasmax_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmax/gr/v20211218/tasmax_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmax/gr/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmax/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmax/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmax/gr/v20211218/tasmax_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmax/gr/v20211218/tasmax_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmax/gr/v20211218/tasmax_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmax/gr/v20211218/tasmax_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmax/gr/v20211218/tasmax_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmax/gr/v20211218/tasmax_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmax/gr/v20211218/tasmax_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmax/gr/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/evspsbl/gr/v20211218
+ freq_var=Amon/evspsbl
 echo $varlist_ignored | grep ${freq_var} 
++ grep Amon/evspsbl
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Amon/evspsbl
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/evspsbl/gr/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/evspsbl/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/evspsbl/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/evspsbl/gr/v20211218/evspsbl_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/evspsbl/gr/v20211218/evspsbl_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/evspsbl/gr/v20211218/evspsbl_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/evspsbl/gr/v20211218/evspsbl_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/evspsbl/gr/v20211218/evspsbl_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/evspsbl/gr/v20211218/evspsbl_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/evspsbl/gr/v20211218/evspsbl_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/evspsbl/gr/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/evspsbl/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/evspsbl/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/evspsbl/gr/v20211218/evspsbl_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/evspsbl/gr/v20211218/evspsbl_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/evspsbl/gr/v20211218/evspsbl_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/evspsbl/gr/v20211218/evspsbl_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/evspsbl/gr/v20211218/evspsbl_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/evspsbl/gr/v20211218/evspsbl_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/evspsbl/gr/v20211218/evspsbl_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/evspsbl/gr/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsus/gr/v20211218
+ freq_var=Amon/rsus
 echo $varlist_ignored | grep ${freq_var} 
++ grep Amon/rsus
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Amon/rsus
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsus/gr/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsus/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsus/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsus/gr/v20211218/rsus_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsus/gr/v20211218/rsus_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsus/gr/v20211218/rsus_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsus/gr/v20211218/rsus_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsus/gr/v20211218/rsus_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsus/gr/v20211218/rsus_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsus/gr/v20211218/rsus_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsus/gr/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsus/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsus/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsus/gr/v20211218/rsus_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsus/gr/v20211218/rsus_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsus/gr/v20211218/rsus_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsus/gr/v20211218/rsus_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsus/gr/v20211218/rsus_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsus/gr/v20211218/rsus_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsus/gr/v20211218/rsus_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsus/gr/v20211218/.
+ for cmor_directory in '$(find . -maxdepth 9 -mindepth 9 -type d | grep "r${realization_index}i1p1f1" | grep -vE "fx")'
echo $cmor_directory | cut -f7-8 -d"/"
++ cut -f7-8 -d/
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsut/gr/v20211218
+ freq_var=Amon/rsut
 echo $varlist_ignored | grep ${freq_var} 
++ grep Amon/rsut
++ echo Eyr/fracLut Eyr/cVeg Eyr/cSoil Eyr/cLitter Eyr/cProduct
+ [[ -z '' ]]
echo ${varlist_monthly_instant} | grep ${freq_var}
++ grep Amon/rsut
++ echo SImon/sidivvel
+ [[ -n '' ]]
date --date "$Chunk_start_date  - $((2 * ($frequency_nctime) * $CHUNKSIZE - $CHUNKSIZE)) months" +%Y%m
++ date --date '19931201  - 5 months' +%Y%m
+ previous_chunk_start_date=19930701
+ mkdir -p /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsut/gr/v20211218
seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE))
++ seq 1 1 6
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 0 months ' +%Y%m
+ date=199307
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 0 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930701 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 1 months ' +%Y%m
+ date=199308
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 1 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930801 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 2 months ' +%Y%m
+ date=199309
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 2 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19930901 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 3 months ' +%Y%m
+ date=199310
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 3 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931001 -ge 19931101 ]]
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 4 months ' +%Y%m
+ date=199311
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 4 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931101 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsut/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsut/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsut/gr/v20211218/rsut_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsut/gr/v20211218/rsut_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsut/gr/v20211218/rsut_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsut/gr/v20211218/rsut_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsut/gr/v20211218/rsut_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsut/gr/v20211218/rsut_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsut/gr/v20211218/rsut_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199311-199311.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsut/gr/v20211218/.
+ for index_month in '$(seq 1 $CHUNKSIZE $((2 * $frequency_nctime * $CHUNKSIZE)))'
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months " +%Y%m
++ date -u --date '19930701 + 5 months ' +%Y%m
+ date=199312
date -u --date "$previous_chunk_start_date + $((index_month - 1)) months" +%Y
++ date -u --date '19930701 + 5 months' +%Y
+ year=1993
+ list_cmorfiles=
+ [[ 19931201 -ge 19931101 ]]
echo $cmor_directory | grep -vE "Oyr|Eyr"
++ grep -vE 'Oyr|Eyr'
++ echo ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsut/gr/v20211218
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsut/gr/v20211218 ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsut/gr/v20211218/rsut_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsut/gr/v20211218/rsut_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
ls ${cmor_directory}/*g?_${date}*nc
++ ls ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsut/gr/v20211218/rsut_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ list_cmorfiles=./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsut/gr/v20211218/rsut_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc
+ [[ ! -z ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsut/gr/v20211218/rsut_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ for cmorfile in '${list_cmorfiles[@]}'
+ [[ -n ./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsut/gr/v20211218/rsut_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc ]]
+ ln -sf /esarchive/exp/ecearth/t0ni/original_files/cmorfiles/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsut/gr/v20211218/rsut_Amon_EC-Earth3_piControl_r1i1p1f1_gr_199312-199312.nc /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/./CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsut/gr/v20211218/.
+ ls -lrt /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/clt/gr/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/evspsbl/gr/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfls/gr/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/hfss/gr/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prc/gr/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/pr/gr/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/prsn/gr/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/psl/gr/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlds/gr/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlus/gr/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rlut/gr/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsds/gr/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsdt/gr/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsus/gr/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/rsut/gr/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ta/gr/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tas/gr/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmax/gr/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tasmin/gr/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/tosa/gr/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/ua/gr/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/uas/gr/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/va/gr/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Amon/vas/gr/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/day/psl/gr/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Emon/tdps/gr/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/LImon/snw/gr/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Lmon/mrro/gr/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/calving/gn/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/evs/gn/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/ficeberg/gn/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/friver/gn/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfds/gn/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/hfevapds/gn/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/mlotst/gn/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/precip/gn/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/rsntds/gn/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/so/gn/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/sos/gn/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/subl/gn/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauuo/gn/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tauvo/gn/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/thetao/gn/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/tos/gn/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/uo/gn/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/vo/gn/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/wfonocorr/gn/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/Omon/zos/gn/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siconc/gn/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sispeed/gn/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sitemptop/gn/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sithick/gn/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siu/gn/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/siv/gn/v20211218 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0/CMIP/EC-Earth-Consortium/EC-Earth3/piControl/r1i1p1f1/SImon/sivol/gn/v20211218
+ nctxck -i /esarchive/software/nctime --max-processes -1 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
+ nctcck -i /esarchive/software/nctime --max-processes -1 /scratch/tmp/805828.tmpdir/t0ni/nctime/fc0
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
+ rm -rf /scratch/tmp/805828.tmpdir/t0ni/nctime

###################
# Autosubmit tailer
###################
set -xuve
+ set -xuve
echo $(date +%s) >> ${job_name_ptrn}_STAT
date +%s
++ date +%s
+ echo 1639863430
touch ${job_name_ptrn}_COMPLETED
+ touch /gpfs/scratch/bsc32/bsc32627/t0ni/LOG_t0ni/t0ni_19931101_fc0_2_NCTIME_COMPLETED
exit 0
+ exit 0
