Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
fvcom-toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
FVCOM
fvcom-toolbox
Commits
923adc04
Commit
923adc04
authored
Apr 08, 2013
by
Pierre Cazenave
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Transpose the river data arrays prior to dumping to NetCDF so the data is read correctly by FVCOM
parent
f4f4a1a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
fvcom_prepro/write_FVCOM_river.m
fvcom_prepro/write_FVCOM_river.m
+5
-3
No files found.
fvcom_prepro/write_FVCOM_river.m
View file @
923adc04
...
@@ -39,6 +39,8 @@ function write_FVCOM_river(RiverFile,RiverName,time,flux,temp,salt,RiverInfo1,Ri
...
@@ -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
% 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
% mention of this in the river input file. Also added support for writing
% to NetCDF using MATLAB's native tools.
% 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);
...
@@ -129,9 +131,9 @@ netcdf.putVar(nc, river_names_varid, rString);
netcdf
.
putVar
(
nc
,
time_varid
,
0
,
nTimes
,
time
);
netcdf
.
putVar
(
nc
,
time_varid
,
0
,
nTimes
,
time
);
netcdf
.
putVar
(
nc
,
itime_varid
,
0
,
nTimes
,
floor
(
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
,
itime2_varid
,
0
,
nTimes
,
mod
(
time
,
1
)
*
24
*
3600
*
1000
);
netcdf
.
putVar
(
nc
,
river_flux_varid
,
flux
);
netcdf
.
putVar
(
nc
,
river_flux_varid
,
flux
'
);
netcdf
.
putVar
(
nc
,
river_temp_varid
,
temp
);
netcdf
.
putVar
(
nc
,
river_temp_varid
,
temp
'
);
netcdf
.
putVar
(
nc
,
river_salt_varid
,
salt
);
netcdf
.
putVar
(
nc
,
river_salt_varid
,
salt
'
);
% build the time string and output to NetCDF.
% build the time string and output to NetCDF.
nStringOut
=
char
();
nStringOut
=
char
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment