SED Plotting

hostphot.sed_plotting.get_eff_wave(filt, survey)

Obtains the effective wavelength of a filter.

Parameters:
  • filt (str) – Filter name.

  • survey (str) – Survey name.

Returns:

eff_wave – Effective wavelength in angstroms.

Return type:

float

hostphot.sed_plotting.plot_sed(name, phot_type='global', z=None, radius=None, include=None, exclude=None, save_plot=True, outfile=None)

Plots the SED of an object.

The SED will depend on the available photometry.

Parameters:
  • name (str) – Name of the object.

  • phot_type (str, optional) – Type of photometry: global or local. By default ‘global’.

  • z (float, optional) – Redshift of the object, by default None. If given, corrects for time dilation.

  • radius (int, float or str, optional) – Radius for the local photometry, by default None.

  • include (list, default None) – List of surveys to include in the plot. Cannot be given together with ‘exclude.

  • exclude (list, default None) – List of surveys to exclude from the plot. Cannot be given together with ‘include.

  • save_plot (bool, default True) – Whether to save the SED plot.

  • outfile (str, default None) – If give, the plot is saved with this name instead of the default ones.

Raises:

ValueError – The photometry type should be either global or local.