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

Slight improvement on the way the wind vectors are dealt with

parent 3aa7aff1
......@@ -124,7 +124,7 @@ for i=1:length(suffixes)
netcdf.putAtt(nc,netcdf.getConstant('NC_GLOBAL'),'title','FVCOM Forcing File')
netcdf.putAtt(nc,netcdf.getConstant('NC_GLOBAL'),'institution','Plymouth Marine Laboratory')
netcdf.putAtt(nc,netcdf.getConstant('NC_GLOBAL'),'source','FVCOM grid (unstructured) surface forcing')
netcdf.putAtt(nc,netcdf.getConstant('NC_GLOBAL'),'history',['File created on ', datestr(now, 'yyyy-mm-dd HH:MM:SS'), ' with write_FVCOM_forcing.m from the fvcom-toolbox (https://github.com/pwcazenave/fvcom-toolbox)'])
netcdf.putAtt(nc,netcdf.getConstant('NC_GLOBAL'),'history',['File created on ', datestr(now, 'yyyy-mm-dd HH:MM:SS'), ' with write_FVCOM_forcing.m from the MATLAB fvcom-toolbox (https://github.com/pwcazenave/fvcom-toolbox)'])
netcdf.putAtt(nc,netcdf.getConstant('NC_GLOBAL'),'references','http://fvcom.smast.umassd.edu, http://codfish.smast.umassd.edu')
netcdf.putAtt(nc,netcdf.getConstant('NC_GLOBAL'),'Conventions','CF-1.0')
% netcdf.putAtt(nc,netcdf.getConstant('NC_GLOBAL'),'infos',infos)
......@@ -262,6 +262,11 @@ for i=1:length(suffixes)
used_fnames = [used_fnames, {'uwnd', 'vwnd', 'uwnd', 'vwnd'}];
used_dims = [used_dims, {'nElems', 'nElems', 'nElems', 'nElems'}];
end
case {'vwnd', 'v10'}
% We dealt with these in the u component section above, so
% just pass silently.
true;
case 'slp'
if strcmpi(suffixes{i}, '_air_press') || ~multi_out
......@@ -382,7 +387,7 @@ for i=1:length(suffixes)
otherwise
if(ftbverbose)
warning('Unknown or unused input data type: %s', fnames{vv})
warning('Unknown or possibly unused input data type: %s', fnames{vv})
end
end
end
......@@ -464,7 +469,9 @@ for i=1:length(suffixes)
fprintf('done.\n')
end
end
if hf_done ~= 4
if hf_done < 4
% hf_done might be higher than four, but unless it is at least
% four, we haven't got everything we need.
warning('Did not have all the required heat flux parameters. Need ''shtfl'', ''lhtfl'', ''nlwrs'' and ''nwsrs''.')
end
......
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