Check healpix utility calls
This commit is contained in:
parent
4c482daf9b
commit
bb20fcee05
3 changed files with 32 additions and 22 deletions
|
@ -7,14 +7,19 @@ using namespace std;
|
|||
int main()
|
||||
{
|
||||
HealpixFourierTransform<double> dft(128,2*128,2*128, 40);
|
||||
HealpixUtilityFunction<double> utils;
|
||||
long Npix = dft.realSpace().size();
|
||||
|
||||
dft.realSpace().eigen().setRandom();
|
||||
dft.analysis();
|
||||
cout << "Map dot-product = " << dft.realSpace().dot_product(dft.realSpace()) << endl;
|
||||
cout << "Fourier dot-product = " << dft.fourierSpace().dot_product(dft.fourierSpace()).real()*Npix/(4*M_PI) << endl;
|
||||
cout << "Spectrum analysis" << endl;
|
||||
HealpixUtilityFunction<double>::Spectrum_ptr s = utils.estimateSpectrumFromMap(dft.fourierSpace());
|
||||
|
||||
dft.synthesis();
|
||||
cout << "Resynthesis dot-product = " << dft.realSpace().dot_product(dft.realSpace()) << endl;
|
||||
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue