ILAMB.Variable.Variable.toNetCDF4

Variable.toNetCDF4(dataset, attributes=None, group=None)[source]

Adds the variable to the specified netCDF4 dataset.

Parameters
  • dataset (netCDF4.Dataset) – a dataset into which you wish to save this variable

  • attributes (dict of scalars, optional) – a dictionary of additional scalars to encode as ncattrs

  • group (str, optional) – the name of the netCDF4 group to to which we add this variable