R/bi_file_summary.R

Defines functions bi_file_summary

Documented in bi_file_summary

#' @rdname bi_file_summary
#' @name bi_file_summary
#' @title NetCDF File Summary
#' @description
#' This function prints a little summary of the content
#' of a NetCDF file, as well as its creation time. You can
#' then retrieve variables of interest using \code{\link{bi_read}}.
#' @param ... Any extra parameters to \code{\link{bi_open}}, especially \code{x}
#'   and \code{file}
#' @return No return value
#' @export
#' @importFrom ncdf4 nc_close
#' @examples
#' example_output_file <- system.file(package = "rbi", "example_output.nc")
#' bi_file_summary(example_output_file)
bi_file_summary <- function(...) {
  ncfile <- bi_open(...)
  print(ncfile)
  nc_close(ncfile)
}

Try the rbi package in your browser

Any scripts or data that you put into this service are public.

rbi documentation built on Aug. 15, 2023, 5:07 p.m.