Skip to content

Add "item" keyword to construct selection methods #203

@davidhassell

Description

@davidhassell

Add an item keyword to construct, dimension_coordinate, and similar methods that will return both a unique construct and its identifier in an efficient manner:

>>> import cf
>>> f = cf.example_field(1)
>>> f.construct('latitude', item=True)
('auxiliarycoordinate0',` <CF AuxiliaryCoordinate: latitude(10, 9) degrees_N>)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestperformanceRelating to speed and memory performance

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions