shxarray.kernels.anisokernel#

class shxarray.kernels.anisokernel.AnisoKernel(dsobj, name='aniso', truncate=True)#

Bases: object

Provides functionality to work with anisotropic spherical harmonic kernels

attr = {'shtype': 'shaniso'}#
static daskeinsumReplace(subscripts, *operands, out=None, dtype=None, order='K', casting='safe', optimize=False)#

Mimics the interface of https://numpy.org/doc/stable/reference/generated/numpy.einsum.html, but uses the sparse.COO dot function

property nmax#
property nmin#
position(lon, lat)#

Position this kernel on a specific location of the sphere :param lon: Longitude(s) in degrees of position (list like) :param lat: Latitude(s) in degrees of position (list-like) :return: A xarray.DataArray with the kernel located on the specified locations