Reformat a particle lightcone into radial bins and healpix cells. Uses a fixed radial bin width of 25 Mpc/h, and breaks each bin into healpix cells of increasing resolution to maintain approximately the same file size. All healpix cells are numbered according to the NESTED ordering scheme.
Files are not created for cells with no particles in them. The exception to this is that radial bins are guaranteed to always have a file for healpix cell 0. This file may be used to determine the nside used for its radial bin.
Header format:
unsigned long npart : number of particles in the present file
unsigned int indexnside : nside value used to sort particles within this file
unsigned int filenside : nside used to break up radial bin this file falls in
float rmin : minimum radius kept from this box
float rmax : maximum radius
unsigned long npartrad : number of particles in this radial bin
float boxsize : in Mpc/h
double mass : particle mass in 1e10 M_sun/h
double omega0
double omegalambda
double hubbleparam : little 'h'
The particles are sorted by the Peano-Hilbert index of the healpix cell they fall within using an nside value specified by the indexnside field in the header of the file.
Immediately after the header there is a list of
Following this index is the particle data formatted as follows:
positions : 3*npart floats
velocities : 3*npart floats
ids : 1*npart unsigned long int