Due to a shift in policy, from 0900 GMT on Wednesday 14th July 2021, we will be disabling ssh access to the server for external users. External users who wish to continue to access code repositories on the server will need to switch to using https. This can be accomplished in the following way: 1) On the repo on gitlab, use the clone dialogue and select ‘Clone with HTTPS’ to get the address of the repo; 2) From within the checkout of your repo run: $ git remote set-url origin HTTPS_ADDRESS. Here, replace HTTPS_ADDRESS with the address you have just copied from GitLab. Pulls and pushes will now require you to enter a username and password rather than using a ssh key. If you would prefer not to enter a password each time, you might consider caching your login credentials.

Commit e4de723c authored by Pierre Cazenave's avatar Pierre Cazenave

Fix the creation of the velocity field to use all time steps instead of just the last one

parent aecd59cb
......@@ -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])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment