ncdf4: Interface to Unidata netCDF (Version 4 or Earlier) Format Data Files

Provides a high-level R interface to data files written using Unidata's netCDF library (version 4 or earlier), which are binary data files that are portable across platforms and include metadata information in addition to the data sets. Using this package, netCDF files (either version 4 or "classic" version 3) can be opened and data sets read in easily. It is also easy to create new netCDF dimensions, variables, and files, in either version 3 or 4 format, and manipulate existing netCDF files. This package replaces the former ncdf package, which only worked with netcdf version 3 files. For various reasons the names of the functions have had to be changed from the names in the ncdf package. The old ncdf package is still available at the URL given below, if you need to have backward compatibility. It should be possible to have both the ncdf and ncdf4 packages installed simultaneously without a problem. However, the ncdf package does not provide an interface for netcdf version 4 files.

Install the latest version of this package by entering the following in R:
AuthorDavid Pierce <>
Date of publication2017-04-01 22:56:52 UTC
MaintainerDavid Pierce <>
LicenseGPL (>= 3)

View on CRAN


blankstring_ncdf4 Man page
default_missval_ncdf4 Man page
nc4_basename Man page
nc4_loop Man page
ncatt_get Man page
ncatt_get_inner Man page
ncatt_get_n Man page
ncatt_put Man page
ncatt_put_inner Man page
nc_close Man page
nc_create Man page
ncdf4_format Man page
ncdf4_make_id Man page
ncdf4-package Man page
ncdim_create Man page
ncdim_def Man page
ncdim_id Man page
ncdim_inq Man page
ncdim_same Man page
nc_enddef Man page
nc_get_grp_info Man page
nc_groups_below Man page
nc_grpids Man page
nc_grpname Man page
nc_make_group_inner Man page
nc_open Man page
nc_parse_group_structure Man page
nc_redef Man page
nc_sync Man page
nc_unlimdim Man page
ncvar_add Man page
ncvar_change_missval Man page
ncvar_def Man page
ncvar_def_chunking Man page
ncvar_def_deflate Man page
ncvar_get Man page
ncvar_get_inner Man page
ncvar_id Man page
ncvar_id_to_missing_value Man page
ncvar_inq Man page
ncvar_inq_chunking Man page
ncvar_inq_deflate Man page
ncvar_name Man page
ncvar_ndims Man page
ncvar_put Man page
ncvar_rename Man page
ncvar_size Man page
ncvar_type Man page
ncvar_type_to_string Man page
nc_version Man page
nslashes_ncdf4 Man page
print.ncdf4 Man page
vobjtovarid4 Man page

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.