wxee.xarray.DataArrayAccessor.normalize
- DataArrayAccessor.normalize(stretch: float = 1.0) DataArray [source]
Normalize a Dataset’s values between 0 and 1.
- Parameters:
stretch (float, default 1.0) – A percentile stretch to apply before normalization between 0.0 and 0.1.
- Returns:
The dataset with normalized values.
- Return type:
xarray.DataArray
- Raises:
ValueError – If the stretch value is outside the valid range.