Commit 04cd6519 authored by Pierre Cazenave's avatar Pierre Cazenave
Browse files

Fix the script syntax as the relevant subfunction uses the native MATLAB netCDF routines.

parent b5089c7d
......@@ -19,6 +19,8 @@ function example_FVCOM_river()
% 2016-02-18 TODO: This function uses add_var_FVCOM_river which in turn
% uses the old netCDF toolbox for MATLAB. That function needs to be
% updated to use the built in netCDF routines in MATLAB.
% 2017-03-31 add_var_FVCOM_river now uses the native MATLAB netCDF
% routines, so this script should work fine.
%
%==============================================================================
......@@ -49,22 +51,20 @@ RiverName = {'tstRiver'};
write_FVCOM_river(RiverFile,RiverName,time,flux,temp,salt,RiverInfo1,RiverInfo2)
% add sediment to the file
if exist('netcdf') == 2
VarName = 'fine_sand';
VarLongName = 'concentration of fine sand';
VarUnits = 'kgm^-3';
VarData = .333*sedload;
add_var_FVCOM_river(RiverFile,VarName,VarLongName,VarUnits,VarData)
VarName = 'fine_sand';
VarLongName = 'concentration of fine sand';
VarUnits = 'kgm^-3';
VarData = .333*sedload;
add_var_FVCOM_river(RiverFile,VarName,VarLongName,VarUnits,VarData)
VarName = 'coarse_silt';
VarLongName = 'concentration of coarse silt';
VarUnits = 'kgm^-3';
VarData = .333*sedload;
add_var_FVCOM_river(RiverFile,VarName,VarLongName,VarUnits,VarData)
VarName = 'coarse_silt';
VarLongName = 'concentration of coarse silt';
VarUnits = 'kgm^-3';
VarData = .333*sedload;
add_var_FVCOM_river(RiverFile,VarName,VarLongName,VarUnits,VarData)
VarName = 'fine_silt';
VarLongName = 'concentration of fine silt';
VarUnits = 'kgm^-3';
VarData = .333*sedload;
add_var_FVCOM_river(RiverFile,VarName,VarLongName,VarUnits,VarData)
end
VarName = 'fine_silt';
VarLongName = 'concentration of fine silt';
VarUnits = 'kgm^-3';
VarData = .333*sedload;
add_var_FVCOM_river(RiverFile,VarName,VarLongName,VarUnits,VarData)
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