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
bf67fee7
Commit
bf67fee7
authored
Apr 07, 2017
by
Nicolau Manubens
Browse files
Updated documentation.
parent
b05fcdbc
Changes
3
Show whitespace changes
Inline
Side-by-side
R/NcToArray.R
View file @
bf67fee7
...
...
@@ -120,6 +120,9 @@ NcToArray <- function(file_to_read, dim_indices = NULL, vars_to_read = NULL,
atts
<-
atts
[
-
which
(
names
(
atts
)
%in%
atts_to_remove
)]
}
units
<-
file_object
$
dim
[[
var_name
]]
$
units
if
(
is.null
(
dim
(
var_result
)))
{
dim
(
var_result
)
<-
length
(
var_result
)
}
names
(
dim
(
var_result
))
<-
sapply
(
extra_dimvars_list
[[
var_name
]]
$
dim
,
'[['
,
'name'
)
}
else
{
var_result
<-
NULL
...
...
man/NcReadVarNames.Rd
0 → 100644
View file @
bf67fee7
\name{NcReadVarNames}
\alias{NcReadVarNames}
\title{
Read Names of Variables in a NetCDF File
}
\description{
Reads the names of the variables in a NetCDF file and returns them as a vector of character strings.
}
\usage{
NcReadVarNames(file_to_read)
}
\arguments{
\item{file_to_read}{
Path to the file to be read or a NetCDF object as returned by \code{easyNCDF::NcOpen} or \code{ncdf4::nc_open}.
}
}
\value{
Vector of character strings with the names of the variables in the NetCDF file.
}
\examples{
}
\author{
History:\cr
0.0 - 2017-03 (N. Manubens, \email{nicolau.manubens at bsc.es}) - Original code
}
\keyword{datagen}
man/NcToArray.Rd
View file @
bf67fee7
...
...
@@ -11,6 +11,9 @@ Reads one or a set of variables together with metadata items from a NetCDF file
NcToArray(file_to_read, dim_indices = NULL, vars_to_read = NULL,
drop_var_dim = FALSE, unlist = TRUE,
expect_all_indices = FALSE, allow_out_of_range = TRUE)
nc2a(file_to_read, dim_indices = NULL, vars_to_read = NULL,
drop_var_dim = FALSE, unlist = TRUE,
expect_all_indices = FALSE, allow_out_of_range = TRUE)
}
\arguments{
\item{file_to_read}{
...
...
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