Skip to contents

Create and write netCDF files

Functions to create new netCDF files and write data or attributes.

write_ncdf()
Write data to a netCDF file

Inspect netCDF structure

Functions to inspect variables, dimensions, compression, and attributes.

ncvar_dim()
Get variable dimensions from a netCDF file
ncvar_size()
Get variable sizes from a netCDF file
ncdim_size()
Get dimension lengths from a netCDF file
ncdim_isUnlim()
Test whether dimensions are unlimited
ncvar_compression()
Get variable compression settings from a netCDF file
ncatt_get_all()
Get all attributes from variables or dimensions

Modify netCDF structure

Functions to rename, reconfigure, or update structural properties of existing files.

nc_rename()
Rename variables and dimensions in a netCDF file
nc_unlim()
Set a dimension as unlimited
ncvar_change_compression()
Change variable compression settings in a netCDF object
ncatt_put_all()
Write multiple attributes to a netCDF variable or file

Extract and transform variables

Functions to extract, subset, concatenate, or transform variables in netCDF files.

nc_extract()
Extract a variable to a new netCDF file
nc_subset()
Subset a variable in a netCDF file
nc_rcat()
Concatenate records of a variable across netCDF files
nc_apply()
Apply a function over margins of a netCDF variable
nc_loc()
Locate the depth where a variable reaches a given value
nc_changePrimeMeridian()
Change the prime meridian of a variable in a netCDF file

Summary statistics

Functions to compute summary statistics over margins of netCDF variables.

nc_mean() nc_min() nc_max()
Compute summary statistics of a netCDF variable
nc_quantile()
Compute sample quantiles of a netCDF variable

Longitude utilities

Helpers to detect and standardise longitude conventions.

checkLongitude()
Standardise longitude values to a selected prime meridian convention
findPrimeMeridian()
Identify the prime meridian convention from longitude values