Slice

slice = Slice(remap, sky)

Remapped cuboid remap is sliced to fit multiple sky volumes in the cuboid.

Method Result
slice.boxsize Tuple $\in \mathbb(R)^3$; size of the sliced box

In [9]:
import mockgallib as mock

# remap
u =  [2, 2, 1, 1, 0, 0, 0, 1, 0]
boxsize = 600.0
remap = mock.Remap(u, boxsize)

# sky
ra_range  = [30.1, 38.9]
dec_range = [-6.0, -4.1]
z_range   = [0.38889, 1.21239]
sky = mock.Sky(ra_range, dec_range, z_range)

# slice
slice = mock.Slice(remap, sky)

print('{} slices of size {}, '.format(len(slice), slice.boxsize))
print('fits in a cuboid of size {}'.format(remap.boxsize))
print('where, each sky fits within size {}'.format(sky.boxsize))


3 slices of size (1800.0, 447.213623046875, 89.44271850585938), 
fits in a cuboid of size (1800.0, 447.213623046875, 268.3281555175781)
where, each sky fits within size (1597.3975830078125, 406.0537414550781, 87.97805786132812)

In [10]:
%%html
<style>table {float:left}</style>