uhdas_00_linkmerge 904 Bytes
Newer Older
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
#!/bin/csh -f
#
# bak in Amsterdam before start of jc184 uhdas trial
# 3 July 2019
#
# 1) rsync uhdas data from uhdas server to local machine
#
# 2) ensure postprocessing directories exist
#
# If the script hasn't been run recently, there will 
# be a lot of files to sync across. The processing on the uhdas
# server updates plenty of things in routine processing every few minutes.
# If the script is then immediately run again, there will be a few files
# that are updated every ping.
#
# List of cruise segments to be processed is found in
# ~/cruise/data/vmadcp/cruise_segments

cd /local/users/pstar/cruise/data/vmadcp/spprocessing

foreach i (`cat ~/cruise/data/vmadcp/cruise_segments`)
echo linking ${i} to $1
link_uhdaslegs.py ../atsea/${i} $1
end

if (! -e config) then
mkdir config
cp ../atsea/${i}/raw/config/*_proc.py config/$1_proc.py
echo 'edit config/*proc.py cruiseid, uhdas_dir'
endif