cf.FieldList.clip

FieldList.clip(a_min, a_max, units=None, i=False)[source]

Clip (limit) the values in the data array for each field.

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

See cf.Field.clip for details.

Parameters :

a_min : scalar

a_max : scalar

units : str or Units, optional

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.chunk

Next topic

cf.FieldList.close

This Page