#include "skymap.h" #include "samba.h" .................... // Generate input spectra a + b* l + c * gaussienne(l, 50, 20) int lmax = 92; Vector clin(lmax); for(int l=0; l<lmax; l++) { double xx = (l-50.)/10.; clin(l) = 1.e-2 -1.e-4*l + 0.1*exp(-xx*xx); } // Compute map from spectra SphericalTransformServer<r_8> ylmserver; int m = 128; // HealPix pixelisation parameter SphereHEALPix<r_8> map(m); ylmserver.GenerateFromCl(map, m, clin, 0.); // Compute power spectrum from map Vector clout = ylmserver.DecomposeToCl(map, lmax, 0.);