cosmotool/python_sample/test_spheric_proj.py
Guilhem Lavaux 7f338f43f2 Fixes
2014-06-05 16:24:08 +02:00

11 lines
275 B
Python

import cosmotool as ct
import numpy as np
import healpy as hp
d = np.zeros((64,64,64), ct.DTYPE)
d[32,32,32] = 1
proj0 = ct.spherical_projection(64, d, 0, 20, integrator_id=0, shifter=np.array([0.5,0.5,0.5]))
proj1 = ct.spherical_projection(64, d, 0, 20, integrator_id=1)