![]() |
![]() |
![]() |
PHOEBE Reference Manual | ![]() |
---|---|---|---|---|
LD_table; extern LD_table *PHOEBE_ld_table; enum LDLaw; LD_table* phoebe_ld_table_vh1993_load (char *dir); int phoebe_ld_table_free (LD_table *LD); int phoebe_ld_get_coefficients (LDLaw ldlaw, PHOEBE_passband *passband, double M, double T, double lg, double *x, double *y); LDLaw phoebe_ld_model_type (const char *ldlaw); char* phoebe_ld_get_vh1993_passband_name (PHOEBE_passband *passband);
typedef struct { PHOEBE_array *Mnodes; PHOEBE_array *Tnodes; PHOEBE_array *lgnodes; struct { char *fn; long int pos; } ***table; } LD_table;
LD_table* phoebe_ld_table_vh1993_load (char *dir);
Scans all files in the passed directory dir and extracts LD triplets (T, log g, M/H) from table headers. It then creates a 3D matrix what holds all of these elements so that LD[M][T][lg] is structured by indices and all non-existing nodes padded with nans. For optimized lookup this matrix has a border of nans in all three directions - so that the lookup function does not have to check for matrix boundaries.
|
directory that contains Van Hamme (1993) LD tables |
Returns : |
PHOEBE_error_code. |
int phoebe_ld_table_free (LD_table *LD);
Frees the contents of the limb darkening table LD
. It is safe to call
this function on the unallocated table, so there is no need to check
for LD presence.
|
limb darkening table |
Returns : |
PHOEBE_error_code. |
int phoebe_ld_get_coefficients (LDLaw ldlaw, PHOEBE_passband *passband, double M, double T, double lg, double *x, double *y);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns : |
char* phoebe_ld_get_vh1993_passband_name (PHOEBE_passband *passband);
|
|
Returns : |