Commit 92532b7f authored by saeed's avatar saeed
Browse files

m

parent 1a339b64
......@@ -6,23 +6,22 @@
module add odb/1.0.3
module add odb_api/0.19.1
. ./functionsodb.sh
do_era5=0
do_precise=1
do_only_monthy=1
use_report_file=0
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-01"
enddate="2017-01-06"
enddate="2018-01-06"
time_cycle="12"
PRECISE_ODB_DIR="/scratch/ms/se/smdk/scratchdir/"
OUTPUT_DIR="/home/ms/se/smdk/odb_panel/OUTPUT"
path_cycle="/home/ms/se/smdk/odb_panel/bin/"
path_bin="/home/ms/se/smdk/odb_panel/bin/"
if [ ${use_report_file} -eq 1 ];then
if [ ! -f ${report_type_filename} ];then
......@@ -35,8 +34,10 @@ fi
checkmonthly=`ismonthly ${startdate} ${enddate}`
if [ ${do_only_monthy} -eq 1 -a ${checkmonthly} -eq 0 ];then
echo
echo "you chose the monthly data retrieval from mars"
echo "please adjust the startdate ${startdate} or enddate ${enddate} so that they have the same month and the same year"
echo
exit
fi
......@@ -95,7 +96,7 @@ if [ ${do_era5} -eq 1 ];then
nc=`echo ${time_cycle} | awk -F',' '{print NF}'`
for nf in `seq 1 ${nc}`;do
vb=`echo ${time_cycle} | cut -d, -f${nf}`
${path_cycle}/era5_cycle.exe ${fout} ${vb}
${path_bin}/era5_cycle.exe ${fout} ${vb}
fout_cycle=`output_name_cycle ${fout} ${vb}`
#echo "fout_cycle ${fout_cycle}"
mv ${fout_cycle} ${OUTPUT_DIR} 2>/dev/null
......@@ -110,7 +111,7 @@ fi
rm -f start_end.dat 2>/dev/null
./bin/date_range.exe ${startdate_out} ${enddate_out}
${path_bin}/date_range.exe ${startdate_out} ${enddate_out}
if [ ! -f start_end.dat ];then
echo "start_end.dat file does not exist"
......
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