cf.FieldList.unsqueeze

FieldList.unsqueeze(axes=None, i=False, **kwargs)[source]

Insert size 1 axes into the data array of each field.

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

See cf.Field.unsqueeze for details.

Parameters:
args, kwargs : optional

See cf.Field.unsqueeze.

i : bool, optional

If True then update the field list and its fields in place. By default a new field list containing new fields is created.

Returns:

out : cf.FieldList

Previous topic

cf.FieldList.transpose

Next topic

cf.FieldList.where

This Page