cf.FieldList.expand_dims

FieldList.expand_dims(position=0, axis=None, i=False, **kwargs)[source]

Insert a size 1 axis into the data array of each field in place.

fl.expand_dims(....) is equivalent to cf.FieldList(f.expand_dims(....) for f in fl).

See cf.Field.expand_dims for details.

Parameters :
args, kwargs : optional

See cf.Field.expand_dims.

Returns :

out : cf.FieldList

Previous topic

cf.FieldList.equals

Next topic

cf.FieldList.fill_value

This Page