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

Copy Esbjorn's Fix_obsfiles_SE script to use as template

parent c69aec25
#!/bin/ksh
#
set -x
cd /scratch/ms/se/smo/carra/conv
DTG1=$1
DTG2=$2
DTG=$DTG1
TXTPATH=$PERM/carra_esbjorn_scrpts/carra/smo_carra_conv/data_files
while (( $DTG<=$DTG2 ))
do
FILE_OUT=$TXTPATH/"obs_"$DTG".txt"
((BB = ${DTG} / 100))
((YY = $BB / 10000))
((MM = ( $BB - $YY*10000) / 100))
IY=$YY
IM=`perl -e "printf('%2.2i', '$MM')"`
INFILE1="/scratch/ms/se/smo/carra/conv/SE/"$IY"/carra_Sweden_"$IY$IM".txt"
grep $DTG $INFILE1 > $FILE_OUT
DTG=$(/home/ms/se/smo/bin/mandtg.x $DTG + 01)
done
exit
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