uxarray.UxDataArray.azimuthal_mean#
- UxDataArray.azimuthal_mean(center_coord, outer_radius, radius_step, return_hit_counts=False)#
Compute averages along circles of constant great-circle distance from a point.
- Parameters:
center_coord (tuple, list, ndarray) – Longitude and latitude of the center of the bounding circle
outer_radius (scalar, int, float) – The maximum radius, in great-circle degrees, at which the azimuthal mean will be computed.
radius_step (scalar, int, float) – Means will be computed at intervals of radius_step on the interval [0, outer_radius]
return_hit_counts (bool, false) – Indicates whether to return the number of hits at each radius
- Returns:
azimuthal_mean (xr.DataArray) – Contains a variable with a dimension ‘radius’ corresponding to the azimuthal average.
hit_counts (xr.DataArray) – The number of hits at each radius
Examples
# Range from 0° to 5° at 0.5° intervals, around the central point lon,lat=10,50 >>> az = uxds[“var”].azimuthal_mean( … center_coord=(10, 50), outer_radius=5.0, radius_step=0.5 … ) >>> az.plot(title=”Azimuthal Mean”)
Notes
Only supported for face-centered data variables. Candidate faces are determined using bounding circles - for radii = [r1, r2, r3, …] faces whose centers lie at distance d, r2 < d <= r3 are included in calculations for r3.