Commit 4172281c authored by Pierre Cazenave's avatar Pierre Cazenave

Fix the creation of the boundary temperature and salinity array to be the...

Fix the creation of the boundary temperature and salinity array to be the length of the time series rather than a single value
parent 3b3cddac
function write_FVCOM_tsobc(basename,time,nSiglay,obc_temp,obc_salt)
function write_FVCOM_tsobc(basename,time,nSiglay,in_temp,in_salt)
% example file for dumping a file to force temperature and salinity at the open b.
%
% function example_FVCOM_tsobc()
......@@ -103,7 +103,7 @@ nSiglev = nSiglay + 1;
inc = 1./real(nSiglay);
siglev = 0:-inc:-1;
for i=1:nSiglay
siglay(i) = mean(siglev(i:i+1));
siglay(i) = mean(siglev(i:i+1));
end;
......@@ -118,8 +118,8 @@ salt = zeros(nObc,nSiglay,nTimes);
% end
% set a constant temperature and salinity
% obc_temp = ones(1,nTimes)*13;
% obc_salt = ones(1,nTimes)*35;
obc_temp = ones(1,nTimes)*in_temp;
obc_salt = ones(1,nTimes)*in_salt;
%--------------------------------------------------------------
% dump to netcdf file
......
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