Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Earth Sciences
easyNCDF
Commits
d97c42a1
Commit
d97c42a1
authored
Apr 08, 2017
by
Nicolau Manubens Gil
Browse files
Fixed bug...
parent
bcf13c65
Changes
1
Hide whitespace changes
Inline
Side-by-side
R/NcToArray.R
View file @
d97c42a1
...
...
@@ -220,8 +220,10 @@ NcToArray <- function(file_to_read, dim_indices = NULL, vars_to_read = NULL,
## TODO: Crop dimensions in attributes
if
(
!
is.null
(
reorder_back
))
{
var_result
<-
aperm
(
var_result
,
reorder_back
)
names
(
dim
(
var_result
))
<-
names
(
indices_to_take
)[
reorder_back
]
}
else
{
names
(
dim
(
var_result
))
<-
names
(
indices_to_take
)
}
names
(
dim
(
var_result
))
<-
names
(
indices_to_take
)[
reorder_back
]
#if (!is.null(missing_dims)) {
# dim(var_result) <- original_dims
#}
...
...
Write
Preview
Supports
Markdown
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