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.lc to 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:

  • minimize

  • mcmc

  • leastsq

gp_meanstr

Mean y_data function. Possible choices are:

  • mean

  • gaussian

  • bazin

  • villar

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:

  • matern52

  • matern32

  • squaredexp

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

Notes

  • This function is using sdapy.gaussian_process.fit_gp, which was afterwards stored as snobject.gpcls.

  • This function is using a constant kernel for wavelengthes and a demanded kernel for fluxes.