get_data_range#
- StructuredGrid.get_data_range(arr_var: Optional[Union[str, numpy.ndarray]] = None, preference='cell') Tuple[Union[float, numpy.ndarray], Union[float, numpy.ndarray]] #
Get the non-NaN min and max of a named array.
- Parameters
- arr_var
str
,np.ndarray
,optional
The name of the array to get the range. If
None
, the active scalars is used.- preference
str
,optional
When scalars is specified, this is the preferred array type to search for in the dataset. Must be either
'point'
,'cell'
, or'field'
.
- arr_var
- Returns
tuple
(min, max)
of the named array.