Commit 7e04e891 authored by Loic Houpert's avatar Loic Houpert
Browse files

edit ctd and technsas linkscript

parent 04a3d21b
......@@ -5,25 +5,24 @@
cd /local/users/pstar/cruise/data
# May need to edit the following lines on a new cruise
#set cpre = 'CTD_JC192'
set cpre = 'JC192_CTD'
set cruise = jc192
set ctdloc = /local/users/pstar/mounts/mnt_cruise_data/Specific_Equipment/CTD/
set cpre = 'DY120'
set cruise = dy120
set ctdloc = /mnt/discofs/Sensors_and_Moorings/CTD
#set ctdloc = /local/users/pstar/mounts/mnt_cruise_data/Specific_Equipment/CTD/CTD # jc191 CTD appears twice in the directory name
#bak jc191 we don't want all the cnvs with derived quantities, so explicitly pick up the raw and align_ctm
rsync -av ${ctdloc}/Processed\ data/${cpre}_???.cnv ctd/ASCII_FILES/
#rsync -av ${ctdloc}/Processed\ Data/${cpre}_???_Align.cnv ctd/ASCII_FILES/
rsync -av ${ctdloc}/Processed\ data/${cpre}_???_Align_CTM.cnv ctd/ASCII_FILES/
rsync -av ${ctdloc}/Raw\ data/*.bl ctd/ASCII_FILES/
rsync -av ${ctdloc}/Processed\ data/${cpre}*.ros ctd/ASCII_FILES/
rsync -av ${ctdloc}/Raw\ data/*.hex ctd/RAW_CTD_FILES/
rsync -av ${ctdloc}/Raw\ data/*.XMLCON ctd/RAW_CTD_FILES/
rsync -av ${ctdloc}/Raw\ data/*.hdr ctd/RAW_CTD_FILES/
rsync -av ${ctdloc}/Processed\ data/${cpre}*.btl ctd/ASCII_FILES/
rsync -av ${ctdloc}/SBE35\ data/SBE35_???.cap ctd/ASCII_FILES/SBE35
rsync -av ${ctdloc}/Processed_Data/${cpre}_???.cnv ctd/ASCII_FILES/
rsync -av ${ctdloc}/Processed_Data/${cpre}_???_align_CTM.cnv ctd/ASCII_FILES/
rsync -av ${ctdloc}/Raw_Data/*.bl ctd/ASCII_FILES/
rsync -av ${ctdloc}/Processed_Data/${cpre}*.ros ctd/ASCII_FILES/
rsync -av ${ctdloc}/Raw_Data/*.hex ctd/RAW_CTD_FILES/
rsync -av ${ctdloc}/Raw_Data/*.XMLCON ctd/RAW_CTD_FILES/
rsync -av ${ctdloc}/Raw_Data/*.hdr ctd/RAW_CTD_FILES/
rsync -av ${ctdloc}/Processed_Data/${cpre}*.btl ctd/ASCII_FILES/
rsync -av ${ctdloc}/SBE35_raw/${cpre}_SBE35_???.cap ctd/ASCII_FILES/SBE35
cd ctd/ASCII_FILES
foreach i (`ls ${cpre}_???_Align_CTM.cnv`)
set num = `awk -v nm="$i" 'BEGIN {print substr(nm,index(nm,"_Align")-3,3)}'`
foreach i (`ls ${cpre}_???_align_CTM.cnv`)
set num = `awk -v nm="$i" 'BEGIN {print substr(nm,index(nm,"_align")-3,3)}'`
set linkfile = ctd_${cruise}_${num}_ctm.cnv
#echo $linkfile
if (! -e $linkfile) then
......@@ -53,7 +52,7 @@ foreach i (`ls ${cpre}_???.cnv`)
end
cd SBE35
foreach i (`ls SBE35_???.cap`)
foreach i (`ls ${cpre}_SBE35_???.cap`)
set num = `awk -v nm="$i" 'BEGIN {print substr(nm,index(nm,".cap")-3,3)}'`
set linkfile = sbe35_${cruise}_${num}.asc
#echo $linkfile
......
......@@ -26,13 +26,13 @@ foreach techfile (`/bin/ls ../netcdf_files_rawdir/*/*`)
if ( -s $techfile) then
set sss = ` /bin/ls -l $techfile`
set ss2 = `echo $sss | awk '{print $5}'`
if ($ss2 > 10000) then
if ($ss2 > 100) then
echo " making link $linkfile for raw file $techfile " >>! $link_log
echo " making link $linkfile for raw file $techfile "
ln -s $techfile $linkfile
else
echo " ignoring $linkfile length $ss2 is less than 10k bytes " >>! $link_log
echo " ignoring $linkfile length $ss2 is less than 10k bytes "
echo " ignoring $linkfile length $ss2 is less than 0.1k bytes " >>! $link_log
echo " ignoring $linkfile length $ss2 is less than 0.1k bytes "
echo " link command would have been ln -s $techfile $linkfile " >>! $link_log
echo " link command would have been ln -s $techfile $linkfile "
endif
......
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