cf.FieldList.datum

FieldList.datum(*index)[source]

Return an element of the data array for each field as a standard Python scalar.

fl.datum() is equivalent to cf.List(f.datum() for f in fl).

See cf.Field.datum for details.

Parameters:
index : optional

Specify which element to return. See cf.Field.datum for details.

Return:
out : cf.List

For each field, the requested element of the data array.

Previous topic

cf.FieldList.data_axes

Next topic

cf.FieldList.delattr

This Page