Commit fa36cb60 authored by saeed's avatar saeed
Browse files

m

parent e4a63fda
......@@ -66,6 +66,13 @@ function output_name_thin(){
fout_cycle=${fout}"_cycle""${cycle}""_thin"".txt"
echo ${fout_cycle}
}
function output_name_thin_precise(){
fin=${1}
cycle=${2}
fout=${fin/".txt"/}
fout_cycle=${fout}"_thin"".txt"
echo ${fout_cycle}
}
function ismonthly(){
......
......@@ -8,22 +8,28 @@ module add odb/1.0.3
module add odb_api/0.19.1
. ./functionsodb.sh
do_era5=1
do_precise=0
do_era5=0
do_precise=1
do_only_monthy=0
use_report_file=0 ###if you want to have a list of report types in a file
report_type_filename="report_type_list"
list_report=(16001)
startdate="2017-01-05"
enddate="2017-01-07"
time_cycle="00,12"
startdate="2017-01-06"
enddate="2017-01-06"
time_cycle="12"
PRECISE_ODB_DIR="/scratch/ms/se/smdk/scratchdir/"
OUTPUT_DIR="/home/ms/se/smdk/odb_panel/OUTPUT"
OUTPUT_DIR_THIN="/home/ms/se/smdk/odb_panel/OUTPUT_THIN"
path_bin="/home/ms/se/smdk/odb_panel/bin/"
if [ ! -d ${path_bin} ];then
echo "path to the binary ${path_bin} does not exist so we exit"
exit
fi
if [ ! -d ${OUTPUT_DIR} ];then
mkdir -p ${OUTPUT_DIR}
fi
......@@ -216,6 +222,15 @@ if [ ${do_precise} -eq 1 ];then
done
done
cd ${HERE_P}
if [ -f ${OUTPUT_DIR}/${fout} ];then
${path_bin}/thinprecise ${OUTPUT_DIR}/${fout}
fout_thin=`output_name_thin_precise ${fout}`
echo ${fout_thin}
if [ -f ${fout_thin} ];then
mv ${fout_thin} ${OUTPUT_DIR_THIN}
fi
fi
cd ${HERE_P}
fi
done
done
......
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