|
sfof
|
Class for splitting galaxy catalogues. More...
#include <cat_split.hpp>
Public Member Functions | |
| void | read_options (int, char *[]) |
| This method calls Option to read the code options from the provided arguments. More... | |
| void | set_up () |
| This method sets up the of split files. More... | |
| void | open_files () |
| This method opens all of the split files. More... | |
| void | close_files () |
| This method closes all of the split files. More... | |
| void | check_pos (double, double) |
| This method checks the ra and dec of a given object. More... | |
| void | find_bin (double, double, std::vector< int > &) |
| This method determines to which split file a given galaxy should be written. More... | |
| void | read_ascii () |
| This method reads the galaxies from the input catalogues and writes them to the corresponding split files. More... | |
Public Attributes | |
| Comp | comp |
| Include Comp class. More... | |
Private Attributes | |
| Fileio | fileio |
| Include Fileio class. More... | |
| Option | opt |
| Include Option class. More... | |
| int | number_of_files |
| Number of files to which split data will be written. More... | |
| double | ra_bin_size |
| Range in right ascension covered by each split file. More... | |
| double | dec_bin_size |
| Range in declination covered by each split file. More... | |
| std::vector< std::ofstream * > | file_list |
| Vector of output file pointers. More... | |
Class for splitting galaxy catalogues.
This class splits a catalogue of galaxies into overlapping pieces.
| void Cat_Split::check_pos | ( | double | ra, |
| double | dec | ||
| ) |
This method checks the ra and dec of a given object.
| [in] | ra | Right ascension of galaxy. |
| [in] | dec | Declination of galaxy. |
| void Cat_Split::close_files | ( | ) |
This method closes all of the split files.
| void Cat_Split::find_bin | ( | double | ra, |
| double | dec, | ||
| std::vector< int > & | bins | ||
| ) |
This method determines to which split file a given galaxy should be written.
| [in] | ra | Right ascension of galaxy. |
| [in] | dec | Declination of galaxy. |
| [in] | bins | Vector of split file numbers. |
| void Cat_Split::open_files | ( | ) |
This method opens all of the split files.
| void Cat_Split::read_ascii | ( | ) |
This method reads the galaxies from the input catalogues and writes them to the corresponding split files.
| void Cat_Split::read_options | ( | int | argc, |
| char * | argv[] | ||
| ) |
This method calls Option to read the code options from the provided arguments.
| [in] | argc | Argument count. |
| [in] | argv | Argument vector. |
| void Cat_Split::set_up | ( | ) |
This method sets up the of split files.
|
private |
Range in declination covered by each split file.
|
private |
Vector of output file pointers.
|
private |
Number of files to which split data will be written.
|
private |
Range in right ascension covered by each split file.
1.8.18