geocat.comp.spherical.scale_voronoi

Contents

geocat.comp.spherical.scale_voronoi#

geocat.comp.spherical.scale_voronoi(theta, phi)#

Calculate the area weighting for dataset.

Parameters:
  • theta (numpy.ndarray, xarray.DataArray) – 2-dimensional array containing the theta (longitude in radians) values for each datapoint in data.

  • phi (numpy.ndarray, xarray.DataArray) – 2-dimensional array containing the theta (latitude in radians) values for each datapoint in data. Phi is zero at the top of the sphere and pi at the bottom, phi = (lat_degrees-90)*(-1)*pi/180

Returns:

scale (numpy.ndarray, xarray.DataArray) – 2-dimensional array containing the area of the spherical voronoi cell for each theta and phi pair.