sfof
Public Member Functions | Public Attributes | Private Attributes | List of all members
Cat_Split Class Reference

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...
 

Detailed Description

Class for splitting galaxy catalogues.

This class splits a catalogue of galaxies into overlapping pieces.

Member Function Documentation

◆ check_pos()

void Cat_Split::check_pos ( double  ra,
double  dec 
)

This method checks the ra and dec of a given object.

Parameters
[in]raRight ascension of galaxy.
[in]decDeclination of galaxy.

◆ close_files()

void Cat_Split::close_files ( )

This method closes all of the split files.

◆ find_bin()

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.

Parameters
[in]raRight ascension of galaxy.
[in]decDeclination of galaxy.
[in]binsVector of split file numbers.

◆ open_files()

void Cat_Split::open_files ( )

This method opens all of the split files.

◆ read_ascii()

void Cat_Split::read_ascii ( )

This method reads the galaxies from the input catalogues and writes them to the corresponding split files.

◆ read_options()

void Cat_Split::read_options ( int  argc,
char *  argv[] 
)

This method calls Option to read the code options from the provided arguments.

Parameters
[in]argcArgument count.
[in]argvArgument vector.

◆ set_up()

void Cat_Split::set_up ( )

This method sets up the of split files.

Member Data Documentation

◆ comp

Comp Cat_Split::comp

Include Comp class.

◆ dec_bin_size

double Cat_Split::dec_bin_size
private

Range in declination covered by each split file.

◆ file_list

std::vector<std::ofstream*> Cat_Split::file_list
private

Vector of output file pointers.

◆ fileio

Fileio Cat_Split::fileio
private

Include Fileio class.

◆ number_of_files

int Cat_Split::number_of_files
private

Number of files to which split data will be written.

◆ opt

Option Cat_Split::opt
private

Include Option class.

◆ ra_bin_size

double Cat_Split::ra_bin_size
private

Range in right ascension covered by each split file.


The documentation for this class was generated from the following files: