calc_limbdark_grid(responses=None,
vrads=[0],
ebvs=[0],
zs=[0.],
ld_law='claret',
fitmethod='equidist_r_leastsq',
outfile=None,
force=False,
**kwargs)
| source code
|
Calculate a grid of limb-darkening coefficients.
You need to specify a list of response curves, and a grid of radial
velocity (vrads ), metallicity (z ) and reddening
(ebvs ) points. You can choose which law to fit
and with which fitmethod . Extra kwargs specify the
properties of the atmosphere grid to be used.
If you give a gridfile that already exists, the current file is simply
updated with the new passbands, i.e. all overlapping response curves will
not be recomputed. Unless you set force=True , in which case
previous calculations will be overwritten. You'd probably only want to
update or overwrite existing files if you use the same
vrads , ebvs , zs etc...
The generated FITS file has the following structure:
-
The primary HDU is empty. The primary header contains only the fit
routine (FIT), LD law (LAW) and used grid (GRID)
-
Each table extension has the name of the photometric passband (e.g.
"GENEVA.V". Each record in the table extension has the
following columns: Teff, logg, ebv, vrad, z (the grid points) and a1,
a2, a3, a4 (the limb darkening coefficients) and Imu1 (the intensity
in the center of the disk) and SRS, dint (fit evaluation parameters,
see ivs.sed.limbdark). Although the system and filter
can be derived from the extension name, there are also separate
entries in the header for "SYSTEM" and "FILTER".
Example usage:
>>> calc_limbdark_grid(['MOST.V','GENEVA'],vrads=[0],ebvs=[0.06],zs=[0,0], ... law='claret',fitmethod='equidist_r_leastsq',outfile='HD261903.fits')
|