pysteps.nowcasts.utils.compute_percentile_mask

pysteps.nowcasts.utils.compute_percentile_mask#

pysteps.nowcasts.utils.compute_percentile_mask(precip, pct)#

Compute a precipitation mask, where True/False values are assigned for pixels above/below the given percentile.

Parameters:
  • precip (array_like) – Two-dimensional array of shape (m,n) containing the input precipitation field.

  • pct (float) – The percentile value.

Returns:

out – Array of shape (m,n), where True/False values are assigned for pixels above/below the precipitation intensity corresponding to the given percentile.

Return type:

ndarray_