// Generate input spectra a + b* l + c * gaussienne(l, 50, 20) int lmax = 92; Vector clin(lmax); for(int l=0; l ylmserver; int m = 128; // HealPix pixelisation parameter SphereHEALPix map(m); ylmserver.GenerateFromCl(map, m, clin, 0.); // Compute power spectrum from map Vector clout = ylmserver.DecomposeToCl(map, lmax, 0.); // Copy the synthetised map SphereHEALPix mapdip; mapdip = map; // Define the dipole direction double thetadipole = 1.2; double phidipole = 0.3; UnitVector vd(thetadipole, phidipole); UnitVector vc(thetadipole, phidipole); // Add a dipole component to the map for(int i=0; i