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

Transpose the river data arrays prior to dumping to NetCDF so the data is read correctly by FVCOM

parent f4f4a1a8
......@@ -39,6 +39,8 @@ function write_FVCOM_river(RiverFile,RiverName,time,flux,temp,salt,RiverInfo1,Ri
% number of nodes). I removed the sediment stuff as the manual makes no
% mention of this in the river input file. Also added support for writing
% to NetCDF using MATLAB's native tools.
% 2013-03-21 Transpose the river data arrays to the correct shape for the
% NetCDF file.
......@@ -129,9 +131,9 @@ netcdf.putVar(nc, river_names_varid, rString);
netcdf.putVar(nc, time_varid, 0, nTimes, time);
netcdf.putVar(nc, itime_varid, 0, nTimes, floor(time));
netcdf.putVar(nc, itime2_varid, 0, nTimes, mod(time, 1)*24*3600*1000);
netcdf.putVar(nc, river_flux_varid, flux);
netcdf.putVar(nc, river_temp_varid, temp);
netcdf.putVar(nc, river_salt_varid, salt);
netcdf.putVar(nc, river_flux_varid, flux');
netcdf.putVar(nc, river_temp_varid, temp');
netcdf.putVar(nc, river_salt_varid, salt');
% build the time string and output to NetCDF.
nStringOut = char();
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