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

Add changes from Karen to the function help to make it say what it actually does!

parent 95f69af0
function write_FVCOM_elevtide(Mobj,MJD,ElevationFile,MyTitle)
% Write an FVCOM surface elevation time series forcing file
%
% write_FVCOM_elevtide(ObcNodes,JulianTime,ElevationFile,MyTitle)
% write_FVCOM_elevtide(Mobj,MJD,ElevationFile,MyTitle)
%
% DESCRIPTION:
% Write an FVCOM NetCDF surface elevation forcing file
%
% INPUT:
% ObcNodes = list of open boundary nodes of size [nObcs].
% MJD = list of modified Modified Julian Dates of size
% [times] (defined as unlimited in the NetCDF file).
% Mobj = Matlab mesh object.
% MJD = list of modified Modified Julian Dates of size [times]
% (defined as unlimited in the NetCDF file).
% ElevationFile = name of NetCDF file.
% MyTitle = casename title, written as global attribute of
% NetCDF file.
% MyTitle = casename title, written as global attribute of NetCDF file.
%
% OUTPUT:
% ElevationFile, A NetCDF FVCOM surface elevations tide forcing file
%
% EXAMPLE USAGE
% write_FVCOM_elevtide(ObcNodes,JulianTime,SurfaceElevation,SpectralFile,MyTitle)
% write_FVCOM_elevtide(Mobj,MJD,ElevationFile,MyTitle)
%
% Author(s):
% Pierre Cazenave (Plymouth Marine Laboratory)
% Karen Thurston (National Oceanography Centre Liverpool)
%
% Revision history
% 2012-08-08 First version.
% 2012-11-14 Updated to expect Modified Julian Day rather than doing the
% conversion in here. Also put the pieces in set_elevtide in here to
% 2012-08-08 (PWC) First version.
% 2012-11-14 (PWC) Updated to expect Modified Julian Day rather than doing
% the conversion in here. Also put the pieces in set_elevtide in here to
% simplify the process of writing out an elevation input file.
% 2012-12-04 (KJT) Updated to use surface elevation and open boundary
% nodes from Mobj.
%
%==============================================================================
......@@ -42,20 +44,9 @@ if(report); fprintf(['begin : ' subname '\n']); end
% order of the boundary nodes is preserved.
tmpObcNodes = Mobj.obc_nodes';
% Flip it back so it's the same shape as it would have been using the old
% code (see below for the old way).
% code.
ObcNodes = tmpObcNodes(tmpObcNodes~=0)';
% cnt = 0;
% ObcNodes = nan(1,sum(Mobj.nObcNodes));
% for ob=1:Mobj.nObs
% nObcs = Mobj.nObcNodes(ob);
% for j=1:nObcs
% cnt = cnt + 1;
% ObcNodes(cnt) = Mobj.obc_nodes(ob,j); % set open boundary nodes
% end
% end
%------------------------------------------------------------------------------
% Sanity check on input and dimensions
%------------------------------------------------------------------------------
......
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