Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
locupe
mexec_exec
Commits
7e04e891
Commit
7e04e891
authored
4 years ago
by
Loic Houpert
Browse files
Options
Download
Email Patches
Plain Diff
edit ctd and technsas linkscript
parent
04a3d21b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
19 deletions
+18
-19
ctd_linkscript
ctd_linkscript
+15
-16
techsas_linkscript
techsas_linkscript
+3
-3
No files found.
ctd_linkscript
View file @
7e04e891
...
...
@@ -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}_???_
A
lign_CTM.cnv`)
set num = `awk -v nm="$i" 'BEGIN {print substr(nm,index(nm,"_
A
lign")-3,3)}'`
foreach i (`ls ${cpre}_???_
a
lign_CTM.cnv`)
set num = `awk -v nm="$i" 'BEGIN {print substr(nm,index(nm,"_
a
lign")-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
...
...
This diff is collapsed.
Click to expand it.
techsas_linkscript
View file @
7e04e891
...
...
@@ -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 > 100
00
) 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
1
0k bytes " >>! $link_log
echo " ignoring $linkfile length $ss2 is less than
1
0k bytes "
echo " ignoring $linkfile length $ss2 is less than 0
.1
k bytes " >>! $link_log
echo " ignoring $linkfile length $ss2 is less than 0
.1
k bytes "
echo " link command would have been ln -s $techfile $linkfile " >>! $link_log
echo " link command would have been ln -s $techfile $linkfile "
endif
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment