Template Class SEDLib
Defined in File SEDLib.h
Class Documentation
-
template<class T>
class SEDLib class for a general SED (Star, QSO, or Galaxy) library
Public Functions
-
SEDLib(string config, string typ)
Build a SEDLib for a given config file and object type, without reading any keyword (used internally as a delegate constructor)
- Parameters:
config – configuration file (arg -c), stored in #config
typ – object type (S/Q/G, case-insensitive), normalised and stored in #typ
-
SEDLib(keymap &key_analysed, string config, string typ)
Build a SEDLib and read the keywords needed to locate the input SED list and the output library (modList, libOut, fscale), then open the output files
- Parameters:
key_analysed – map of keyword/value pairs
config – configuration file (arg -c), stored in #config
typ – object type (S/Q/G, case-insensitive), normalised and stored in #typ
-
virtual ~SEDLib()
-
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
-
void read_model_list()
Read every SED listed in modList into allSED, applying the age selection (ageFile/agemin/agemax/ageSel) for galaxies
-
void write_SED_lib()
Write resultSED to the output binary/doc (and, for galaxies, physical-parameters) files
-
virtual void readSED(string sedFile, string sedFormat, int nummod)
-
SEDLib(keymap &key_analysed, string config, string t)
GalSED specialization of the keymap constructor: in addition to the generic behaviour, reads the age-selection keywords (SEL_AGE, AGE_RANGE) into ageFile/agemin/agemax/ageSel
- Parameters:
key_analysed – map of keyword/value pairs
config – configuration file (arg -c), stored in #config
t – object type, normalised and stored in #typ (always “GAL” here)
Public Members
-
string docFile
output file for the doc file
-
string libOut
base name of the output library (the “TYPE”_LIB keyword, e.g. GAL_LIB)
-
string path
$LEPHAREDIR-relative directory the SEDs live in (/sed/STAR, /sed/QSO or /sed/GAL)
Protected Attributes
-
string physFile
output file name, locate in $LEPHAREWORK/lib_bin/; used only for typ GAL
-
SEDLib(string config, string typ)