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
7c00777f
Commit
7c00777f
authored
Jan 17, 2013
by
Pierre Cazenave
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge fix from Karen with regards setting constant temperature and salinity rather than 3D arrays
parent
ea590026
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
fvcom_prepro/write_FVCOM_tsobc.m
fvcom_prepro/write_FVCOM_tsobc.m
+3
-1
No files found.
fvcom_prepro/write_FVCOM_tsobc.m
View file @
7c00777f
...
...
@@ -34,6 +34,8 @@ function write_FVCOM_tsobc(basename,time,nSiglay,in_temp,in_salt,Mobj)
% salinity.
% 2013-01-09 Add support for 3D input temperature and salinity (such as
% might be generated with get_POLCOMS_tsobc.m.
% KJT: Add better check for the size of the input arrays (works with
% scalars).
%
%==============================================================================
...
...
@@ -107,7 +109,7 @@ nTimes = numel(time);
nSiglev
=
nSiglay
+
1
;
% Create or process the temperature and salinity arrays.
if
ndims
(
in_temp
)
==
1
if
max
(
size
(
in_temp
)
)
==
1
inc
=
1
/
real
(
nSiglay
);
siglev
=
0
:
-
inc
:
-
1
;
siglay
=
nan
(
1
,
nSiglay
);
...
...
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