shxarray.geom.points#

shxarray.geom.points.point2sh(pointgeom, nmax: int = 100, auxcoord=None, axialtype='unit', psi=None) DataArray#

Convert a GeoSeries of points to axially symmetric loads expressed as SH coefficients

Parameters:
  • pointgeom (GeoSeries or array_like) – Iterable with points which describes the center of the loads

  • auxcoord (named Pandas.Series or dict(dimname=coordvalues)) – Auxiliary coordinate to map to the dimension of pointgeom. The default will construct a coordinate with an sequential numerical index and index “id”

  • axialtype (str) – Type of the load to be constructed. One of ‘unit’,’disk’,’paraboliccap’. Defaults to a unit load

  • nmax (int) – maximum degree and order to resolve

  • psi (int) – spherical width in degrees of the disk or parabolic cap. Ignored for unit loads. defaults to 1 degree

Returns:

A DataArray holding the spherical harmonic coefficients of the prescribed loads

Return type:

xr.DataArray