yt.data_objects.derived_quantities.Extrema

class yt.data_objects.derived_quantities.Extrema(data_source)[source]

Calculates the min and max value of a field or list of fields.

Parameters:

fields : field or list of fields

The field over which the extrema are to be calculated.

non_zero : bool

If True, only positive values are considered in the calculation. Default: False

Examples

>>> ds = load("IsolatedGalaxy/galaxy0030/galaxy0030")
>>> ad = ds.all_data()
>>> print ad.quantities.extrema([("gas", "density"),
...                              ("gas", "temperature")])

Attributes

Methods