plot_multifreq_spectral_index

plot_multifreq_spectral_index(comps_test, comps_ref, phasecentre, plot_file=None, tol=1e-05, flux_limit=0.0, spec_indx_test=None, spec_indx_ref=None, plot_diagnostics=False, **kwargs)[source]

Generate spectral index plot for two lists of multi-frequency skycomponents

Parameters:
  • comps_test – List of components to be tested

  • comps_ref – List of reference components

  • phasecentre – Centre of image in SkyCoords

  • plot_file – Filename of the plot

  • tol – Tolerance in rad

  • flux_limit – Cutoff for plot (only components with central flux larger than this are plotted)

  • spec_indx_test – Spectral index of comps_test if provided (if None, fit from components)

  • spec_indx_ref – Spectral index of comps_ref if provided (if None, fit from components)

  • plot_diagnostics – Whether to plot diagnostics plot (flux in vs. spectral index out)

Returns:

[spec_in, spec_out]: The spectral index array for users to check