|
FML
|
This namespace contains methods for dealing with surveys. More...
Functions | |
| template<class T , class U > | |
| void | EquitorialToCartesianCoordinates (T *galaxies_ra_dec_z, size_t ngalaxies, std::vector< U > &particles_xyz, std::function< double(double)> &hubble_over_c_of_z, std::pair< double, double > &min_max_x, std::pair< double, double > &min_max_y, std::pair< double, double > &min_max_z) |
| Take a set of galaxies galaxies_ra_dec_z with (RA,DEC,z) and convert them to cartesian coordinates (x,y,z) stored in particles_xyz. More... | |
| template<class T , class U > | |
| void | GalaxiesToBox (const T *galaxies_ra_dec_z, size_t ngalaxies, std::vector< U > &particles_xyz, std::function< double(double)> &hubble_over_c_of_z, double &boxsize, std::vector< double > &observer_position, bool shiftPositions, bool scalePositions, bool verbose) |
| Transform galaxies with positions defined by RA,DEC,Z and transform these to cartesian positions in [0,1). More... | |
| template<class T , class U > | |
| void | GalaxiesRandomsToBox (const T *galaxies_ra_dec_z, size_t ngalaxies, const T *randoms_ra_dec_z, size_t nrandoms, std::vector< U > &galaxies_xyz, std::vector< U > &randoms_xyz, std::function< double(double)> &hubble_over_c_of_z, double &boxsize, bool shiftPositions, bool scalePositions, std::vector< double > &observer_position, bool verbose) |
| Transform galaxies and randos with positions defined by RA,DEC,Z and transform these to cartesian positions in [0,1. More... | |
This namespace contains methods for dealing with surveys.
So far its not much here just some conversion from equitorial to cartesian coordinates.
| void FML::SURVEY::EquitorialToCartesianCoordinates | ( | T * | galaxies_ra_dec_z, |
| size_t | ngalaxies, | ||
| std::vector< U > & | particles_xyz, | ||
| std::function< double(double)> & | hubble_over_c_of_z, | ||
| std::pair< double, double > & | min_max_x, | ||
| std::pair< double, double > & | min_max_y, | ||
| std::pair< double, double > & | min_max_z | ||
| ) |
Take a set of galaxies galaxies_ra_dec_z with (RA,DEC,z) and convert them to cartesian coordinates (x,y,z) stored in particles_xyz.
The positions will be in the same units as the 1.0/hubble_over_c_of_z Gives back the min/max of the positions (useful for boxing the catalog)
| T | Particle class for the galaxies |
| U | Particle class for the particles we make from the galaxies |
| [in] | galaxies_ra_dec_z | Particles with RA, DEC and Z. |
| [in] | ngalaxies | Number of galaxies |
| [out] | particles_xyz | Vector with galaxies as particles with cartesian coordinates. |
| [in] | hubble_over_c_of_z | This is the function \( H(z)/c \) used to compute the redshift-comobing distance relationship. Postions units is the same as those of \( c/H(z) \) (so e.g. if you want Mpc/h then we need H0 = 100, if you want kpc/s then use H0 = 10^5 and so on. |
| [out] | min_max_x | The min/max values of x-postions |
| [out] | min_max_y | The min/max values of x-postions |
| [out] | min_max_z | The min/max values of x-postions |
Definition at line 83 of file GalaxiesToBox.h.
| void FML::SURVEY::GalaxiesRandomsToBox | ( | const T * | galaxies_ra_dec_z, |
| size_t | ngalaxies, | ||
| const T * | randoms_ra_dec_z, | ||
| size_t | nrandoms, | ||
| std::vector< U > & | galaxies_xyz, | ||
| std::vector< U > & | randoms_xyz, | ||
| std::function< double(double)> & | hubble_over_c_of_z, | ||
| double & | boxsize, | ||
| bool | shiftPositions, | ||
| bool | scalePositions, | ||
| std::vector< double > & | observer_position, | ||
| bool | verbose | ||
| ) |
Transform galaxies and randos with positions defined by RA,DEC,Z and transform these to cartesian positions in [0,1.
Useful if we have more catalogues like galaxy + randoms we should use the same shift and same boxsize so do it together.
| T | Particle class for the galaxies/randoms |
| U | Particle class for the particles we make from the galaxies/randoms |
| [in] | galaxies_ra_dec_z | Galaxies with RA, DEC and Z. |
| [in] | ngalaxies | Number of galaxies |
| [in] | randoms_ra_dec_z | Random galaxies with RA, DEC and Z. |
| [in] | nrandoms | Number of random galaxies |
| [out] | galaxies_xyz | Vector with galaxies as particles with cartesian coordinates. |
| [out] | randoms_xyz | Vector with random galaxies as particles with cartesian coordinates. |
| [in] | hubble_over_c_of_z | This is the function \( H(z)/c \) used to compute the redshift-comobing distance relationship. Postions units is the same as those of \( c/H(z) \) (so e.g. if you want Mpc/h then we need H0 = 100, if you want kpc/s then use H0 = 10^5 and so on. |
| [out] | boxsize | The boxsize we need to place the galaxies and randoms in a cubic box. |
| [in] | shiftPositions | Shift the positions such that all are >=0 |
| [in] | scalePositions | Scale positions so that all are in [0,1). This requires also shifting positions. |
| [out] | observer_position | If we don't shift the positions the observer is at (0,0,0). Otherwise we return the position of the observer after shifting the box. |
| [in] | verbose | Print info while doing this. |
Definition at line 310 of file GalaxiesToBox.h.
| void FML::SURVEY::GalaxiesToBox | ( | const T * | galaxies_ra_dec_z, |
| size_t | ngalaxies, | ||
| std::vector< U > & | particles_xyz, | ||
| std::function< double(double)> & | hubble_over_c_of_z, | ||
| double & | boxsize, | ||
| std::vector< double > & | observer_position, | ||
| bool | shiftPositions, | ||
| bool | scalePositions, | ||
| bool | verbose | ||
| ) |
Transform galaxies with positions defined by RA,DEC,Z and transform these to cartesian positions in [0,1).
| T | Particle class for the galaxies |
| U | Particle class for the particles we make from the galaxies |
| [in] | galaxies_ra_dec_z | Particles with RA, DEC and Z. |
| [in] | ngalaxies | Number of galaxies |
| [out] | particles_xyz | Vector with galaxies as particles with cartesian coordinates. |
| [in] | hubble_over_c_of_z | This is the function \( H(z)/c \) used to compute the redshift-comobing distance relationship. Postions units is the same as those of \( c/H(z) \) (so e.g. if you want Mpc/h then we need H0 = 100, if you want kpc/s then use H0 = 10^5 and so on. |
| [out] | boxsize | The boxsize we need to place the particles in a cubic box. |
| [in] | shiftPositions | Shift the positions such that all are >=0 |
| [in] | scalePositions | Scale positions so that all are in [0,1). This requires also shifting positions. |
| [in] | verbose | Print info while doing this. |
Definition at line 202 of file GalaxiesToBox.h.