Commit 3314cee9 authored by Paulo V C Medeiros's avatar Paulo V C Medeiros
Browse files

Fix paths in Fix_obsfiles DK, FI, IC, NO1 and NO2

parent 7919d88f
......@@ -2,13 +2,14 @@
#
set -x
cd /scratch/ms/se/smo/carra/conv
work_dir=/scratch/ms/se/snz/carra_vobs_2018_2019/carra_vobs_code/new_scripts
outdir="${work_dir}/outputs"
DTG1=$1
DTG2=$2
DTG=$DTG1
TXTPATH=/scratch/ms/se/smo/carra/conv/DK/
TXTPATH="${outdir}/generated_obs_files/DK"
while (( $DTG<=$DTG2 ))
do
......@@ -20,11 +21,11 @@ do
IY=$YY
IM=`perl -e "printf('%2.2i', '$MM')"`
FILE_OUT=$TXTPATH"obs_"$DTG".txt"
FILE_OUT="$TXTPATH/obs_$DTG.txt"
INFILE1="/scratch/ms/se/smo/carra/conv/DK/GCNET/"$IY"/gcnet_"$IY$IM".txt"
INFILE2="/scratch/ms/se/smo/carra/conv/DK/Geus/"$IY"/geus_"$IY$IM".txt"
INFILE3="/scratch/ms/se/smo/carra/conv/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
......
......@@ -2,18 +2,21 @@
#
set -x
cd /scratch/ms/se/smo/carra/conv
work_dir=/scratch/ms/se/snz/carra_vobs_2018_2019/carra_vobs_code/new_scripts
outdir="${work_dir}/outputs"
DTG1=$1
DTG2=$2
DTG=$DTG1
TXTPATH=/scratch/ms/se/smo/carra/conv/FI/
TXTPATH="${outdir}/generated_obs_files/FI"
rm -rf $TXTPATH
mkdir -p $TXTPATH
while (( $DTG<=$DTG2 ))
do
FILE_OUT=$TXTPATH"obs_"$DTG".txt"
FILE_OUT="$TXTPATH/obs_${DTG}.txt"
((BB = ${DTG} / 100))
((YY = $BB / 10000))
......@@ -22,7 +25,7 @@ do
IY=$YY
IM=`perl -e "printf('%2.2i', '$MM')"`
INFILE1="/scratch/ms/se/smo/carra/conv/FI/"$IY"/synopCARRA_FMI_"$IY$IM".txt"
INFILE1="${work_dir}/inputs/input_to_fix_obsfiles_scripts/FI/${IY}/synopCARRA_FMI_$IY$IM.txt"
grep $DTG $INFILE1 > $FILE_OUT
......
......@@ -2,18 +2,21 @@
#
set -x
cd /scratch/ms/se/smo/carra/conv
work_dir=/scratch/ms/se/snz/carra_vobs_2018_2019/carra_vobs_code/new_scripts
outdir="${work_dir}/outputs"
DTG1=$1
DTG2=$2
DTG=$DTG1
TXTPATH=/scratch/ms/se/smo/carra/conv/IC/
TXTPATH="${outdir}/generated_obs_files/IC"
rm -rf $TXTPATH
mkdir -p $TXTPATH
while (( $DTG<=$DTG2 ))
do
FILE_OUT=$TXTPATH"obs_"$DTG".txt"
FILE_OUT="$TXTPATH/obs_${DTG}.txt"
((BB = ${DTG} / 100))
((YY = $BB / 10000))
......@@ -22,7 +25,7 @@ do
IY=$YY
IM=`perl -e "printf('%2.2i', '$MM')"`
INFILE1="/scratch/ms/se/smo/carra/conv/IC/"$IY"/carra_iceland_"$IY"_"$IM".txt"
INFILE1="${work_dir}/inputs/input_to_fix_obsfiles_scripts/IC/${IY}/carra_iceland_$IY_$IM.txt"
grep $DTG $INFILE1 > $FILE_OUT
......
......@@ -2,18 +2,21 @@
#
set -x
cd /scratch/ms/se/smo/carra/conv
work_dir=/scratch/ms/se/snz/carra_vobs_2018_2019/carra_vobs_code/new_scripts
outdir="${work_dir}/outputs"
DTG1=$1
DTG2=$2
DTG=$DTG1
TXTPATH=/scratch/ms/se/smo/carra/conv/NO/
TXTPATH="${outdir}/generated_obs_files/NO"
rm -rf $TXTPATH
mkdir -p $TXTPATH
while (( $DTG<=$DTG2 ))
do
FILE_OUT=$TXTPATH"carra_Norway_synop_"$DTG".txt"
FILE_OUT="$TXTPATH/carra_Norway_synop_$DTG.txt"
((BB = ${DTG} / 100))
((YY = $BB / 10000))
......@@ -22,7 +25,7 @@ do
IY=$YY
IM=`perl -e "printf('%2.2i', '$MM')"`
INFILE1="/scratch/ms/se/smo/carra/conv/NO/"$IY"/carra_Norway_synop_"$IY$IM".txt"
INFILE1="${work_dir}/inputs/input_to_fix_obsfiles_scripts/NO/${IY}/carra_Norway_synop_$IY$IM.txt"
grep $DTG $INFILE1 > $FILE_OUT
......
......@@ -2,18 +2,20 @@
#
set -x
cd /scratch/ms/se/smo/carra/conv
work_dir=/scratch/ms/se/snz/carra_vobs_2018_2019/carra_vobs_code/new_scripts
outdir="${work_dir}/outputs"
DTG1=$1
DTG2=$2
DTG=$DTG1
TXTPATH=/scratch/ms/se/smo/carra/conv/NO/
TXTPATH="${outdir}/generated_obs_files/NO"
mkdir -p $TXTPATH
while (( $DTG<=$DTG2 ))
do
FILE_OUT=$TXTPATH"carra_Norway_SA_RR24_"$DTG".txt"
FILE_OUT="$TXTPATH/carra_Norway_SA_RR24_$DTG.txt"
((BB = ${DTG} / 100))
((YY = $BB / 10000))
......@@ -22,7 +24,7 @@ do
IY=$YY
IM=`perl -e "printf('%2.2i', '$MM')"`
INFILE1="/scratch/ms/se/smo/carra/conv/NO/"$IY"/carra_Norway_SA_RR24_"$IY$IM".txt"
INFILE1="${work_dir}/inputs/input_to_fix_obsfiles_scripts/NO/${IY}/carra_Norway_SA_RR24_$IY$IM.txt"
grep $DTG $INFILE1 > $FILE_OUT
......
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