Class for reading files for Cat_Merge.
More...
#include <cat_merge_fileio.hpp>
|
bool | existing_clt (int, const std::vector< int > &) |
| This method checks to see if a Cluster instance ID already exists. More...
|
|
void | read_file_list (const std::string &, std::vector< Cluster > &, gal_container &, const std::string &) |
| This method reads in the list containing the input file names. More...
|
|
void | read_ascii (const std::string &, std::vector< Cluster > &, gal_container &) |
| This method reads in an ASCII file and store the contents in a vector of Cluster instances. More...
|
|
void | read_fits (const std::string &, std::vector< Cluster > &, gal_container &) |
| This method reads in an FITS file and store the contents in a vector of Cluster instances. More...
|
|
void | output_file_names (const std::string &, const std::string &, std::string &, std::string &) |
| This method sets the output file names. More...
|
|
void | read_bg_data (const std::string &, std::vector< double > &, std::vector< double > &) |
| This reads backround data. More...
|
|
Class for reading files for Cat_Merge.
This class handles the file input for Cat_Merge.
◆ gal_container
◆ existing_clt()
bool Merge_Fileio::existing_clt |
( |
int |
id, |
|
|
const std::vector< int > & |
list |
|
) |
| |
This method checks to see if a Cluster instance ID already exists.
- Parameters
-
◆ output_file_names()
void Merge_Fileio::output_file_names |
( |
const std::string & |
output, |
|
|
const std::string & |
output_mode, |
|
|
std::string & |
cluster_file_name, |
|
|
std::string & |
member_file_name |
|
) |
| |
This method sets the output file names.
- Parameters
-
[in] | output | Output file name. |
[in] | output_mode | Ouput mode ["ascii"/"fits"]. |
[out] | cluster_file_name | Output Cluster list file name. |
[out] | member_file_name | Output member Galaxy list file name. |
◆ read_ascii()
void Merge_Fileio::read_ascii |
( |
const std::string & |
fname, |
|
|
std::vector< Cluster > & |
cluster_list, |
|
|
gal_container & |
gals |
|
) |
| |
This method reads in an ASCII file and store the contents in a vector of Cluster instances.
- Parameters
-
[in] | fname | Input file name. |
[out] | cluster_list | Vector of Cluster instances. |
[in] | gals | Map to Galaxy instances. |
◆ read_bg_data()
void Merge_Fileio::read_bg_data |
( |
const std::string & |
file_name, |
|
|
std::vector< double > & |
z_vals, |
|
|
std::vector< double > & |
count_vals |
|
) |
| |
This reads backround data.
- Parameters
-
[in] | file_name | Background data file name. |
[out] | z_vals | Redshift values from background data file. |
[out] | count_vals | Count values from background data file. |
◆ read_file_list()
void Merge_Fileio::read_file_list |
( |
const std::string & |
list, |
|
|
std::vector< Cluster > & |
cluster_list, |
|
|
gal_container & |
gals, |
|
|
const std::string & |
input_mode |
|
) |
| |
This method reads in the list containing the input file names.
- Parameters
-
[in] | list | File name containing the list of input file names. |
[out] | cluster_list | Vector of Cluster instances. |
[in] | input_mode | Input mode ["ascii"/"fits"]. |
[in] | gals | Map to Galaxy instances. |
◆ read_fits()
void Merge_Fileio::read_fits |
( |
const std::string & |
fname, |
|
|
std::vector< Cluster > & |
cluster_list, |
|
|
gal_container & |
gals |
|
) |
| |
This method reads in an FITS file and store the contents in a vector of Cluster instances.
- Parameters
-
[in] | fname | Input file name. |
[out] | cluster_list | Vector of Cluster instances. |
[in] | gals | Map to Galaxy instances. |
◆ clt_count
int Merge_Fileio::clt_count |
|
private |
Current number of Cluster instances.
◆ file_list
std::vector<std::string> Merge_Fileio::file_list |
|
private |
◆ fileio
◆ gal_count
int Merge_Fileio::gal_count |
|
private |
Current number of Galaxy instances.
The documentation for this class was generated from the following files: