cosmotool/python_sample/test_spheric_proj.py

11 lines
242 B
Python

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