sample_S2_equal_area_mesh#

orix.sampling.sample_S2_equal_area_mesh(resolution: float, hemisphere: str = 'both', remove_pole_duplicates: bool = True) Vector3d[source]#

Return vectors of a cube mesh on a unit sphere S2 according to equal area spacing [Rohrer et al., 2004].

Parameters:
resolution

The angular resolution in degrees of the azimuthal vectors.

hemisphere

Generate mesh points on the "upper", "lower" or "both" hemispheres. Default is "both".

remove_pole_duplicates

If True the duplicate mesh grid points at the North and South pole of the unit sphere are removed. If True then the returned vector has ndim = 1, whereas ndim = 2 (grid) if False. Default is True.

Returns:
vec

Vectors that sample the unit sphere.