cfdm.NodeCountProperties


class cfdm.NodeCountProperties(properties=None, source=None, copy=True)[source]

Bases: NetCDFVariable, Properties, Files, Properties

Properties for a netCDF node count variable.

NetCDF interface

The netCDF variable name may be accessed with the nc_set_variable, nc_get_variable, nc_del_variable, and nc_has_variable methods.

The netCDF variable group structure may be accessed with the nc_set_variable, nc_get_variable, nc_variable_groups, nc_clear_variable_groups, and nc_set_variable_groups methods.

Added in version (cfdm): 1.8.0

Initialisation

Parameters:
properties: dict, optional

Set descriptive properties. The dictionary keys are property names, with corresponding values.

Properties may also be set after initialisation with the set_properties and set_property methods.

Parameter example:

properties={'standard_name': 'altitude'}

source: optional

Convert source, which can be any type of object, to a NodeCountProperties instance.

All other parameters, apart from copy, are ignored and their values are instead inferred from source by assuming that it has the NodeCountProperties API. Any parameters that can not be retrieved from source in this way are assumed to have their default value.

Note that if x is also a NodeCountProperties instance then cfdm.NodeCountProperties(source=x) is equivalent to x.copy().

copy: bool, optional

If True (the default) then deep copy the input parameters prior to initialisation. By default the parameters are not deep copied.

Methods

Methods

clear_properties

Remove all properties.

copy

Return a deep copy.

creation_commands

Return the commands that would create the construct.

del_properties

Remove properties.

del_property

Remove a property.

dump

A full description of the node count variable.

equals

Whether two instances are the same.

get_original_filenames

The names of files containing the original data and metadata.

get_property

Return a property.

has_bounds

Whether or not there are cell bounds.

has_data

Whether or not the construct has data.

has_property

Whether a property has been set.

identities

Return all possible identities.

identity

Return the canonical identity.

nc_clear_variable_groups

Remove the netCDF variable group hierarchy.

nc_del_variable

Remove the netCDF variable name.

nc_get_variable

Return the netCDF variable name.

nc_has_variable

Whether the netCDF variable name has been set.

nc_set_variable

Set the netCDF variable name.

nc_set_variable_groups

Set the netCDF variable group hierarchy.

nc_variable_groups

Return the netCDF variable group hierarchy.

properties

Return all properties.

set_properties

Set properties.

set_property

Set a property.