Created
October 2, 2012 18:24
-
-
Save zonca/3822039 to your computer and use it in GitHub Desktop.
angular power spectrum white noise
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| nside = 128 | |
| import healpy as hp | |
| import numpy as np | |
| tmap = np.random.normal(scale=1, size=12*nside**2) | |
| qmap = np.random.normal(scale=1.2, size=12*nside**2) | |
| umap = np.random.normal(scale=.8, size=12*nside**2) | |
| cltt, clee, clbb, clte, cleb, cltb = hp.anafast( [tmap, qmap, umap], lmax=2*nside ) | |
| exp = 4.*np.pi/12./nside**2 | |
| print "expect = ", exp | |
| print " cltt av = ", cltt[2:].mean() | |
| print " cltt rat = ", cltt[2:].mean() / exp * 100 | |
| var = (1.2**2 + .8**2) /2 | |
| print "expect = ", exp * var | |
| print " clee av = ", clee[2:].mean() | |
| print " clee rat = ", clee[2:].mean() / exp / var * 100 |
zonca
commented
Oct 2, 2012
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment