Blame | Last modification | View Log | Download | RSS feed
expdir=/group_workspaces/jasmin2/incompass/users/ambrogio
lagrdir=Lagranto_files/incompass
nddiagdir=NDdiag_files/NDdiag4Lagranto
joblist=("b956_11jun")
date=20160611
for job in "${joblist[@]}" ; do
echo ${job}
echo "Creating P and S files"
cd ${expdir}/${lagrdir}
for ifile in ${expdir}/${nddiagdir}/${date}*;do
echo $ifile
${LAGRANTO}/convert/ppconvert.sh ${date} $ifile
done
#if hourly files
echo "Eliminating minutes from P&S filenames"
for ifile in ${expdir}/${lagrdir}/?201606??_??00;do
echo $ifile
n=${ifile%00}
echo $n
mv $ifile $n
done
mkdir ${expdir}/${lagrdir}/trajectories
mv P* ${expdir}/${lagrdir}/trajectories/.
mv S* ${expdir}/${lagrdir}/trajectories/.
mv *cst ${expdir}/${lagrdir}/trajectories/.
mv fort* ${expdir}/${lagrdir}/trajectories/.
done