cosmotool/python_sample/test_spheric_proj.py

11 lines
275 B
Python
Raw Normal View History

import cosmotool as ct
import numpy as np
import healpy as hp
d = np.zeros((64,64,64), ct.DTYPE)
2014-06-05 16:24:08 +02:00
d[32,32,32] = 1
2014-06-05 16:24:08 +02:00
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)