1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash
#
# bak in Amsterdam before start of jc184 uhdas trial
# 3 July 2019
#
# This is run as a bash, because we want the adcp_nc.py to run in the
# python 3 environment
#
# This script remakes the contour/os150nb.nc file after dataviewer editing
#
# List of cruise segments to be processed is found in
# ~/cruise/data/vmadcp/cruise_segments
#
# make sure the bash environment is set up
source ~/.bashrc
# no set command in bash
ldir=~/cruise/data/vmadcp
for segname in `cat ~/cruise/data/vmadcp/cruise_segments`
do
pushd ${ldir}/postprocessing/${segname}/proc_editing
for pingtype in `ls -d *`
do
echo ${segname}/${pingtype}
data=0
if test -f ${ldir}/postprocessing/${segname}/proc_editing/${pingtype}/adcpdb/*dir.blk
then
data=1
fi
echo data ${data}
if [ ${data} -eq 1 ]
then
pushd ${ldir}/postprocessing/${segname}/proc_editing/${pingtype}
thisdir=`pwd`
echo working in ${thisdir}
thisdir=`pwd`
echo adcp_nc.py in ${thisdir}
which adcp_nc.py
adcp_nc.py adcpdb contour/${pingtype} jc191 ${pingtype}
thisdir=`pwd`
echo quick_adcp.py in ${thisdir}
which quick_adcp.py
quick_adcp.py --steps2rerun matfiles --auto
popd
fi
done
popd
done