gen_spherical_cap
Calculates gravitational spherical harmonic coefficients for a spherical cap
Calling Sequence
from gravity_toolkit.gen_spherical_cap import gen_spherical_cap
from gravity_toolkit.associated_legendre import plm_holmes
PLM, dPLM = plm_holmes(LMAX, np.cos(th))
Ylms = gen_spherical_cap(data, lon, lat, UNITS=1, LMAX=LMAX, PLM=PLM, LOVE=(hl,kl,ll))
- gravity_toolkit.gen_spherical_cap(data, lon, lat, LMAX=60, MMAX=None, AREA=0, RAD_CAP=0, RAD_KM=0, UNITS=1, PLM=None, LOVE=None)[source]
Calculates spherical harmonic coefficients for a spherical cap [19, 26, 30, 40, 50]
- Parameters:
- data: np.ndarray
data magnitude
- lon: np.ndarray
longitude of spherical cap center
- lat: np.ndarray
latitude of spherical cap center
- LMAX: int, default 60
Upper bound of Spherical Harmonic Degrees
- MMAX: int or NoneType, default None
Upper bound of Spherical Harmonic Orders
- AREA: Float, default 0
Area of spherical cap (cm2)
- UNITS: int, default 1
Input data units
1: cm water equivalent thickness (cm w.e., g/cm2)2: gigatonnes of mass (Gt)3: mm water equivalent thickness (mm w.e., kg/m2)list: custom unit conversion factor
- PLM: np.ndarray, default 0
Input Legendre polynomials
- LOVE: tuple or NoneType, default None
Input load Love numbers up to degree LMAX (
hl,kl,ll)
- Returns:
- clm: np.ndarray
cosine spherical harmonic coefficients
- slm: np.ndarray
sine spherical harmonic coefficients
- l: np.ndarray
spherical harmonic degree to LMAX
- m: np.ndarray
spherical harmonic order to MMAX