Skip to content

Commit

Permalink
Improved readNcdf() to specify only dimensions that user wants to sub…
Browse files Browse the repository at this point in the history
…set and read the remaining entirely.
  • Loading branch information
Sara Minoli authored and Sara Minoli committed Aug 9, 2022
1 parent 3818544 commit 9455e18
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cropCalendars/R/readNcdf.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
#'
#' @param file_name File name of ncdf file with path.
#' @param dim_subset (Optional) List of dimensions to be subset, typically
#' lon, lat and time. The list's element names and their order should correspond
#' to the names and order of the dimensions as defined in the file. If unknown,
#' use verbose = TRUE to print them out.
#' lon, lat and time. The list's element names should correspond
#' to the names of the dimensions as defined in the file. If unknown,
#' use verbose = TRUE to print them out. If a dimension is note specified, it is
#' read entirely.
#' @param var_name (Optional) Variable name (e.g. "tas"). Needed if the file
#' contains more than one variable (e.g. temperature, precipitation).
#' @param verbose (Optional) If TRUE, it prints some useful meta-data (e.g.
Expand Down

0 comments on commit 9455e18

Please sign in to comment.