diff --git a/DESCRIPTION b/DESCRIPTION index cce6a4a387368b71f8877c4033e91dff7566bcde..e1d0bcc3882554655258cb53ecb89a1acf307b98 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,11 +1,12 @@ Package: easyNCDF Title: Tools to Easily Read/Write NetCDF Files into/from Multidimensional R Arrays -Version: 0.1.0 +Version: 0.1.1 Authors@R: c( person("BSC-CNS", role = c("aut", "cph")), person("Nicolau", "Manubens", , "nicolau.manubens@bsc.es", role = c("aut")), - person("Nuria", "Perez-Zanon", , "nuria.perez@bsc.es", role = c("ctb", "cre"), comment = c(ORCID = "0000-0001-8568-3071"))) + person("Nuria", "Perez-Zanon", , "nuria.perez@bsc.es", role = c("ctb"), comment = c(ORCID = "0000-0001-8568-3071")), + person("An-Chi", "Ho", , "an.ho@bsc.es", role = c("cre"))) Description: Set of wrappers for the 'ncdf4' package to simplify and extend its reading/writing capabilities into/from multidimensional R arrays. Depends: @@ -14,9 +15,8 @@ Imports: ncdf4, ClimProjDiags, abind -License: LGPL-3 -URL: https://earth.bsc.es/gitlab/es/easyNCDF/wikis/home -BugReports: https://earth.bsc.es/gitlab/es/easyNCDF/issues -LazyData: true +License: Apache License 2.0 +URL: https://earth.bsc.es/gitlab/es/easyNCDF/-/wikis/home +BugReports: https://earth.bsc.es/gitlab/es/easyNCDF/-/issues SystemRequirements: netcdf development libraries -RoxygenNote: 5.0.0 +RoxygenNote: 7.0.1 diff --git a/R/ArrayToNc.R b/R/ArrayToNc.R index 68fdc76c3f72c3f7fa8dd0884107a0f61e768f3d..e880f8e89d0608d1dfa53d984c144de9bd5dcce0 100644 --- a/R/ArrayToNc.R +++ b/R/ArrayToNc.R @@ -1,6 +1,6 @@ #'Save multidimensional R arrays into NetCDF files #' -#'@author N. Manubens \email{nicolau.manubens at bsc.es} +#'@author N. Manubens \email{nicolau.manubens@bsc.es} #'@description This function takes as input one or a list of multidimensional R arrays and stores them in a NetCDF file, using the \code{ncdf4} package. The full path and name of the resulting file must be specified. Metadata can be attached to the arrays and propagated into the NetCDF file in 3 possible ways:\cr #' \itemize{ #' \item{Via the list names if a list of arrays is provided:}{Each name in the input list, corresponding to one multidimensional array, will be interpreted as the name of the variable it contains.\cr diff --git a/R/NcClose.R b/R/NcClose.R index bd46c4cdd446eec05d19cf16779cf4c0a412c460..3b9ba32764c0cc2d8ea1b3695af7bbc2080005e7 100644 --- a/R/NcClose.R +++ b/R/NcClose.R @@ -1,6 +1,6 @@ #'Close a NEtCDF File #' -#'@author N. Manubens \email{nicolau.manubens at bsc.es} +#'@author N. Manubens \email{nicolau.manubens@bsc.es} #' #'@description Close a \code{ncdf4} open connection to a file. #' diff --git a/R/NcOpen.R b/R/NcOpen.R index 0cd6ec23ccd55116d2ed7864f71fe8b902ed2a3f..240d742a9a16b36e82dbadff71574f72395e33bf 100644 --- a/R/NcOpen.R +++ b/R/NcOpen.R @@ -1,6 +1,6 @@ #'Open a NetCDF File #' -#'@author N. Manubens \email{nicolau.manubens at bsc.es} +#'@author N. Manubens \email{nicolau.manubens@bsc.es} #' #'@description Silently opens a NetCDF file with \code{ncdf4::nc_open}. Returns NULL on failure. #' diff --git a/R/NcReadDims.R b/R/NcReadDims.R index 9cdff4402a50da39beb66d469157f6023769802e..5dd146cc42e8ac9300eae7615fb16406c099b10f 100644 --- a/R/NcReadDims.R +++ b/R/NcReadDims.R @@ -1,6 +1,6 @@ #'Read Dimensions of a NetCDF File #' -#'@author N. Manubens \email{nicolau.manubens at bsc.es} +#'@author N. Manubens \email{nicolau.manubens@bsc.es} #'@description Reads the dimension names and sizes of a set of variables in a NetCDF file, using the package \code{ncdf4}. The different variables in the file are considered to be stored along a dimension called 'var', so reading the dimensions of a variable 'foo' with dimensions 'lat' and 'lon' would result in a vector with the format c('var' = 1, 'lat' = n_lats, 'lon' = n_lons). #' #'@param 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}. diff --git a/R/NcReadVarNames.R b/R/NcReadVarNames.R index 0af89590f685c635a5677a7c1c8a8e1310a13cf6..abc906af65b347bbc4744c0d88adff379089d124 100644 --- a/R/NcReadVarNames.R +++ b/R/NcReadVarNames.R @@ -1,6 +1,6 @@ #'Read Names of Variables in a NetCDF File #' -#'@author N. Manubens \email{nicolau.manubens at bsc.es} +#'@author N. Manubens \email{nicolau.manubens@bsc.es} #' #'@description Reads the names of the variables in a NetCDF file and returns them as a vector of character strings. #' diff --git a/R/NcToArray.R b/R/NcToArray.R index 0fc047ed2b2a08013a1203120e14e4823e53dcb5..4adb473ca659c1f1b82cf32766fbf5ca45f00641 100644 --- a/R/NcToArray.R +++ b/R/NcToArray.R @@ -1,6 +1,6 @@ #'Read Names of Variables in a NetCDF File #' -#'@author N. Manubens, \email{nicolau.manubens at bsc.es} +#'@author N. Manubens, \email{nicolau.manubens@bsc.es} #' #'@description Reads the names of the variables in a NetCDF file and returns them as a vector of character strings. #' diff --git a/man/ArrayToNc.Rd b/man/ArrayToNc.Rd index 379137d36c73e9b572149a6d78ca7e34755090a8..c97f4ac25abe4e1ee5b0ac7d7b30002391571368 100644 --- a/man/ArrayToNc.Rd +++ b/man/ArrayToNc.Rd @@ -197,6 +197,5 @@ ArrayToNc(list(tos, lon, lat), 'tmp.nc') } \author{ -N. Manubens \email{nicolau.manubens at bsc.es} +N. Manubens \email{nicolau.manubens@bsc.es} } - diff --git a/man/NcClose.Rd b/man/NcClose.Rd index 4842168d03300c987f1fb62856326a193baabccb..ab61e60fca2fa619d6c0d95ff5f53fc7923f1605 100644 --- a/man/NcClose.Rd +++ b/man/NcClose.Rd @@ -33,6 +33,5 @@ print(a) print(a_from_file[1, , ]) } \author{ -N. Manubens \email{nicolau.manubens at bsc.es} +N. Manubens \email{nicolau.manubens@bsc.es} } - diff --git a/man/NcOpen.Rd b/man/NcOpen.Rd index 478204d88885dc1fdeaa7161e98940a61ab7c625..dd5aa5d82d5b2ce2313b3ceb27649710c4cd8541 100644 --- a/man/NcOpen.Rd +++ b/man/NcOpen.Rd @@ -34,6 +34,5 @@ print(a_from_file[1, , ]) } \author{ -N. Manubens \email{nicolau.manubens at bsc.es} +N. Manubens \email{nicolau.manubens@bsc.es} } - diff --git a/man/NcReadDims.Rd b/man/NcReadDims.Rd index 9e909fc197ca903769ee85d5e2db7a8b08908629..324e4269e261d71d339820c10e53393f6c208bb4 100644 --- a/man/NcReadDims.Rd +++ b/man/NcReadDims.Rd @@ -33,6 +33,5 @@ print(a_from_file[1, , ]) } \author{ -N. Manubens \email{nicolau.manubens at bsc.es} +N. Manubens \email{nicolau.manubens@bsc.es} } - diff --git a/man/NcReadVarNames.Rd b/man/NcReadVarNames.Rd index e8ddcae7baf0c240dc8b3591dacdb83db8302063..70b63bb39b3f23b042e76c064ed032b72f9f7f1f 100644 --- a/man/NcReadVarNames.Rd +++ b/man/NcReadVarNames.Rd @@ -34,6 +34,5 @@ print(a_from_file[1, , ]) } \author{ -N. Manubens \email{nicolau.manubens at bsc.es} +N. Manubens \email{nicolau.manubens@bsc.es} } - diff --git a/man/NcToArray.Rd b/man/NcToArray.Rd index 9bf99e0a5deb35842def0ebdbe0841a28aa3c7f8..94822c0ec1f974a3644ff72f5df1b52e2c9252ee 100644 --- a/man/NcToArray.Rd +++ b/man/NcToArray.Rd @@ -4,9 +4,15 @@ \alias{NcToArray} \title{Read Names of Variables in a NetCDF File} \usage{ -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) +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 +) } \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}.} @@ -55,6 +61,5 @@ print(a_from_file[1, , ]) } \author{ -N. Manubens, \email{nicolau.manubens at bsc.es} +N. Manubens, \email{nicolau.manubens@bsc.es} } -