Go to the source code of this file.
Defines | |
#define | MDIM 4 |
#define | MNAM 6 |
Enumerations | |
enum | IntMode { IM_ILLEGAL_MODE = -1, IM_RECT_GRID, IM_COSTAR_TEFF_MODID, IM_COSTAR_TEFF_LOGG, IM_COSTAR_MZAMS_AGE, IM_COSTAR_AGE_MZAMS } |
enum | tl_grid { TL_BSTAR, TL_OSTAR } |
Functions | |
void | AtmospheresAvail (void) |
int | AtlasCompile (void) |
long | AtlasInterpolate (double val[], long *nval, long *ndim, const char *chMetalicity, const char *chODFNew, bool lgList, double *Tlow, double *Thigh) |
int | CoStarCompile (void) |
long | CoStarInterpolate (double val[], long *nval, long *ndim, IntMode imode, bool lgHalo, bool lgList, double *val0_lo, double *val0_hi) |
bool | GridCompile (const char *InName) |
long | GridInterpolate (double val[], long *nval, long *ndim, const char *FileName, bool lgList, double *Tlow, double *Thigh) |
int | Kurucz79Compile (void) |
long | Kurucz79Interpolate (double val[], long *nval, long *ndim, bool lgList, double *Tlow, double *Thigh) |
int | MihalasCompile (void) |
long | MihalasInterpolate (double val[], long *nval, long *ndim, bool lgList, double *Tlow, double *Thigh) |
int | RauchCompile (void) |
long | RauchInterpolateHydr (double val[], long *nval, long *ndim, bool lgList, double *Tlow, double *Thigh) |
long | RauchInterpolateHelium (double val[], long *nval, long *ndim, bool lgList, double *Tlow, double *Thigh) |
long | RauchInterpolateHpHe (double val[], long *nval, long *ndim, bool lgList, double *Tlow, double *Thigh) |
long | RauchInterpolatePG1159 (double val[], long *nval, long *ndim, bool lgList, double *Tlow, double *Thigh) |
long | RauchInterpolateHCa (double val[], long *nval, long *ndim, bool lgHalo, bool lgList, double *Tlow, double *Thigh) |
long | RauchInterpolateHNi (double val[], long *nval, long *ndim, bool lgHalo, bool lgList, double *Tlow, double *Thigh) |
bool | StarburstInitialize (const char chInName[], const char chOutName[]) |
bool | StarburstCompile (void) |
int | TlustyCompile (void) |
long | TlustyInterpolate (double val[], long *nval, long *ndim, tl_grid tlg, const char *chMetalicity, bool lgList, double *Tlow, double *Thigh) |
int | WernerCompile (void) |
long | WernerInterpolate (double val[], long *nval, long *ndim, bool lgList, double *Tlow, double *Thigh) |
int | WMBASICCompile (void) |
long | WMBASICInterpolate (double val[], long *nval, long *ndim, bool lgList, double *Tlow, double *Thigh) |
#define MDIM 4 |
This is the largest number of dimensions that the grid can have
Definition at line 5 of file stars.h.
Referenced by CompileAtmosphereCoStar(), InitGrid(), lgCompileAtmosphere(), lgValidBinFile(), ParseTable(), and SetLimits().
#define MNAM 6 |
This is the maximum length a dimension label may have [e.g., Teff, log(g)]
Definition at line 8 of file stars.h.
Referenced by CompileAtmosphereCoStar(), InitGrid(), lgCompileAtmosphere(), and lgValidBinFile().
enum IntMode |
int AtlasCompile | ( | void | ) |
AtlasCompile rebin Kurucz stellar models to match energy grid of code
Definition at line 357 of file stars.cpp.
References DEBUG_ENTRY, DEBUG_EXIT, ioQQQ, lgCompileAtmosphere(), lgFileReadable(), lgValidBinFile(), and RYDLAM.
Referenced by ParseCompile().
long AtlasInterpolate | ( | double | val[], | |
long * | nval, | |||
long * | ndim, | |||
const char * | chMetalicity, | |||
const char * | chODFNew, | |||
bool | lgList, | |||
double * | Tlow, | |||
double * | Thigh | |||
) |
AtlasInterpolate interpolate on atlas model atmospheres, by K Volk
Definition at line 460 of file stars.cpp.
References chDataPath, CheckVal(), stellar_grid::command, DEBUG_ENTRY, DEBUG_EXIT, FreeGrid(), grid, stellar_grid::ident, InitGrid(), InterpolateRectGrid(), lgDataPathSet, t_rfield::nupper, stellar_grid::path, and rfield.
Referenced by ParseTable().
void AtmospheresAvail | ( | void | ) |
List all the available TABLE STAR <grid> commands by checking installed *.mod files
Definition at line 182 of file stars.cpp.
References chDataPath, DEBUG_ENTRY, DEBUG_EXIT, FILENAME_PATH_LENGTH, FILENAME_PATH_LENGTH_2, ioQQQ, lgDataPathSet, and lgValidBinFile().
Referenced by ParseTable().
int CoStarCompile | ( | void | ) |
CoStarCompile rebin costar stellar models to match energy grid of code
Definition at line 533 of file stars.cpp.
References CompileAtmosphereCoStar(), DEBUG_ENTRY, DEBUG_EXIT, ioQQQ, lgFileReadable(), lgValidBinFile(), and RYDLAM.
Referenced by ParseCompile().
long CoStarInterpolate | ( | double | val[], | |
long * | nval, | |||
long * | ndim, | |||
IntMode | imode, | |||
bool | lgHalo, | |||
bool | lgList, | |||
double * | val0_lo, | |||
double * | val0_hi | |||
) |
CoStarInterpolate read in and interpolate on Werner grid of PN atmospheres, by K Volk
Definition at line 568 of file stars.cpp.
References cdEXIT(), chDataPath, CheckVal(), stellar_grid::command, CoStarListModels(), DEBUG_ENTRY, DEBUG_EXIT, FreeGrid(), grid, stellar_grid::ident, stellar_grid::imode, InitGrid(), InitGridCoStar(), InterpolateGridCoStar(), lgDataPathSet, t_rfield::nupper, stellar_grid::path, and rfield.
Referenced by ParseTable().
bool GridCompile | ( | const char * | InName | ) |
GridCompile rebin user supplied stellar models to match energy grid of code
Definition at line 640 of file stars.cpp.
References stellar_grid::command, DEBUG_ENTRY, DEBUG_EXIT, FILENAME_PATH_LENGTH_2, FreeGrid(), grid, stellar_grid::ident, InitGrid(), ioQQQ, lgCompileAtmosphere(), MIN2, stellar_grid::path, and ValidateGrid().
Referenced by ParseCompile().
long GridInterpolate | ( | double | val[], | |
long * | nval, | |||
long * | ndim, | |||
const char * | FileName, | |||
bool | lgList, | |||
double * | Tlow, | |||
double * | Thigh | |||
) |
GridInterpolate read in and interpolate on user supplied grid of atmospheres
Definition at line 682 of file stars.cpp.
References chDataPath, CheckVal(), stellar_grid::command, DEBUG_ENTRY, DEBUG_EXIT, FILENAME_PATH_LENGTH_2, FreeGrid(), grid, stellar_grid::ident, InitGrid(), InterpolateRectGrid(), lgDataPathSet, t_rfield::nupper, stellar_grid::path, and rfield.
Referenced by ParseTable().
int Kurucz79Compile | ( | void | ) |
Kurucz79Compile rebin Kurucz79 stellar models to match energy grid of code
Definition at line 730 of file stars.cpp.
References DEBUG_ENTRY, DEBUG_EXIT, ioQQQ, lgCompileAtmosphere(), lgFileReadable(), and lgValidBinFile().
Referenced by ParseCompile().
long Kurucz79Interpolate | ( | double | val[], | |
long * | nval, | |||
long * | ndim, | |||
bool | lgList, | |||
double * | Tlow, | |||
double * | Thigh | |||
) |
Kurucz79Interpolate read in and interpolate on Kurucz 1979 grid of atmospheres
Definition at line 751 of file stars.cpp.
References chDataPath, CheckVal(), stellar_grid::command, DEBUG_ENTRY, DEBUG_EXIT, FreeGrid(), grid, stellar_grid::ident, InitGrid(), InterpolateRectGrid(), lgDataPathSet, t_rfield::nupper, stellar_grid::path, and rfield.
Referenced by ParseTable().
int MihalasCompile | ( | void | ) |
MihalasCompile rebin Mihalas stellar models to match energy grid of code
Definition at line 783 of file stars.cpp.
References DEBUG_ENTRY, DEBUG_EXIT, ioQQQ, lgCompileAtmosphere(), lgFileReadable(), and lgValidBinFile().
Referenced by ParseCompile().
long MihalasInterpolate | ( | double | val[], | |
long * | nval, | |||
long * | ndim, | |||
bool | lgList, | |||
double * | Tlow, | |||
double * | Thigh | |||
) |
MihalasInterpolate read in and interpolate on Mihalas grid of atmospheres
Definition at line 803 of file stars.cpp.
References chDataPath, CheckVal(), stellar_grid::command, DEBUG_ENTRY, DEBUG_EXIT, FreeGrid(), grid, stellar_grid::ident, InitGrid(), InterpolateRectGrid(), lgDataPathSet, t_rfield::nupper, stellar_grid::path, and rfield.
Referenced by ParseTable().
int RauchCompile | ( | void | ) |
RauchCompile create ascii and mod files for Rauch atmospheres return 0 if success, 1 if failure
Definition at line 835 of file stars.cpp.
References DEBUG_ENTRY, DEBUG_EXIT, ioQQQ, lgCompileAtmosphere(), lgFileReadable(), lgValidAsciiFile(), lgValidBinFile(), NMODS_HCA, NMODS_HELIUM, NMODS_HNI, NMODS_HpHE, NMODS_HYDR, NMODS_PG1159, and RauchInitializeSub().
Referenced by ParseCompile().
long RauchInterpolateHCa | ( | double | val[], | |
long * | nval, | |||
long * | ndim, | |||
bool | lgHalo, | |||
bool | lgList, | |||
double * | Tlow, | |||
double * | Thigh | |||
) |
RauchInterpolateHCa get one of the Rauch H-Ca model atmospheres, originally by K. Volk
Definition at line 1149 of file stars.cpp.
References chDataPath, CheckVal(), stellar_grid::command, DEBUG_ENTRY, DEBUG_EXIT, FreeGrid(), grid, stellar_grid::ident, InitGrid(), InterpolateRectGrid(), lgDataPathSet, t_rfield::nupper, stellar_grid::path, and rfield.
Referenced by ParseTable().
long RauchInterpolateHelium | ( | double | val[], | |
long * | nval, | |||
long * | ndim, | |||
bool | lgList, | |||
double * | Tlow, | |||
double * | Thigh | |||
) |
RauchInterpolateHelium get one of the Rauch pure helium model atmospheres
Definition at line 1285 of file stars.cpp.
References chDataPath, CheckVal(), stellar_grid::command, DEBUG_ENTRY, DEBUG_EXIT, FreeGrid(), grid, stellar_grid::ident, InitGrid(), InterpolateRectGrid(), lgDataPathSet, t_rfield::nupper, stellar_grid::path, and rfield.
Referenced by ParseTable().
long RauchInterpolateHNi | ( | double | val[], | |
long * | nval, | |||
long * | ndim, | |||
bool | lgHalo, | |||
bool | lgList, | |||
double * | Tlow, | |||
double * | Thigh | |||
) |
RauchInterpolateHNi get one of the Rauch H-Ni model atmospheres
Definition at line 1185 of file stars.cpp.
References chDataPath, CheckVal(), stellar_grid::command, DEBUG_ENTRY, DEBUG_EXIT, FreeGrid(), grid, stellar_grid::ident, InitGrid(), InterpolateRectGrid(), lgDataPathSet, t_rfield::nupper, stellar_grid::path, and rfield.
Referenced by ParseTable().
long RauchInterpolateHpHe | ( | double | val[], | |
long * | nval, | |||
long * | ndim, | |||
bool | lgList, | |||
double * | Tlow, | |||
double * | Thigh | |||
) |
RauchInterpolateHpHe get one of the Rauch hydrogen plus helium model atmospheres
Definition at line 1317 of file stars.cpp.
References chDataPath, CheckVal(), stellar_grid::command, DEBUG_ENTRY, DEBUG_EXIT, FreeGrid(), grid, stellar_grid::ident, InitGrid(), InterpolateRectGrid(), lgDataPathSet, t_rfield::nupper, stellar_grid::path, and rfield.
Referenced by ParseTable().
long RauchInterpolateHydr | ( | double | val[], | |
long * | nval, | |||
long * | ndim, | |||
bool | lgList, | |||
double * | Tlow, | |||
double * | Thigh | |||
) |
RauchInterpolateHydr get one of the Rauch pure hydrogen model atmospheres
Definition at line 1253 of file stars.cpp.
References chDataPath, CheckVal(), stellar_grid::command, DEBUG_ENTRY, DEBUG_EXIT, FreeGrid(), grid, stellar_grid::ident, InitGrid(), InterpolateRectGrid(), lgDataPathSet, t_rfield::nupper, stellar_grid::path, and rfield.
Referenced by ParseTable().
long RauchInterpolatePG1159 | ( | double | val[], | |
long * | nval, | |||
long * | ndim, | |||
bool | lgList, | |||
double * | Tlow, | |||
double * | Thigh | |||
) |
RauchInterpolatePG1159 get one of the Rauch PG1159 model atmospheres
Definition at line 1221 of file stars.cpp.
References chDataPath, CheckVal(), stellar_grid::command, DEBUG_ENTRY, DEBUG_EXIT, FreeGrid(), grid, stellar_grid::ident, InitGrid(), InterpolateRectGrid(), lgDataPathSet, t_rfield::nupper, stellar_grid::path, and rfield.
Referenced by ParseTable().
bool StarburstCompile | ( | void | ) |
StarburstCompile, rebin Starburst99 model output to match energy grid of code
Definition at line 1567 of file stars.cpp.
References DEBUG_ENTRY, DEBUG_EXIT, ioQQQ, lgCompileAtmosphere(), lgFileReadable(), lgValidAsciiFile(), lgValidBinFile(), and StarburstInitialize().
Referenced by ParseCompile().
bool StarburstInitialize | ( | const char | chInName[], | |
const char | chOutName[] | |||
) |
Create .ascii file out of Starburst99 output
Definition at line 1349 of file stars.cpp.
References ASSERT, DEBUG_ENTRY, DEBUG_EXIT, FILENAME_PATH_LENGTH_2, FREE_CHECK, FREE_SAFE, INPUT_LINE_LENGTH, ioQQQ, MALLOC, MNTS, NSB99, REALLOC, and VERSION_ASCII.
Referenced by ParseCompile(), and StarburstCompile().
int TlustyCompile | ( | void | ) |
TlustyCompile rebin Tlusty OSTAR2002 stellar models to match energy grid of code
Definition at line 1587 of file stars.cpp.
References DEBUG_ENTRY, DEBUG_EXIT, ioQQQ, lgCompileAtmosphere(), lgFileReadable(), and lgValidBinFile().
Referenced by ParseCompile().
long TlustyInterpolate | ( | double | val[], | |
long * | nval, | |||
long * | ndim, | |||
tl_grid | tlg, | |||
const char * | chMetalicity, | |||
bool | lgList, | |||
double * | Tlow, | |||
double * | Thigh | |||
) |
TlustyInterpolate get one of the Tlusty OSTAR2002 model atmospheres
Definition at line 1643 of file stars.cpp.
References chDataPath, CheckVal(), stellar_grid::command, DEBUG_ENTRY, DEBUG_EXIT, FreeGrid(), grid, stellar_grid::ident, InitGrid(), InterpolateRectGrid(), lgDataPathSet, t_rfield::nupper, stellar_grid::path, rfield, TL_BSTAR, TL_OSTAR, and TotalInsanity().
Referenced by ParseTable().
int WernerCompile | ( | void | ) |
WernerCompile rebin Werner stellar atmospheres to match cloudy energy grid
Definition at line 1704 of file stars.cpp.
References DEBUG_ENTRY, DEBUG_EXIT, ioQQQ, lgCompileAtmosphere(), lgFileReadable(), and lgValidBinFile().
Referenced by ParseCompile().
long WernerInterpolate | ( | double | val[], | |
long * | nval, | |||
long * | ndim, | |||
bool | lgList, | |||
double * | Tlow, | |||
double * | Thigh | |||
) |
WernerInterpolate read in and interpolate on Werner grid of PN atmospheres, by K Volk
Definition at line 1759 of file stars.cpp.
References chDataPath, CheckVal(), stellar_grid::command, DEBUG_ENTRY, DEBUG_EXIT, FreeGrid(), grid, stellar_grid::ident, InitGrid(), InterpolateRectGrid(), lgDataPathSet, t_rfield::nupper, stellar_grid::path, and rfield.
Referenced by ParseTable().
int WMBASICCompile | ( | void | ) |
WMBASICCompile rebin WMBASIC stellar models to match energy grid of code
Definition at line 1817 of file stars.cpp.
References DEBUG_ENTRY, DEBUG_EXIT, ioQQQ, lgCompileAtmosphere(), lgFileReadable(), and lgValidBinFile().
Referenced by ParseCompile().
long WMBASICInterpolate | ( | double | val[], | |
long * | nval, | |||
long * | ndim, | |||
bool | lgList, | |||
double * | Tlow, | |||
double * | Thigh | |||
) |
WMBASICInterpolate read in and interpolate on WMBASIC grid of hot star atmospheres
Definition at line 1841 of file stars.cpp.
References chDataPath, CheckVal(), stellar_grid::command, DEBUG_ENTRY, DEBUG_EXIT, FreeGrid(), grid, stellar_grid::ident, InitGrid(), InterpolateRectGrid(), lgDataPathSet, t_rfield::nupper, stellar_grid::path, and rfield.
Referenced by ParseTable().