cfdm.PartNodeCountProperties


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

Bases: NetCDFVariable, NetCDFDimension, Properties, Files, Properties

Properties for a netCDF part 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.

The name of the netCDF dimension spanned by the netCDF part node count variable’s data may be accessed with the nc_set_dimension, nc_get_dimension, nc_del_dimension and nc_has_dimension 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 PartNodeCountProperties instance.

All other parameters, apart from copy, are ignored and their values are instead inferred from source by assuming that it has the PartNodeCountProperties 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 PartNodeCountProperties instance then cfdm.PartNodeCountProperties(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 part 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_dimension_groups

Remove the netCDF dimension group hierarchy.

nc_clear_variable_groups

Remove the netCDF variable group hierarchy.

nc_del_dimension

Remove the netCDF dimension name.

nc_del_variable

Remove the netCDF variable name.

nc_dimension_groups

Return the netCDF dimension group hierarchy.

nc_get_dimension

Return the netCDF dimension name.

nc_get_variable

Return the netCDF variable name.

nc_has_dimension

Whether the netCDF dimension name has been set.

nc_has_variable

Whether the netCDF variable name has been set.

nc_set_dimension

Set the netCDF dimension name.

nc_set_dimension_groups

Set the netCDF dimension group hierarchy.

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.