SEDShape

class SEDShape(SEDdata)[source]

Bases: object

This handle the SED shaping process

Methods Summary

IC_fit([fit_range])
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_range, …])
eval_indices() This methods evaluates the indices for the SED
find_class(E_S) method to evaluate obj class ‘L/I/HPS’ according
get_nu_max(nu, fit_range)
plot_indices(plot)
save_sync_fit_report([name])
set_S_LE_slope(fit_func, use_log_par)
show_values()
sync_fit([check_host_gal_template, …]) This method analyses the synchrotron shape by means

Methods Documentation

IC_fit(fit_range=None)[source]
add_BBB_template(fit_model)[source]
add_disk(fit_model)[source]
add_host_template(fit_model)[source]
check_adapt_range_size(x, index, min_size)[source]
do_sync_fit(fit_model, fit_range=None, check_disk=False, check_BBB=False, check_host=False, use_log_par=False, Ep_start=None, no_check=False)[source]
eval_indices()[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

get_nu_max(nu, fit_range)[source]
plot_indices(plot)[source]
save_sync_fit_report(name=None)[source]
set_S_LE_slope(fit_func, use_log_par)[source]
show_values()[source]
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)[source]

This method analyses the synchrotron shape by means of log-log polynomial fits

The following paremeters are estimated:

  1. the SED peak frequency Ep
  2. the SED peak flux Sp
  3. the curvature at the peak
  4. 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’