Skip to content

Instantly share code, notes, and snippets.

@evanbiederstedt
Created July 15, 2015 22:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evanbiederstedt/2c4a4c9c1494383dd0e5 to your computer and use it in GitHub Desktop.
Save evanbiederstedt/2c4a4c9c1494383dd0e5 to your computer and use it in GitHub Desktop.
Properties of CMB map array
import numpy as np
tempp = (1e6)*tempval # multiply CMB maps by 1e6
print tempp.shape # array shape
OUTPUT:
(3072,)
print np.median(tempp) # median
OUTPUT:
2.81161430848
print np.average(tempp) # weighted average
OUTPUT:
0.000739081832773
print np.mean(tempp)
OUTPUT:
0.000739081832773
print np.var(tempp)
OUTPUT:
2676.42822051
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment