area_weighted_binwise_averages

nawdex_analysis.analysis.averaging.area_weighted_binwise_averages(v, a, selector, bins)

Calculates area fractions of variable values in certain intervals.

Parameters:
  • v (numpy array, 2dim) – variables field to be averaged
  • a (numpy array, 2dim) – grid box areas
  • selector (numpy array, 2dim) – field that selects the variable mask
  • bins (numpy array, 1dim) – set of values used for binning
Returns:

afrac – relative area fractions

Return type:

numpy array, 1dim