$ ls
MGDSST.AlongTrack/ MSM.CrossSection.GrADS.zip Ship.track/
MSM.CrossSection.GrADS/ MSM.profiles.at.Stations/
cd Ship.track/
$ ls
20110522.DAT TBL101_to_txt.run.sh nagasaki.maru.meteo.run.sh
20110523.DAT makefile
TBL101_to_txt.f90 nagasaki.maru.meteo.f90
$ make
if [ ! -d ../obj ]; then \
mkdir -p ../obj ; \
fi
ifort -o nagasaki.maru.meteo ../obj/nagasaki.maru.meteo.o -module ../obj
ifort -o TBL101_to_txt ../obj/TBL101_to_txt.o -module ../obj
$ cat nagasaki.maru.meteo.run.sh
#!/bin/sh
exe=nagasaki.maru.meteo
namelist=namelist.${exe}
indir=/work2/kunoki/to_manda_sensei/Data/ECS_OBS/Ship_weather
in=20110522.DAT
out=$(basename $in .DAT).raw.txt
cat <<EOF > $namelist
¶
infle="${in}" ! input file
&end
EOF
echo Input: ${indir}/${in}
echo Output: ${out}
$exe < $namelist > $out
exit 0
$ chmod u+x *.sh
$ head -2 20110522.DAT
#"日付","時刻","緯度","経度","波高","周期","真風向","風速","気温","水温","気圧","ジャイロ方位","速力"
"2011/05/22","00:00:00","26°14.374'N","127°40.758'E",0.4,10,14.5,1.5,24.2,23.5,1011.5,0.2,0
$ nagasaki.maru.meteo.run.sh
Input: /work2/kunoki/to_manda_sensei/Data/ECS_OBS/Ship_weather/20110522.DAT
Output: 20110522.raw.txt
$ head -2 20110522.raw.txt
# date(yyyy,mm,dd) time_JST(hh,mm) lat(dd,mm.mmm) lon(ddd,mm.mmm) wh(m) wp(s) wd(deg) ws(knot) ta(degC) ts(degC) p(hPa) gyr ss
2011 05 22 00 00 00 26 14.374 127 40.758 0.4 10.0 14.500 1.5 24.20 23.5 1011.5 0.2 0.0
$ cat nagasaki.maru.meteo.run.sh
#!/bin/sh
exe=nagasaki.maru.meteo
namelist=namelist.${exe}
indir=/work2/kunoki/to_manda_sensei/Data/ECS_OBS/Ship_weather
in=20110523.DAT
out=$(basename $in .DAT).raw.txt
cat <<EOF > $namelist
¶
infle="${in}" ! input file
&end
EOF
echo Input: ${indir}/${in}
echo Output: ${out}
$exe < $namelist > $out
exit 0
$ head -2 20110523.DAT
#"日付","時刻","緯度","経度","波高","周期","真風向","風速","気温","水温","気圧","ジャイロ方位","速力"
"2011/05/23","00:00:00","27°47.534'N","126°51.515'E",0.4,10,141.1,14.6,25,26.1,1010.4,31.5,13.9
$ nagasaki.maru.meteo.run.sh
Input: /work2/kunoki/to_manda_sensei/Data/ECS_OBS/Ship_weather/20110523.DAT
Output: 20110523.raw.txt
$ head -2 20110523.raw.txt
# date(yyyy,mm,dd) time_JST(hh,mm) lat(dd,mm.mmm) lon(ddd,mm.mmm) wh(m) wp(s) wd(deg) ws(knot) ta(degC) ts(degC) p(hPa) gyr ss
2011 05 23 00 00 00 27 47.534 126 51.515 0.4 10.0 141.100 14.6 25.00 26.1 1010.4 31.5 13.9