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
70e1bb98
Commit
70e1bb98
authored
May 24, 2018
by
Nicolau Manubens
Browse files
Adding global attribute feature.
parent
324a227e
Changes
1
Hide whitespace changes
Inline
Side-by-side
R/ArrayToNc.R
View file @
70e1bb98
...
...
@@ -323,6 +323,12 @@ ArrayToNc <- function(arrays, file_path) {
var_counter
<-
var_counter
+
1
}
}
# Adding global attributes
if
(
length
(
global_attrs
)
>
0
)
{
for
(
attr_name
in
names
(
global_attrs
))
{
ncatt_put
(
ncdf_object
,
0
,
attr_name
,
global_attrs
[[
attr_name
]])
}
}
nc_close
(
ncdf_object
)
invisible
(
NULL
)
}
...
...
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