Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TSG QC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
US191
TSG QC
Commits
5d34e140
Commit
5d34e140
authored
14 years ago
by
jacques.grelet_ird.fr
Browse files
Options
Downloads
Patches
Plain Diff
remove dm_processing directory
parent
f1472761
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dm_processing/Delayed_Mode_Processing_TSG_GOSUD.xlsx
+0
-0
0 additions, 0 deletions
dm_processing/Delayed_Mode_Processing_TSG_GOSUD.xlsx
dm_processing/get_cm_from_dm.m
+0
-88
0 additions, 88 deletions
dm_processing/get_cm_from_dm.m
with
0 additions
and
88 deletions
dm_processing/Delayed_Mode_Processing_TSG_GOSUD.xlsx
deleted
100644 → 0
+
0
−
0
View file @
f1472761
File deleted
This diff is collapsed.
Click to expand it.
dm_processing/get_cm_from_dm.m
deleted
100644 → 0
+
0
−
88
View file @
f1472761
% get_cm_from_dm.m
% J Grelet US191 - IRD Brest - Dec 2010
%
% get_cm_from_dm: get cycle mesure from delayed mode listing file
% input:
% local file list with unix cmd: ls */* > dm_files_list.txt
% output:
% dm_files_list_cm.txt: cycle mesure listing file
% dm_files_list_dm.txt: delayed mode listing file
%
% Use these 2 output files for updating Excel processing file:
% Delayed_Mode_Processing_TSG_GOSUD.xlsx
%
% Use Filezilla and Synchronized Browsing mode to get an updated directory structure
% ftp.legos.obs-mip.fr/pub/soa/salinite/sss_delayed_mode/dm_data_2003-ongoing/
%
% If you have an identical directory structure on the local machine and the server,
% you can enable synchronized browsing. This means that any directory navigation
% on one machine is duplicated on the other.
%
% To enable synchronized browsing, create an entry in the Site Manager, and on
% the Advanced tab, ensure that the Default local directory and the Default
% remote directory have the same structure.
% Then check "use synchronized browsing," save your settings, and connect.
%
% Directory Comparison
% To quickly see differences between files on the local machine and the server,
% choose View > Directory Comparison, and choose either "compare file size" or
% "compare modification time." (You also hide identical files by checking that option.
% Then choose "Enable."
%
% You will now see color-coded differences between copies of the same file on the
% different machines. See their meanings here.
% set your local directory
dir
=
'dm_data_2003-ongoing'
;
% initialize current plateforme name
current_pf
=
''
;
% create local file list with unix cmd: ls */* > dm_files_list.txt
fid
=
fopen
(
strcat
(
dir
,
'/dm_files_list.txt'
),
'rt'
);
% open files descriptors
fid_cm
=
fopen
(
strcat
(
dir
,
'/dm_files_list_cm.txt'
),
'wt'
);
fid_dm
=
fopen
(
strcat
(
dir
,
'/dm_files_list_dm.txt'
),
'wt'
);
while
~
feof
(
fid
)
% get fileName
fileName
=
fgetl
(
fid
);
% create netcdf instance
nc
=
us191
.
netcdf
(
strcat
(
dir
,
filesep
,
fileName
));
% get globals attributes
cm
=
nc
.
ATTRIBUTES
.
CYCLE_MESURE
;
pf
=
nc
.
ATTRIBUTES
.
PLATFORM_NAME
;
% if plateforme name change, write it in file
if
~
strcmp
(
current_pf
,
pf
)
fprintf
(
fid_cm
,
'\n%s :\n\n'
,
upper
(
pf
));
fprintf
(
fid_dm
,
'\n%s :\n\n'
,
upper
(
pf
));
% display to screen
fprintf
(
'\n%s :\n'
,
upper
(
pf
));
current_pf
=
pf
;
end
% write result in two files
fprintf
(
fid_cm
,
'%s\n'
,
cm
);
match
=
regexp
(
fileName
,
'.*?/(.*)'
,
'tokens'
);
% build tsg struct
% ----------------
if
~
isempty
(
match
)
fprintf
(
fid_dm
,
'%s\n'
,
match
{
1
}{
1
});
fprintf
(
'%s -> %s\n'
,
match
{
1
}{
1
},
cm
);
end
% close netcdf file
nc
.
close
;
end
fclose
(
fid_cm
);
fclose
(
fid_dm
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment