cloudy  trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Data Fields
stellar_grid Struct Reference
Collaboration diagram for stellar_grid:
Collaboration graph
[legend]

Public Member Functions

 stellar_grid ()
 
 ~stellar_grid ()
 

Data Fields

string name
 
bool lgIsTeffLoggGrid
 
access_scheme scheme
 
FILE * ioIN
 
string ident
 
string command
 
IntMode imode
 
int32 ndim
 
int32 npar
 
int32 nmods
 
int32 ngrid
 
uint32 nOffset
 
uint32 nBlocksize
 
vector< mpptelg
 
multi_arr< double, 2 > val
 
vector< long > nval
 
vector< long > jlo
 
vector< long > jhi
 
char names [MDIM][MNAM+1]
 
vector< long > trackLen
 
long nTracks
 
vector< long > jval
 
bool lgASCII
 
double convert_wavl
 
double convert_flux
 
bool lgFreqX
 
bool lgFreqY
 
map< string, int > caution
 
vector< long > index_list
 
vector< long > index_list2
 
multi_arr< realnum, 2 > CloudyFlux
 

Detailed Description

store all the relevant information on a binary atmosphere file

Definition at line 95 of file stars.cpp.

Constructor & Destructor Documentation

stellar_grid::stellar_grid ( )
inline

Definition at line 161 of file stars.cpp.

References ioIN, MDIM, MNAM, and names.

stellar_grid::~stellar_grid ( )
inline

Definition at line 166 of file stars.cpp.

References ioIN.

Field Documentation

map<string,int> stellar_grid::caution

cautions generated by the interpolation routine

Definition at line 156 of file stars.cpp.

Referenced by InterpolateModel().

multi_arr<realnum,2> stellar_grid::CloudyFlux

array for holding the rebinned SEDs from the grid

Definition at line 160 of file stars.cpp.

Referenced by InterpolateGridCoStar(), InterpolateModel(), InterpolateModelCoStar(), lgCompileAtmosphere(), and lgReadAtmosphereTail().

string stellar_grid::command
double stellar_grid::convert_flux

Definition at line 152 of file stars.cpp.

Referenced by lgReadAtmosphereHead(), and lgReadAtmosphereTail().

double stellar_grid::convert_wavl

helper variables for reading the ascii atmosphere files

Definition at line 151 of file stars.cpp.

Referenced by lgReadAtmosphereHead(), and lgReadAtmosphereTail().

string stellar_grid::ident
IntMode stellar_grid::imode

which interpolation mode is requested

Definition at line 111 of file stars.cpp.

Referenced by CoStarInterpolate(), InitGrid(), InterpolateGridCoStar(), and SetLimits().

vector<long> stellar_grid::index_list

the list of SEDs from the grid needed for the interpolation

Definition at line 158 of file stars.cpp.

Referenced by InterpolateGridCoStar(), and InterpolateModel().

vector<long> stellar_grid::index_list2

Definition at line 158 of file stars.cpp.

Referenced by InterpolateGridCoStar(), InterpolateModel(), and InterpolateModelCoStar().

FILE* stellar_grid::ioIN
vector<long> stellar_grid::jhi

Definition at line 139 of file stars.cpp.

Referenced by FillJ(), InitGridCoStar(), InitIndexArrays(), InterpolateModel(), and SetLimitsSub().

vector<long> stellar_grid::jlo

jlo/jhi will hold indices into the binary model file: jlo/jhi(i,...,n) will point to the model with parameters val[0][i],...,val[ndim-1][n], or its closest approximation in log(g) in case the model doesn't exist and lgIsTeffLoggGrid is true. jlo will hold the model with the highest log(g) <= than requested jhi will hold the model with the lowest log(g) >= than requested in case no suitable model could be found either array will hold -2

Definition at line 138 of file stars.cpp.

Referenced by FillJ(), InitGridCoStar(), InitIndexArrays(), InterpolateModel(), and SetLimitsSub().

vector<long> stellar_grid::jval

jval will hold indices into the CoStar grid: jval(nModels,nTracks)

Definition at line 147 of file stars.cpp.

Referenced by CoStarListModels(), FindHCoStar(), InitGridCoStar(), InterpolateGridCoStar(), and SetLimits().

bool stellar_grid::lgASCII

set to true if we read directly from the ascii file

Definition at line 149 of file stars.cpp.

Referenced by GetModel(), InitGrid(), InterpolateGridCoStar(), InterpolateModel(), and InterpolateRectGrid().

bool stellar_grid::lgFreqX

Definition at line 153 of file stars.cpp.

Referenced by lgReadAtmosphereHead(), and lgReadAtmosphereTail().

bool stellar_grid::lgFreqY

Definition at line 154 of file stars.cpp.

Referenced by lgReadAtmosphereHead(), and lgReadAtmosphereTail().

bool stellar_grid::lgIsTeffLoggGrid

if true, more relaxed rules for matching log(g) will be used

Definition at line 100 of file stars.cpp.

Referenced by CheckVal(), FillJ(), and InitGrid().

string stellar_grid::name
char stellar_grid::names[MDIM][MNAM+1]

this array will hold the designations for each dimension of the grid

Definition at line 141 of file stars.cpp.

Referenced by FillJ(), GetModel(), GridCompile(), InitGrid(), InitGridBin(), InitIndexArrays(), InterpolateModel(), InterpolateRectGrid(), lgCompileAtmosphere(), lgReadAtmosphereHead(), lgReadAtmosphereTail(), stellar_grid(), and ValidateGrid().

uint32 stellar_grid::nBlocksize

the size of each model block in bytes

Definition at line 123 of file stars.cpp.

Referenced by GetBins(), GetModel(), InitGridBin(), InterpolateRectGrid(), and lgValidBinFile().

int32 stellar_grid::ndim
int32 stellar_grid::ngrid

the number of grid points per model, should equal rfield.nflux_with_check

Definition at line 119 of file stars.cpp.

Referenced by InitGridBin(), lgReadAtmosphereHead(), lgReadAtmosphereTail(), and lgValidBinFile().

int32 stellar_grid::nmods
uint32 stellar_grid::nOffset

the offset to the first data block (the anu grid)

Definition at line 121 of file stars.cpp.

Referenced by GetBins(), GetModel(), InitGridBin(), and lgValidBinFile().

int32 stellar_grid::npar
long stellar_grid::nTracks

this is the number of CoStar tracks

Definition at line 145 of file stars.cpp.

Referenced by CoStarListModels(), FindVCoStar(), InitGrid(), InitGridCoStar(), InterpolateGridCoStar(), and SetLimits().

vector<long> stellar_grid::nval

nval[n] is the number of unique values in val[n][*]

Definition at line 130 of file stars.cpp.

Referenced by CheckVal(), FillJ(), InitGrid(), InitIndexArrays(), InterpolateRectGrid(), JIndex(), and SetLimitsSub().

access_scheme stellar_grid::scheme
vector<mpp> stellar_grid::telg
vector<long> stellar_grid::trackLen

this array holds the length of each CoStar track

Definition at line 143 of file stars.cpp.

Referenced by CoStarListModels(), FindHCoStar(), InitGridCoStar(), InterpolateGridCoStar(), and SetLimits().

multi_arr<double,2> stellar_grid::val

these are the unique values for each of the model parameters

Definition at line 128 of file stars.cpp.

Referenced by CheckVal(), FillJ(), InitGrid(), InitIndexArrays(), InterpolateModel(), InterpolateRectGrid(), and SetLimitsSub().


The documentation for this struct was generated from the following file: