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
433c24ed
Commit
433c24ed
authored
17 years ago
by
jacques.grelet_ird.fr
Browse files
Options
Downloads
Patches
Plain Diff
utilise maintenant setappdata
parent
4d368049
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tsg_util/tsg_initialisation.m
+7
-4
7 additions, 4 deletions
tsg_util/tsg_initialisation.m
tsg_util/tsg_preferences.m
+5
-1
5 additions, 1 deletion
tsg_util/tsg_preferences.m
tsgqc_GUI.m
+8
-5
8 additions, 5 deletions
tsgqc_GUI.m
with
20 additions
and
10 deletions
tsg_util/tsg_initialisation.m
+
7
−
4
View file @
433c24ed
function
tsg
=
tsg_initialisation
()
%function tsg_initialisation(hTsgGUI)
function
tsg_initialisation
(
hMainFig
)
%
% Input
% -----
%
non
e
%
hMainFig ............ Handel to the main user interfac
e
%
% Output
% ------
%
tsg ............ tsg structure that contain data
%
none
%
% $Id$
%
...
...
@@ -15,6 +14,7 @@ function tsg = tsg_initialisation()
% -------------------------------------------------------------------------
%% Constants for NetCDF DATA FORMAT TSG
% -------------------------------------------------------------------------
tsg
=
[];
% netcdf file version
% -------------------
...
...
@@ -166,3 +166,6 @@ tsg.DATE_CREATION = [date(1:8) date(10:15)];
tsg
.
DATE_UPDATE
=
tsg
.
DATE_CREATION
;
tsg
.
REFERENCE_DATE_TIME
=
REFERENCE_DATE_TIME
;
% Save tsg structure
% ------------------
setappdata
(
hMainFig
,
'tsg_data'
,
tsg
);
This diff is collapsed.
Click to expand it.
tsg_util/tsg_preferences.m
+
5
−
1
View file @
433c24ed
...
...
@@ -126,8 +126,12 @@ set(0, 'userdata', root);
% call default tsg_initialisation
% -------------------------------
tsg
=
tsg_initialisation
;
tsg_initialisation
(
hTsgGUI
)
;
% Get the data from the application GUI
% -------------------------------------
tsg
=
getappdata
(
hTsgGUI
,
'tsg_data'
);
% init root structure to default values
% -------------------------------------
root
.
preference
.
autoload
=
'off'
;
...
...
This diff is collapsed.
Click to expand it.
tsgqc_GUI.m
+
8
−
5
View file @
433c24ed
...
...
@@ -101,9 +101,6 @@ hMainFig = figure(...
'Position'
,
guiLimits
,
...
'Color'
,
get
(
0
,
'DefaultUIControlBackgroundColor'
));
% Initialize tsg structure
% ------------------------
% tsg_initialisation(hMainFig)
%% Initialize tsg structure with tsg_preference function
% -----------------------------------------------------
...
...
@@ -1017,6 +1014,10 @@ end
% construct valid and full file path
% -----------------------------------
fullFileName
=
strcat
(
pathname
,
fileName
);
% call default tsg_initialisation
% -------------------------------
tsg_initialisation
(
hMainFig
);
% Read the data
% -------------
...
...
@@ -1085,13 +1086,15 @@ end
% ---------------------------
set
(
hInfoFileText
,
'String'
,
strcat
(
tsg
.
file
.
name
,
tsg
.
file
.
ext
));
% update some fields in tsg structure
% -----------------------------------
% update some fields in tsg structure
and restore tsg
% -----------------------------------
----------------
updateTsgStruct
(
hMainFig
);
tsg
=
getappdata
(
hMainFig
,
'tsg_data'
);
% Running average of TSG time series
% ----------------------------------
tsg_moveaverage
(
hMainFig
);
% The callback to detect the mouse motion can be set to on
% --------------------------------------------------------
...
...
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