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
a80c2e70
Commit
a80c2e70
authored
Jul 16, 2015
by
Pierre Cazenave
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix array shapes.
parent
381b430e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
fvcom_prepro/get_CFS_forcing.m
fvcom_prepro/get_CFS_forcing.m
+4
-4
No files found.
fvcom_prepro/get_CFS_forcing.m
View file @
a80c2e70
...
@@ -330,7 +330,7 @@ for t = 1:nt
...
@@ -330,7 +330,7 @@ for t = 1:nt
end
end
data_west
.
(
fields
{
aa
})
.
(
fields
{
aa
})
=
...
data_west
.
(
fields
{
aa
})
.
(
fields
{
aa
})
=
...
flipud
(
netcdf
.
getVar
(
ncid
,
varid
,
start
,
count
,
'double'
)
);
netcdf
.
getVar
(
ncid
,
varid
,
start
,
count
,
'double'
);
if
length
(
dimids
)
==
4
if
length
(
dimids
)
==
4
start
=
[
...
start
=
[
...
...
@@ -354,7 +354,7 @@ for t = 1:nt
...
@@ -354,7 +354,7 @@ for t = 1:nt
length
(
data_time_idx
)];
length
(
data_time_idx
)];
end
end
data_east
.
(
fields
{
aa
})
.
(
fields
{
aa
})
=
...
data_east
.
(
fields
{
aa
})
.
(
fields
{
aa
})
=
...
flipud
(
netcdf
.
getVar
(
ncid
,
varid
,
start
,
count
,
'double'
)
);
netcdf
.
getVar
(
ncid
,
varid
,
start
,
count
,
'double'
);
scratch
.
(
fields
{
aa
})
.
(
fields
{
aa
})
.
(
fields
{
aa
})
=
...
scratch
.
(
fields
{
aa
})
.
(
fields
{
aa
})
.
(
fields
{
aa
})
=
...
cat
(
1
,
...
cat
(
1
,
...
...
@@ -376,8 +376,8 @@ for t = 1:nt
...
@@ -376,8 +376,8 @@ for t = 1:nt
case
fields
{
aa
}
case
fields
{
aa
}
% This is the actual data.
% This is the actual data.
scratch
.
(
fields
{
aa
})
.
(
structfields
{
ii
})
=
...
scratch
.
(
fields
{
aa
})
.
(
structfields
{
ii
})
=
...
[
rot90
(
data_west
.
(
fields
{
aa
})
.
(
structfields
{
ii
})),
...
[
data_west
.
(
fields
{
aa
})
.
(
structfields
{
ii
});
...
rot90
(
data_east
.
(
fields
{
aa
})
.
(
structfields
{
ii
})
)];
data_east
.
(
fields
{
aa
})
.
(
structfields
{
ii
}
)];
otherwise
otherwise
% Assume the data are the same in both arrays.
% Assume the data are the same in both arrays.
% A simple check of the range of values in the
% A simple check of the range of values in the
...
...
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