TemplateTable2D#

class jetset.template_2Dmodel.TemplateTable2D(x_values, y_values, z_values, log_input_grid=False, log_log_interp=False, x_in_units=None, y_in_units=None, x_out_units='Hz', y_out_units='erg cm-2 s-1', z_in_units=None, z_out_units=None, nu_size=100, name='TableModel2D', zero=1e-100)[source]#

Bases: Model

Class to handle spectral templates

Methods Summary

eval([fill_SED, x, y, get_model, loglog])

Evaluates the Template for the current parameters values

plot_model([plot_obj, clean, label, ...])

Plot model.

Methods Documentation

eval(fill_SED=True, x=None, y=None, get_model=False, loglog=False)[source]#

Evaluates the Template for the current parameters values

plot_model(plot_obj=None, clean=False, label=None, sed_data=None, color=None, density=False, frame='obs')[source]#

Plot model.

Parameters:
  • plot_obj (object, optional) – Existing plot object to update.

  • clean (bool, optional) – Parameter controlling clean.

  • label (object, optional) – Label used in output or plots.

  • sed_data (object, optional) – Observational SED data container.

  • color (object, optional) – Matplotlib color specification.

  • density (bool, optional) – Parameter controlling density.

  • frame (str, optional) – Reference frame for data/model values.

Returns:

Computed result.

Return type:

object