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
26987e24
Commit
26987e24
authored
17 years ago
by
Yves Gouriou
Browse files
Options
Downloads
Patches
Plain Diff
developpement module de correction -continuation
parent
1ccde30f
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
dev_tsgcor_GUI.m
+31
-26
31 additions, 26 deletions
dev_tsgcor_GUI.m
tsgqc_GUI.m
+1
-0
1 addition, 0 deletions
tsgqc_GUI.m
with
32 additions
and
26 deletions
dev_tsgcor_GUI.m
+
31
−
26
View file @
26987e24
...
...
@@ -50,10 +50,10 @@ function dev_tsgcor_GUI( hMainFig )
set
(
0
,
'Units'
,
'normalized'
);
guiLimits
=
get
(
0
,
'ScreenSize'
);
guiLimits
(
1
)
=
guiLimits
(
1
)
+
0.05
;
guiLimits
(
2
)
=
guiLimits
(
2
)
+
0.
1
;
guiLimits
(
3
)
=
guiLimits
(
3
)
-
0.1
5
;
guiLimits
(
4
)
=
guiLimits
(
4
)
-
0.2
5
;
guiLimits
(
2
)
=
guiLimits
(
2
)
+
0.
05
;
guiLimits
(
3
)
=
guiLimits
(
3
)
-
0.1
;
guiLimits
(
4
)
=
guiLimits
(
4
)
-
0.2
;
% Create and then hide the GUI as it is being constructed.
% --------------------------------------------------------
hChild1Fig
=
figure
(
...
...
...
@@ -305,7 +305,12 @@ sample = dev_diffTsgSample(tsg, psal_smooth, sample, TSG_SAMPLING_TIME);
% Trac
% -----
axes
(
hPlotAxes
(
1
));
tsg_plot_SalTsgSample
(
hMainFig
,
hPlotAxes
);
% The callback to detect the mouse motion can be set to on
% --------------------------------------------------------
set
(
hChild1Fig
,
'Tag'
,
'ButtonMotionOn'
);
% tsg = dev_corMethod1(tsg, sample, dateMin, dateMax, COR_TIME_WINDOWS);
...
...
@@ -330,7 +335,7 @@ axes(hPlotAxes(1));
zoomAdaptiveDateTicks
(
'off'
);
case
'off'
pan
off
set
(
hQCPushtool
,
'Tag'
,
'off'
);
%
set(hQCPushtool, 'Tag', 'off' );
zoom
on
zoomAdaptiveDateTicks
(
'on'
);
...
...
@@ -354,7 +359,7 @@ axes(hPlotAxes(1));
panAdaptiveDateTicks
(
'off'
);
case
'off'
zoom
off
set
(
hQCPushtool
,
'Tag'
,
'off'
);
%
set(hQCPushtool, 'Tag', 'off' );
pan
on
panAdaptiveDateTicks
(
'on'
);
...
...
@@ -509,41 +514,41 @@ axes(hPlotAxes(1));
% Test if the callback can be activated
% -------------------------------------
%
if strcmp( get( hChild1Fig, 'Tag'), 'ButtonMotionOn')
if
strcmp
(
get
(
hChild1Fig
,
'Tag'
),
'ButtonMotionOn'
)
% Retrieve named application data
% -------------------------------
%
tsg = getappdata( h
Child1
Fig, 'tsg_data');
tsg
=
getappdata
(
h
Main
Fig
,
'tsg_data'
);
% Get the mouse position
% ----------------------
%
point = get(gcf,'CurrentPoint');
point
=
get
(
gcf
,
'CurrentPoint'
);
%
if point(1) > .05 && point(2) > .6 && point(1) < .95 && point(2) < .92
if
point
(
1
)
>
.
05
&&
point
(
2
)
>
.
6
&&
point
(
1
)
<
.
95
&&
point
(
2
)
<
.
92
% Get current position of cusor and return its coordinates in
% axes with handle h_axes
% -----------------------------------------------------------
%
[x, y] = gpos(hPlotAxes(1));
[
x
,
y
]
=
gpos
(
hPlotAxes
(
1
));
%
if x > tsg.TIME(1) && x < tsg.TIME(end)
if
x
>
tsg
.
TIME
(
1
)
&&
x
<
tsg
.
TIME
(
end
)
%
indCursor = find( tsg.TIME > x);
indCursor
=
find
(
tsg
.
TIME
>
x
);
% use sprintf with format instead strcat & num2str but flag
% - don't work with 0, eg %+07.4f
%
set( hInfoText, 'String',...
%
sprintf(['%s - Latitude = %s - Longitude = %s '...
%
' - Salinity = %07.4f - Temperature = %07.4f'],...
%
datestr(tsg.TIME(indCursor(1)),'dd/mm/yyyy HH:MM'),...
%
dd2dm(tsg.LATITUDE(indCursor(1)),0), ...
%
dd2dm(tsg.LONGITUDE(indCursor(1)),1), ...
%
tsg.PSAL(indCursor(1)), ...
%
tsg.TEMP_TSG(indCursor(1))...
%
));
set
(
hInfoText
,
'String'
,
...
sprintf
([
'%s - Latitude = %s - Longitude = %s '
...
' - Salinity = %07.4f - Temperature = %07.4f'
],
...
datestr
(
tsg
.
TIME
(
indCursor
(
1
)),
'dd/mm/yyyy HH:MM'
),
...
dd2dm
(
tsg
.
LATITUDE
(
indCursor
(
1
)),
0
),
...
dd2dm
(
tsg
.
LONGITUDE
(
indCursor
(
1
)),
1
),
...
tsg
.
PSAL
(
indCursor
(
1
)),
...
tsg
.
TEMP_TSG
(
indCursor
(
1
))
...
));
%
end
%
end
%
end
end
end
end
end
%---------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
tsgqc_GUI.m
+
1
−
0
View file @
26987e24
...
...
@@ -904,6 +904,7 @@ function tsgqc_GUI
function
QuitProgram
(
hObject
,
eventdata
)
delete
(
hMainFig
);
% reset Matlab search path to default
rmpath
(
[
DEFAULT_PATH_FILE
filesep
'tsg_util'
]
);
rmpath
(
[
DEFAULT_PATH_FILE
filesep
'tsg_data'
]
);
...
...
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