Commit 557cc051 authored by Sebastian Milinski's avatar Sebastian Milinski
Browse files

updates to 6h-processing

parent cd754782
......@@ -33,7 +33,7 @@ yrlast=1999
#
#
direxp=/work/mh1007/MPI-GE/onepct
dirout=/work/mh0033/m300265/processed_thesis/onepct/hf_output_test
dirout=/work/mh0033/m300265/processed_thesis/onepct/hf_output
dirtmp=$SCRATCH/onepct
mkdir -p $direxp
......@@ -41,6 +41,8 @@ mkdir -p $dirtmp
var=precip
dir_final=/work/mh1007/MPI-GE_processed/onepct/hf_output/${var}
mkdir -p $dir_final
###
#
......@@ -126,11 +128,17 @@ for ensdesc in $(seq -f "%04g" ${ensfirst} 1 ${enslast}); do
tend=$(date +%s)
tdiff=$(echo "scale=2; ($tend - $tstart)/60" | bc)
echo "Merge years into single file..."
ifiles=${dirout}/onepct-${var}_${ensdesc}_????.grb
ofile=${dir_final}/onepct_${yrfirst}-${yrlast}_ens_${ensdesc}.${var}.nc
cdo -f nc -t echam6 mergetime $ifiles $ofile
echo
echo "created $ofile"
echo "*"
echo "* `date +%T` --- ${tdiff}m"
echo "*"
done
......
#!/bin/bash
# this script only performs the merge step from the gather_6h_precip.sh script.
# It should not be necessary to run this script. Only if merging was deactivated or failed, running only this step saves a lot of time.
ensfirst=69
enslast=100
# years: 1850 to 1999
#
yrfirst=1850
yrlast=1999
dirout=/work/mh0033/m300265/processed_thesis/onepct/hf_output
var=precip
dir_final=/work/mh1007/MPI-GE_processed/onepct/hf_output/${var}
echo "Merge years into single file..."
for ensdesc in $(seq -f "%04g" ${ensfirst} 1 ${enslast}); do
echo "member: $ensdesc"
ifiles=${dirout}/onepct-${var}_${ensdesc}_????.grb
ofile=${dir_final}/onepct_${yrfirst}-${yrlast}_ens_${ensdesc}.${var}.nc
cdo -f nc -t echam6 mergetime $ifiles $ofile
done
......@@ -21,8 +21,8 @@ ncore=4
# 6h output: member 69 to 100
#
ensfirst=69
enslast=69
ensfirst=100
enslast=100
# years: 1850 to 1999
#
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment