finam_netcdf.Variable#
- class finam_netcdf.Variable(name, io_name=None, slices=None, static=None, **info_kwargs)[source]#
Bases:
object
Specifications for a NetCDF variable.
- Parameters:
name (str) – Variable name in the NetCDF file.
io_name (str, optional) – Desired name of the respective Input/Output in the FINAM component. Will be the variable name by default.
slices (dict of str, int, optional) – Dictionary for fixed coordinate indices (e.g. {‘time’: 0})
static (bool or None, optional) – Flag indicating static data. If None, this will be determined. Writer will interprete None as False. Default: None
**info_kwargs – Optional keyword arguments to instantiate an Info object (i.e. ‘grid’ and ‘meta’) Used to overwrite meta data, to change units or to provide a desired grid specification.
Methods
get_meta
()Get the meta-data dictionary of this variable.