Template Class SEDLib

Class Documentation

template<class T>
class SEDLib

class for a general SED (Star, QSO, or Galaxy) library

Public Functions

SEDLib(string config, string typ)
SEDLib(keymap &key_analysed, string config, string typ)
virtual ~SEDLib()
inline void print_time_tofile(time_t result)

write time of creation and the number of SED recorded to the doc file

virtual void print_info()

print config and type onscreen and in the doc file

virtual void open_output_files()

open the output files in $LEPHAREWORK/lib_bin

virtual void close_output_files()
void read_model_list()
void write_SED_lib()
virtual void readSED(string sedFile, string sedFormat, int nummod, string type)

read content of one SED file into a SED vector

Parameters:
  • sedFile – the file to read the SED from

  • sedFormat – format of sedFile : can be B(C03), P or F for PEGASE type, or else plain ASCII

  • nummod – index of the SED; see SED

  • type – type of the SED S|Q|G for star|qso|galaxy; see SED !

void read_age(string ageFich)

For GAL, read the file with the selected galaxy ages, provided as kw SEL_AGE

void readSED(string sedFile, string sedFormat, int nummod, string type)

Public Members

vector<T> allSED
vector<T> resultSED
string docFile

output file for the doc file

string binFile

output file for the binary SED library

string modList
string libOut
string path
double fscale

Protected Attributes

ofstream sdocOut

output stream to store the doc in docFile

ofstream sbinOut

output stream to store the binary SED library in binFile

ofstream sphysOut

output stream to store the binary SED library in physFile (only for typ=GAL)

string ageFile

optional file providing the selection of ages to keep in the SED library;

double agemin
double agemax
vector<double> ageSel
string physFile

output file name, locate in $LEPHAREWORK/lib_bin/; used only for typ GAL