Commit 00f38ad6 authored by Paulo V C Medeiros's avatar Paulo V C Medeiros
Browse files

Adapt Fix_obsfiles_DK.ksh to available data

Adapt the fix_obsfiles_scripts/Fix_obsfiles_DK.ksh for the DK data
I have available currently.
parent 5549e58a
......@@ -11,10 +11,15 @@ DTG2=$2
DTG=$DTG1
TXTPATH="${outdir}/generated_obs_files/DK"
rm -rf $TXTPATH
mkdir -p $TXTPATH
while (( $DTG<=$DTG2 ))
do
FILE_OUT="$TXTPATH/obs_$DTG.txt"
rm -f $FILE_OUT
((BB = ${DTG} / 100))
((YY = $BB / 10000))
((MM = ( $BB - $YY*10000) / 100))
......@@ -22,16 +27,18 @@ do
IY=$YY
IM=`perl -e "printf('%2.2i', '$MM')"`
FILE_OUT="$TXTPATH/obs_$DTG.txt"
rm -f $FILE_OUT
INFILE1="${work_dir}/inputs/input_to_fix_obsfiles_scripts/DK/GCNET/$IY/gcnet_${IY}${IM}.txt"
INFILE2="${work_dir}/inputs/input_to_fix_obsfiles_scripts/DK/Geus/$IY/geus_${IY}${IM}.txt"
INFILE3="${work_dir}/inputs/input_to_fix_obsfiles_scripts/DK/Asiaq/$IY/Asiaq_${IY}${IM}.txt"
#INFILE1="${work_dir}/inputs/input_to_fix_obsfiles_scripts/DK/GCNET/$IY/gcnet_${IY}${IM}.txt"
#INFILE2="${work_dir}/inputs/input_to_fix_obsfiles_scripts/DK/Geus/$IY/geus_${IY}${IM}.txt"
#INFILE3="${work_dir}/inputs/input_to_fix_obsfiles_scripts/DK/Asiaq/$IY/Asiaq_${IY}${IM}.txt"
#grep $DTG $INFILE1 > $FILE_OUT
#grep $DTG $INFILE2 >> $FILE_OUT
#grep $DTG $INFILE3 >> $FILE_OUT
INFILE="${work_dir}/inputs/input_to_fix_obsfiles_scripts/DK/${IY}/synop_${BB}.txt"
grep $DTG $INFILE1 > $FILE_OUT
grep $DTG $INFILE2 >> $FILE_OUT
grep $DTG $INFILE3 >> $FILE_OUT
grep $DTG $INFILE > $FILE_OUT
DTG=$(/home/ms/se/smo/bin/mandtg.x $DTG + 01)
......
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