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.Phiis zero at the top of the sphere andpiat 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 eachthetaandphipair.