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
9efb63c8
Commit
9efb63c8
authored
4 years ago
by
das
Browse files
Options
Download
Email Patches
Plain Diff
Changes made during JC192
parent
7ea0612b
dy120
jc192
No related merge requests found
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
64 additions
and
25 deletions
+64
-25
backup_core_local
backup_core_local
+1
-1
commands/mstar_dotcshrc
commands/mstar_dotcshrc
+1
-1
ctd_linkscript
ctd_linkscript
+25
-17
keep_akeake_in_sync
keep_akeake_in_sync
+3
-3
rapid_backup
rapid_backup
+3
-3
rapid_get_weather
rapid_get_weather
+31
-0
No files found.
backup_core_local
View file @
9efb63c8
...
...
@@ -42,7 +42,7 @@ echo ------------- >> $backuplog
echo Syncing $root_path to $sync_dir >> $backuplog
echo Start `date` >> $backuplog
rsync -v -a --delete -b --backup-dir=$back_dir $root_path $sync_dir
rsync -v -a --delete
--exclude '._*' --exclude '.DS_Store'
-b --backup-dir=$back_dir $root_path $sync_dir
set how_much1 = `du -sm $sync_dir`
set how_much2 = `du -sm $back_dir`
...
...
This diff is collapsed.
Click to expand it.
commands/mstar_dotcshrc
View file @
9efb63c8
...
...
@@ -24,4 +24,4 @@ set dhome = /local/users/pstar/cruise
if (! $?cdpath )set cdpath
set cdpath = (. $dhome/data $dhome $cdpath)
set prompt="$user@`hostname` %
/
> "
set prompt="$user@`hostname` %
c3
> "
This diff is collapsed.
Click to expand it.
ctd_linkscript
View file @
9efb63c8
...
...
@@ -2,25 +2,24 @@
#
#copy the raw and SBE-processed CTD files from the ship machine
#then make links to the files to be ingested by mexec using the expected name format
cd /local/users/pstar/cruise/data
set cpre = 'CTD_JC19
1
'
set c
ruise = jc191
#
set c
tdloc = /local/users/pstar/mounts/mnt_cruise_data/Specific_Equipment/CTD/
set ctdloc = /local/users/pstar/mounts/mnt_cruise_data/Specific_Equipment/CTD/
CTD # jc191 CTD appears twice in the directory name
# May need to edit the following lines on a new cruise
#
set cpre = 'CTD_JC19
2
'
set c
pre = 'JC192_CTD'
set c
ruise = jc192
set ctdloc = /local/users/pstar/mounts/mnt_cruise_data/Specific_Equipment/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\
D
ata/${cpre}_???.cnv ctd/ASCII_FILES/
rsync -av ${ctdloc}/Processed\
d
ata/${cpre}_???.cnv ctd/ASCII_FILES/
#rsync -av ${ctdloc}/Processed\ Data/${cpre}_???_Align.cnv ctd/ASCII_FILES/
rsync -av ${ctdloc}/Processed\
D
ata/${cpre}_???_Align_CTM.cnv ctd/ASCII_FILES/
rsync -av ${ctdloc}/Raw\
D
ata/*.bl ctd/ASCII_FILES/
rsync -av ${ctdloc}/Processed\
D
ata/${cpre}*.ros ctd/ASCII_FILES/
rsync -av ${ctdloc}/Raw\
D
ata/*.hex ctd/RAW_CTD_FILES/
rsync -av ${ctdloc}/Raw\
D
ata/*.XMLCON ctd/RAW_CTD_FILES/
rsync -av ${ctdloc}/Raw\
D
ata/*.hdr ctd/RAW_CTD_FILES/
rsync -av ${ctdloc}/Processed\
D
ata/${cpre}*.btl ctd/ASCII_FILES/
rsync -av ${ctdloc}/Processed\
d
ata/${cpre}_???_Align_CTM.cnv ctd/ASCII_FILES/
rsync -av ${ctdloc}/Raw\
d
ata/*.bl ctd/ASCII_FILES/
rsync -av ${ctdloc}/Processed\
d
ata/${cpre}*.ros ctd/ASCII_FILES/
rsync -av ${ctdloc}/Raw\
d
ata/*.hex ctd/RAW_CTD_FILES/
rsync -av ${ctdloc}/Raw\
d
ata/*.XMLCON ctd/RAW_CTD_FILES/
rsync -av ${ctdloc}/Raw\
d
ata/*.hdr ctd/RAW_CTD_FILES/
rsync -av ${ctdloc}/Processed\
d
ata/${cpre}*.btl ctd/ASCII_FILES/
rsync -av ${ctdloc}/SBE35\ data/SBE35_???.cap ctd/ASCII_FILES/SBE35
cd ctd/ASCII_FILES
foreach i (`ls ${cpre}_???_Align_CTM.cnv`)
...
...
@@ -53,4 +52,13 @@ foreach i (`ls ${cpre}_???.cnv`)
endif
end
cd ../..
cd SBE35
foreach i (`ls 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
if (! -e $linkfile) then
echo Making link $linkfile for raw file $i
ln -s $i $linkfile
endif
end
This diff is collapsed.
Click to expand it.
keep_akeake_in_sync
View file @
9efb63c8
...
...
@@ -4,7 +4,7 @@
#
# The directores to sync
set dir_list = 'jc1
74
rapid users'
set dir_list = 'jc1
92
rapid users'
set local_path = /local/users/pstar/rpdmoc/
set remote_fs = 'pstar@akeake:'
set remote_path = /local/users/pstar/rpdmoc/
...
...
@@ -15,7 +15,7 @@ foreach dd ($dir_list)
echo Going to sync: $local_path$dd
echo to: $remote_fs$remote_path
echo Start `date`
rsync -v -a --delete $local_path$dd $remote_fs$remote_path
rsync -v -a
--exclude '._*' --exclude '.DS_Store'
--delete $local_path$dd $remote_fs$remote_path
end
# Sync all of the programs directory
...
...
@@ -28,5 +28,5 @@ echo ' -------------- '
echo Going to sync: $local_path
echo to: $remote_fs$remote_path
echo Start `date`
rsync -v -a --delete $local_path $remote_fs$remote_path
rsync -v -a
--exclude '._*' --exclude '.DS_Store'
--delete $local_path $remote_fs$remote_path
This diff is collapsed.
Click to expand it.
rapid_backup
View file @
9efb63c8
...
...
@@ -14,14 +14,14 @@
# - $cru
# Variables for pathnames
set cru = jc1
74
set CRU = JC1
74
set cru = jc1
92
set CRU = JC1
92
set root = /local/users/pstar/
set rapiddir = 'rapid' # Could be osnap
set usersdir = 'users'
set progdir = 'programs'
set deskdir = 'Desktop'
set exec_loc = ${root}
cruise/data/exec/rapid
/
set exec_loc = ${root}
programs/mexec-exec
/
# Which drive are we using and is it there?
echo ' '
...
...
This diff is collapsed.
Click to expand it.
rapid_get_weather
0 → 100755
View file @
9efb63c8
# Get some weather forecasts
#!/bin/csh
#
# Map choices are
# - "canaries" - for the easetern boundary
# - "arc" - from EB1 to WB6
# - "Florida" - for the western boundary
# Other options are
# "azores", "biscay", ....
set mapc = 'biscay'
cd /local/users/pstar/Public/jc192_weather
set now = `date +%Y`-`date +%m`-`date +%d`-`date +%H`
echo $now
mkdir $now
cd $now
# Whole North Atlantic Pressure
wget https://www.passageweather.com/maps/natlantic/press/pressure.zip
# Then our chosen area
wget https://www.passageweather.com/maps/$mapc/wind/wind.zip
wget https://www.passageweather.com/maps/$mapc/waves/waves.zip
# Now organsie the plots
mkdir pressure
unzip pressure.zip
mv *.png pressure
mkdir wind
unzip wind.zip
mv *.png wind
mkdir waves
unzip waves.zip
mv *.png waves
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