
| HOME | DOWNLOAD | DOCUMENTATION | FAQ |
> Home > Documentation > Fortran 95 > Spherical Harmonic I/O and Storage
YilmIndexVector
Compute the index of an 1D array of spherical harmonic coefficients corresponding to i, l, and m.
Usage
index = YilmIndex (i, l, m)
Parameters
index: output, integer- Index of an 1D array of spherical harmonic coefficients corresponding to
i,l, andm. i: input, integer- 1 corresponds to the cosine coefficient
cilm(1,:,:), and 2 corresponds to the sine coefficientcilm(2,:,:). l: input, integer- The spherical harmonic degree.
m: input, integer- The angular order.
Description
YilmIndexVector will calculate the index of a 1D vector of spherical harmonic coefficients corresponding to degree l, angular order m and i (1 = cosine, 2 = sine). The index is given by l**2+(i-1)*l+m+1.
See also
shcilmtovector, shvectortocilm
> Home > Documentation > Fortran 95 > Spherical Harmonic I/O
| Laboratoire Lagrange | Observatoire de la Côte d'Azur | © 2017 SHTOOLS |