cf.Constructs¶
-
class
cf.
Constructs
(auxiliary_coordinate=None, dimension_coordinate=None, domain_ancillary=None, field_ancillary=None, cell_measure=None, coordinate_reference=None, domain_axis=None, cell_method=None, source=None, copy=True, _use_data=True, _view=False, _ignore=())[source]¶ Bases:
cfdm.constructs.Constructs
A container for metadata constructs.
Calling a
Constructs
instance selects metadata constructs by identity and is an alias for thefilter_by_identity
method.Examples:
Select constructs that have a “standard_name” property of ‘latitude’:
>>> d = c('latitude')
New in version 3.0.0.
Initialization
- Parameters
- auxiliary_coordinate:
str
, optional The base name for keys of auxiliary coordinate constructs.
- Parameter example:
auxiliary_coordinate='auxiliarycoordinate'
- dimension_coordinate:
str
, optional The base name for keys of dimension coordinate constructs.
- Parameter example:
dimension_coordinate='dimensioncoordinate'
- domain_ancillary:
str
, optional The base name for keys of domain ancillary constructs.
- Parameter example:
domain_ancillary='domainancillary'
- field_ancillary:
str
, optional The base name for keys of field ancillary constructs.
- Parameter example:
field_ancillary='fieldancillary'
- cell_measure:
str
, optional The base name for keys of cell measure constructs.
- Parameter example:
cell_measure='cellmeasure'
- coordinate_reference:
str
, optional The base name for keys of coordinate reference constructs.
- Parameter example:
coordinate_reference='coordinatereference'
- domain_axis:
str
, optional The base name for keys of domain axis constructs.
- Parameter example:
domain_axis='domainaxis'
- cell_method:
str
, optional The base name for keys of cell method constructs.
- Parameter example:
cell_method='cellmethod'
- source: optional
Initialize the construct keys and contained metadata constructs from those of source.
- copy:
bool
, optional If False then do not deep copy metadata constructs from those of source prior to initialization. By default such metadata constructs deep copied.
- auxiliary_coordinate:
Filtering¶
Methods
Select metadata constructs by identity. |
|
Select metadata constructs by property. |
|
Select cell measure constructs by measure. |
|
Select cell method constructs by method. |
|
Select metadata constructs by axes spanned by their data. |
|
Select metadata constructs by the number of domain axis contructs spanned by their data. |
|
Select domain axis constructs by size. |
|
Select metadata constructs by whether they could contain data. |
|
Select metadata constructs by type. |
|
Select metadata constructs by key. |
|
Select domain axis constructs by netCDF dimension name. |
|
Select domain axis constructs by netCDF variable name. |
|
A history of filters that have been applied. |
|
Remove the history of filters that have been applied. |
|
Return the inverse of previous filters. |
|
Return the constructs that existed prior to previous filters. |
Constructs and keys¶
Methods
Return the construct key of the sole metadata construct. |
|
Return the sole metadata construct. |
Miscellaneous¶
Methods
Return a deep copy. |
|
Return a shallow copy. |
|
Whether two |
|
Return the contructs in their predetermined order. |
|
TODO |
|
TODO |
|
Return the canonical identity for a domain axis construct. |
|
Return a new, unsed construct key. |
|
TODO |
Dictionary-access methods¶
Methods
Return the construct for construct key, if it exists, else default. |
|
Return the items as (construct key, construct) pairs. |
|
Return all of the construct keys, in arbitrary order. |
|
Returns all of the metadata constructs, in arbitrary order. |
|
Return a construct with the given key. |
Special¶
Methods
Select metadata constructs by identity. |
|
Called to implement membership test operators for construct keys. |
|
Called by the |
|
Called by the |
|
Return a construct with the given key. |
|
Called when an iterator is required. |
|
Return the number of constructs. |
|
Called by the |
|
Called by the |