R/view_nc.R

Defines functions view_nc

Documented in view_nc

#' View NetCDF file
#'
#' Prints the data from a netCDF file for viewing.
#' @param ncdf filepath; To the location of the NetCDF file to be viewed.
#' @return Prints text to the console with details from the NetCDF file.
#' @importFrom ncdf4 nc_open
#' @importFrom ncdf4 nc_close
#' @export
view_nc <- function(ncdf){
  fid = nc_open(ncdf)
  print(fid)
  nc_close(fid)
}
tadhg-moore/gotmtools documentation built on Oct. 9, 2019, 2:48 p.m.