Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (23 sloc) 1.14 KB
function lmcosi=klm2lmcosi(C,wot)
% lmcosi=KLM2LMCOSI(C,wot)
% From the eigenfunctions C of the output of KERNELC, extracts the wot'th
% column and produces a matrix of the form lmcosi suitable for input to
% PLM2XYZ or PLOTPLM etc. Since KERNELC works with unit-normalized
% harmonics and PLM2XYZ with 4*pi-normalized ones, we renormalize. We
% didn't use to do this elsewhere, but from now on, it will matter.
% Last modified by, 07/11/2012
% Collect the output into a format that PLM2XYZ knows how to interpret
% Construct the full matrix
% Renormalize so that when multiplied with 4pi-harmonics they have the
% same integral. Note that this has nothing special for the m=0 zonal
% coefficients - it's simply the last mile of the normalization. Check
% this using Fibonacci_grid as suggested in GALPHA.
% Remember that if you were to use YLM for rendering you'd have to add
% the (-1)^m phase factor which is missing from this.