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 b35b2959 authored by Pierre Cazenave's avatar Pierre Cazenave

Tidy up the help a bit and add a note for the vertical interpolation to...

Tidy up the help a bit and add a note for the vertical interpolation to possibly use a different 1D interpolation method (from linear to pchip)
parent 2da82f23
...@@ -12,8 +12,7 @@ function Mobj = get_POLCOMS_tsobc(Mobj, polcoms_ts, polcoms_z) ...@@ -12,8 +12,7 @@ function Mobj = get_POLCOMS_tsobc(Mobj, polcoms_ts, polcoms_z)
% Mobj = MATLAB mesh structure which must contain: % Mobj = MATLAB mesh structure which must contain:
% - Mobj.siglayz - sigma layer depths for all model % - Mobj.siglayz - sigma layer depths for all model
% nodes. % nodes.
% - Mobj.lon, Mobj.lat and/or Mobj.x, Mobj.y - node % - Mobj.lon, Mobj.lat - node coordinates (lat/long).
% coordinates.
% - Mobj.obc_nodes - list of open boundary node inidices. % - Mobj.obc_nodes - list of open boundary node inidices.
% - Mobj.nObcNodes - number of nodes in each open % - Mobj.nObcNodes - number of nodes in each open
% boundary. % boundary.
...@@ -224,7 +223,12 @@ for t = 1:nt ...@@ -224,7 +223,12 @@ for t = 1:nt
% Get the temperature and salinity values for this node and % Get the temperature and salinity values for this node and
% interpolate down the water column (from POLCOMS to FVCOM). % interpolate down the water column (from POLCOMS to FVCOM).
% TODO: Use csaps for the vertical interplation/subsampling at % TODO: Use csaps for the vertical interplation/subsampling at
% each location. % each location. Alternatively, the pchip interp1 method seems
% to do a decent job of the interpolation; it might be a more
% suitable candidate in the absence of csaps. In fact, the demo
% of csaps in the MATLAB documentation makes the interpolation
% look horrible (shaving off extremes). I think pchip is
% better.
if ~isnan(tpz) if ~isnan(tpz)
fvtempz(pp, :) = interp1(tpz, itempz(pp, :), tfz, 'linear', 'extrap'); fvtempz(pp, :) = interp1(tpz, itempz(pp, :), tfz, 'linear', 'extrap');
fvsalz(pp, :) = interp1(tpz, isalz(pp, :), tfz, 'linear', 'extrap'); fvsalz(pp, :) = interp1(tpz, isalz(pp, :), tfz, 'linear', 'extrap');
......
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