SEDShape#
- class jetset.sed_shaper.SEDShape(sed_data)[source]#
Bases:
object
This handle the SED shaping process
Methods Summary
IC_fit
([fit_range, use_log_par, Ep_start, ...])add_BBB_template
(fit_model)add_disk
(fit_model)add_host_template
(fit_model)check_adapt_range_size
(x, index, min_size[, ...])do_sync_fit
(fit_model, fit_law_name[, ...])eval_indices
([minimizer, silent, ...])This methods evaluates the indices for the SED indices are istances of the index_array () class
find_class
(E_S)method to evaluate obj class 'L/I/HPS' according to Ep
get_initial_index_values
(index, loglog_pl)get_nu_max
(nu, fit_range)plot_indices
([plot_obj])plot_shape_fit
([plot_obj])save_sync_fit_report
([name])save_values
(name)set_S_LE_slope
(fit_func, fit_law_name, ...)sync_fit
([check_host_gal_template, ...])This method analyses the synchrotron shape by means of log-log polynomial fits
Methods Documentation
- do_sync_fit(fit_model, fit_law_name, fit_range=None, check_disk=False, check_BBB=False, check_host=False, Ep_start=None, no_check=False, minimizer='lsb', silent=True, show_fit_report=True)[source]#
- eval_indices(minimizer='lsb', silent=True, show_fit_report=False)[source]#
This methods evaluates the indices for the SED indices are istances of the index_array () class
- find_class(E_S)[source]#
method to evaluate obj class ‘L/I/HPS’ according to Ep
args: E_S
the obj_class member is updated
obj_class==None means undefined class
- sync_fit(check_host_gal_template=False, check_BBB_template=False, check_disk=False, fit_range=None, nu_min=None, nu_max=None, Ep_start=None, use_log_par=False, minimizer='lsb', silent=True, show_fit_report=False)[source]#
This method analyses the synchrotron shape by means of log-log polynomial fits
The following paremeters are estimated:
the SED peak frequency Ep
the SED peak flux Sp
the curvature at the peak
checks for the host galaxy
-) first a log-log cubic fit is performed, with the ‘blind’ interval
-) the SED class ‘I/L/HPS’ is set according to Ep, by find_class
- -) the fit range is changed from ‘blind’, according to the
value returned by find_class, using the function sync_fit_range
-) the SED nu, and nuFnu are generated for the ‘blind’ fit
- -) if the option is selected in the call of the method
the estimate of the host galaxy is performed
-) a second run improve the obj class is performed
values are stored in the class :class: ‘peak_values’