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
c04846f0
Commit
c04846f0
authored
Apr 09, 2017
by
Nicolau Manubens Gil
Browse files
Bug in nc2a, not dropping var_dim.
parent
55c6ff58
Changes
1
Hide whitespace changes
Inline
Side-by-side
R/NcToArray.R
View file @
c04846f0
...
...
@@ -246,7 +246,7 @@ NcToArray <- function(file_to_read, dim_indices = NULL, vars_to_read = NULL,
#names(dim(var_result)) <- sapply(file_object$var[[var_name]]$dim, '[[', 'name')
}
if
(
!
is.null
(
var_result
))
{
if
(
!
drop_var_dim
||
(
length
(
vars_to_read_vector
)
==
1
))
{
if
(
!
(
drop_var_dim
&&
(
length
(
vars_to_read_vector
)
==
1
))
)
{
dim
(
var_result
)
<-
c
(
setNames
(
1
,
var_tag
),
dim
(
var_result
))
}
attr
(
var_result
,
'variables'
)
<-
structure
(
list
(
atts
),
.Names
=
var_name
)
...
...
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