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

Add commented out section which allows the time variables to be re-written if necessary

parent b20b9558
......@@ -161,7 +161,26 @@ for ii = 1:numvars
end
% Replace the values with the scaled interpolated values.
netcdf.putVar(ncout, varid, sfvdata)
else
% % We might also want to replace the time. If so, uncomment these
% % lines to replace with an arbitrary time period. We also need an
% % additional input argument in this case (start_date).
% elseif strcmpi(varname, 'time')
% tmp_start_time = greg2mjulian(start_date(1), start_date(2), start_date(3) - 7, start_date(4), start_date(5), start_date(6));
% tmp_time = tmp_start_time:(tmp_start_time + nt - 1);
% netcdf.putVar(ncout, varid, tmp_time)
% elseif strcmpi(varname, 'Times')
% tmp_time = [];
% for i = 1:nt;
% tmp_time = [tmp_time, sprintf('%-026s', datestr(datenum(start_date) - 7 + (i - 1), 'yyyy-mm-dd HH:MM:SS.FFF'))];
% end
% netcdf.putVar(ncout, varid, tmp_time)
% elseif strcmpi(varname, 'Itime')
% tmp_start_time = greg2mjulian(start_date(1), start_date(2), start_date(3) - 7, start_date(4), start_date(5), start_date(6));
% tmp_time = tmp_start_time:(tmp_start_time + nt - 1);
% netcdf.putVar(ncout, varid, floor(tmp_time))
% else
% We need to check if the dimension is unlimited, and use a start
% and end with netcdf.putVar if it is. This is largely because
% MATLAB can't handle unlimited dimensions in the same way as it
......
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