Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
fvcom-toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
FVCOM
fvcom-toolbox
Commits
e4de723c
Commit
e4de723c
authored
Feb 28, 2013
by
Pierre Cazenave
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the creation of the velocity field to use all time steps instead of just the last one
parent
aecd59cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
fvcom_prepro/get_POLCOMS_meanflow.m
fvcom_prepro/get_POLCOMS_meanflow.m
+3
-3
No files found.
fvcom_prepro/get_POLCOMS_meanflow.m
View file @
e4de723c
...
...
@@ -266,7 +266,7 @@ Mobj.meanflow_ubar = squeeze(mean(Mobj.meanflow_u, 2));
Mobj
.
meanflow_vbar
=
squeeze
(
mean
(
Mobj
.
meanflow_v
,
2
));
% Depth averaged velocity
Mobj
.
velocity
=
mean
(
sqrt
(
Mobj
.
meanflow_u
(:,
:,
end
)
.^
2
+
Mobj
.
meanflow_v
(:,
:,
end
)
.^
2
),
2
);
Mobj
.
velocity
=
squeeze
(
mean
(
sqrt
(
Mobj
.
meanflow_u
.^
2
+
Mobj
.
meanflow_v
.^
2
),
2
)
);
% Convert the current times to Modified Julian Day (this is a bit ugly).
pc
.
time
.
all
=
strtrim
(
regexp
(
pc
.
time
.
units
,
'since'
,
'split'
));
...
...
@@ -309,7 +309,7 @@ end
%
% % Add the current element's position and value as a scatter point to
% % the map plot.
% scatter(fvlon(i), fvlat(i), 50, Mobj.velocity(i), 'filled')
% scatter(fvlon(i), fvlat(i), 50, Mobj.velocity(i
, end
), 'filled')
%
% % Do vertical profiles of u, v and velocity.
% figure(2)
...
...
@@ -368,7 +368,7 @@ end
% % The interpolated POLCOMS vertical profile (last time step only)
% plot(sqrt(iuz(i, :).^2 + ivz(i, :).^2), izz(i, :), 'g')
% % The depth-averaged velocity (again, last time step only)
% fvvelbar = Mobj.velocity(i);
% fvvelbar = Mobj.velocity(i
, end
);
% plot([fvvelbar, fvvelbar], [min(fvz), max(fvz)], 'k')
% xlim([-0.1, 0.2])
% ylim([-100, 0])
...
...
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