sdapy.snerun.snobject.run_gp¶
- snobject.run_gp(source=None, **kwargs)¶
Run Gaussian Process interpolation via george package on multiband lightcurves, i.e.
snobject.lc.- Parameters
- sourcestr
which source of
snobject.lcto be used- gp_fitbool
if fit GP or not
- gp_redobool
if cached file exists, redo or read
- gp_bandslist
which bands for GP, None, or a list. e.g. [‘g’, ‘r’]
- gp_routine: `str`
Possible choices are:
minimizemcmcleastsq
- gp_meanstr
Mean y_data function. Possible choices are:
meangaussianbazinvillar
- gp_xrangelist
gp fit range, relative to peak
- gp_xrangep: `list`
gp plot range, relative to peak. if None, will not plot gp samplings
- verboselist
show warnings or not
- kernelstr
Kernel to be used with the gaussian process. Possible choices are:
matern52matern32squaredexp
- fix_scalebool
If fix default gaussian process param
- nwalkersint
number of walkers
- nstepsint
number of MC steps
- nsteps_burninint
number of MC burn in steps
- set_tpeak_methodstr
set t0 with peak from:
[gp] Gaussian process
[fit] multiband_main/Bazin fits
[bol] bol_main/Arnett fits
leave blanckt as with input jdpeak
- set_tpeak_filterstr
set t0 with peak of which band
See also
Notes
This function is using
sdapy.gaussian_process.fit_gp, which was afterwards stored assnobject.gpcls.This function is using a constant kernel for wavelengthes and a demanded kernel for fluxes.