SHTns 3.7
sht_com.c File Reference

Common spherical harmonic tranforms. More...

Go to the source code of this file.

Functions

double shtns_wtime ()
 common sht functions and api calls
 
double SH_to_spat_time (shtns_cfg shtns, cplx *Qlm, double *Vr)
 same as SH_to_spat() but with time recording; returns time in seconds
 
double spat_to_SH_time (shtns_cfg shtns, double *Vr, cplx *Qlm)
 same as spat_to_SH() but with time recording; returns time in seconds
 
void SH_to_spat (shtns_cfg shtns, cplx *Qlm, double *Vr)
 transform the spherical harmonic coefficients Qlm into its spatial representation Vr.
 
void spat_to_SH (shtns_cfg shtns, double *Vr, cplx *Qlm)
 transform the scalar field Vr into its spherical harmonic representation Qlm.
 
void SHsphtor_to_spat (shtns_cfg shtns, cplx *Slm, cplx *Tlm, double *Vt, double *Vp)
 transform spheroidal-toroidal spherical harmonic coefficients (Slm,Tlm) to the spatial theta and phi components (Vt,Vp).
 
void spat_to_SHsphtor (shtns_cfg shtns, double *Vt, double *Vp, cplx *Slm, cplx *Tlm)
 transform the theta and phi components (Vt,Vp) of a vector into its spheroidal-toroidal spherical harmonic representation (Slm,Tlm).
 
void SHqst_to_spat (shtns_cfg shtns, cplx *Qlm, cplx *Slm, cplx *Tlm, double *Vr, double *Vt, double *Vp)
 3D vector transform from radial-spheroidal-toroidal spectral components (see Radial - Spheroidal - Toroidal decomposition) to spherical coordinates.
 
void spat_to_SHqst (shtns_cfg shtns, double *Vr, double *Vt, double *Vp, cplx *Qlm, cplx *Slm, cplx *Tlm)
 3D vector transform from spherical coordinates to radial-spheroidal-toroidal spectral components (see Radial - Spheroidal - Toroidal decomposition).
 
void SHtor_to_spat (shtns_cfg shtns, cplx *Tlm, double *Vt, double *Vp)
 transform toroidal spherical harmonic coefficients Tlm to the spatial theta and phi components (Vt,Vp).
 
void SHsph_to_spat (shtns_cfg shtns, cplx *Slm, double *Vt, double *Vp)
 transform spheroidal spherical harmonic coefficients Slm to the spatial theta and phi components (Vt,Vp), effectively computing the gradient of S.
 
void SH_to_spat_l (shtns_cfg shtns, cplx *Qlm, double *Vr, int ltr)
 
void spat_to_SH_l (shtns_cfg shtns, double *Vr, cplx *Qlm, int ltr)
 
void SHsphtor_to_spat_l (shtns_cfg shtns, cplx *Slm, cplx *Tlm, double *Vt, double *Vp, int ltr)
 
void spat_to_SHsphtor_l (shtns_cfg shtns, double *Vt, double *Vp, cplx *Slm, cplx *Tlm, int ltr)
 
void SHqst_to_spat_l (shtns_cfg shtns, cplx *Qlm, cplx *Slm, cplx *Tlm, double *Vr, double *Vt, double *Vp, int ltr)
 
void spat_to_SHqst_l (shtns_cfg shtns, double *Vr, double *Vt, double *Vp, cplx *Qlm, cplx *Slm, cplx *Tlm, int ltr)
 
void SHtor_to_spat_l (shtns_cfg shtns, cplx *Tlm, double *Vt, double *Vp, int ltr)
 
void SHsph_to_spat_l (shtns_cfg shtns, cplx *Slm, double *Vt, double *Vp, int ltr)
 
void SH_to_spat_ml (shtns_cfg shtns, int im, cplx *Qlm, cplx *Vr, int ltr)
 
void spat_to_SH_ml (shtns_cfg shtns, int im, cplx *Vr, cplx *Qlm, int ltr)
 
void SHsphtor_to_spat_ml (shtns_cfg shtns, int im, cplx *Slm, cplx *Tlm, cplx *Vt, cplx *Vp, int ltr)
 
void spat_to_SHsphtor_ml (shtns_cfg shtns, int im, cplx *Vt, cplx *Vp, cplx *Slm, cplx *Tlm, int ltr)
 
void SHqst_to_spat_ml (shtns_cfg shtns, int im, cplx *Qlm, cplx *Slm, cplx *Tlm, cplx *Vr, cplx *Vt, cplx *Vp, int ltr)
 
void spat_to_SHqst_ml (shtns_cfg shtns, int im, cplx *Vr, cplx *Vt, cplx *Vp, cplx *Qlm, cplx *Slm, cplx *Tlm, int ltr)
 
void SHtor_to_spat_ml (shtns_cfg shtns, int im, cplx *Tlm, cplx *Vt, cplx *Vp, int ltr)
 
void SHsph_to_spat_ml (shtns_cfg shtns, int im, cplx *Slm, cplx *Vt, cplx *Vp, int ltr)
 

Detailed Description

Common spherical harmonic tranforms.