SEDShape

class 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_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, ...)

show_values()

sync_fit([check_host_gal_template, ...])

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

Methods Documentation

IC_fit(fit_range=None, use_log_par=False, Ep_start=None, minimizer='minuit', silent=False)[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, silent=False)[source]
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

get_nu_max(nu, fit_range)[source]
plot_indices(plot_obj=None)[source]
plot_shape_fit(plot_obj=None)[source]
save_sync_fit_report(name=None)[source]
save_values(name)[source]
set_S_LE_slope(fit_func, fit_law_name, 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, 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:

  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’