/
djpi2.1
37 lines (37 loc) · 1.25 KB
/
djpi2.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.\" Automatically generated by Pandoc 2.9.2
.\"
.TH "djpi2" "1" "2019-09-23" "Fortran 95" "SHTOOLS 4.6"
.hy
.SH djpi2
.PP
Compute the rotation matrix d(pi/2) used in rotating data expressed in
spherical harmonics.
.SH Usage
.PP
call djpi2 (\f[C]dj\f[R], \f[C]lmax\f[R], \f[C]exitstatus\f[R])
.SH Parameters
.TP
\f[B]\f[CB]dj\f[B]\f[R] : output, real(dp), dimension (\f[B]\f[CB]lmax\f[B]\f[R]+1, \f[B]\f[CB]lmax\f[B]\f[R]+1, \f[B]\f[CB]lmax\f[B]\f[R]+1)
The rotation matrix dj(pi/2).
.TP
\f[B]\f[CB]lmax\f[B]\f[R] : input, integer
The maximum spherical harmonic degree of the spherical harmonic
rotation.
.TP
\f[B]\f[CB]exitstatus\f[B]\f[R] : output, optional, integer
If present, instead of executing a STOP when an error is encountered,
the variable exitstatus will be returned describing the error.
0 = No errors; 1 = Improper dimensions of input array; 2 = Improper
bounds for input variable; 3 = Error allocating memory; 4 = File IO
error.
.SH Description
.PP
\f[C]djpi2\f[R] will calculate the rotation matrix
\f[C]d_{mM}\[ha]j (pi/2)\f[R] that is used in rotating spherical
harmonics in the routines \f[C]SHRotateRealCoef\f[R] and
\f[C]SHRotateCoef\f[R].
.PP
This routine is based on code originally written by Guy Masters.
.SH See also
.PP
shrotatecoef, shrotaterealcoef