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

Fix variable name clash between the data read in from the NetCDF file and the...

Fix variable name clash between the data read in from the NetCDF file and the data supplied to the function (i.e. the interpolated data)
parent f8cda907
function write_FVCOM_restart(fv_restart, out_restart, data)
function write_FVCOM_restart(fv_restart, out_restart, indata)
% Duplicate an FVCOM restart file, replacing variable values with those
% specified in the struct data.
%
% function write_FVCOM_restart(fv_restart, out_restart, data)
% function write_FVCOM_restart(fv_restart, out_restart, indata)
%
% DESCRIPTION:
% Use an existing FVCOM restart file as a template, export all existing
......@@ -19,9 +19,9 @@ function write_FVCOM_restart(fv_restart, out_restart, data)
% FVCOM restart file.
%
% EXAMPLE USAGE:
% data.temp = interpolated_temp;
% data.salinity = interpolated_salinity;
% write_FVCOM_restart('/tmp/fvcom_restart.nc', data)
% indata.temp = interpolated_temp;
% indata.salinity = interpolated_salinity;
% write_FVCOM_restart('/tmp/fvcom_restart.nc', indata)
%
% Author(s):
% Pierre Cazenave (Plymouth Marine Laboratory)
......@@ -41,7 +41,7 @@ end
% Get the fieldnames which must match the variable names to be replaced
% (case sensitive).
fnames = fieldnames(data);
fnames = fieldnames(indata);
nf = length(fnames);
nc = netcdf.open(fv_restart, 'NOWRITE');
......
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