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
2cc63047
Commit
2cc63047
authored
Nov 16, 2017
by
Nicolau Manubens
Browse files
Merge branch 'develop-bugfixes-0.0.6'
parents
27e64b6c
80a46e01
Changes
2
Hide whitespace changes
Inline
Side-by-side
R/NcReadVarNames.R
View file @
2cc63047
...
...
@@ -25,5 +25,9 @@ NcReadVarNames <- function(file_to_read) {
var_names
<-
c
(
var_names
,
extra_dimvars
)
}
if
(
close
)
{
file_closer
(
file_object
)
}
var_names
}
R/Subset.R
View file @
2cc63047
...
...
@@ -80,6 +80,10 @@ Subset <- function(x, along, indices, drop = FALSE) {
names
(
metadata
[[
'dim'
]])
<-
dim_names
[
-
dims_to_drop
]
metadata
[[
'dimensions'
]]
<-
dim_names
[
-
dims_to_drop
]
}
if
(
length
(
metadata
[[
'dim'
]])
==
0
)
{
metadata
[
'dim'
]
<-
list
(
NULL
)
metadata
[
'dimensions'
]
<-
list
(
NULL
)
}
}
else
if
(
is.character
(
dim_names
))
{
names
(
metadata
[[
'dim'
]])
<-
dim_names
metadata
[[
'dimensions'
]]
<-
dim_names
...
...
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