The SKIRT project
advanced radiative transfer for astrophysics
pts.visual.do.plot_spectral_resolution Namespace Reference

Plot the spectral resolution of a wavelength axis. More...

Functions

"plot the spectral resolution of a wavelength axis" do ((str,"name or path of SKIRT stored table or text column file") filepath,(float,"smallest wavelength on the horizontal axis") wmin=0.1,(float,"largest wavelength on the horizontal axis") wmax=1000.,(str,"unit of the wavelength limits (any spectral unit)") unit="micron",(float,"number of decades to be plotted on the vertical axis") dex=3,(str,"title used in plot legend") title="")

Detailed Description

Plot the spectral resolution of a wavelength axis.

This script creates a plot of the spectral resolution \(R=\lambda/\Delta\lambda\) of a wavelength grid loaded from a SKIRT stored table (".stab") or a SKIRT output file (".dat") that includes a wavelength axis.

Provide the name or (relative or absolute) file path of a SKIRT stored table file or a SKIRT output file as the single required argument, and use optional arguments to further configure the plot:

  • wmin (float): smallest wavelength on the horizontal axis; default is 0.1
  • wmax (float): largest wavelength on the horizontal axis; default is 1000
  • unit (string): unit of the wavelength limits (any spectral unit); default is micron
  • dex (float): if specified, the number of decades to be plotted on the vertical axis; default is 3
  • title (string): the title used in the plot legend; default is the name of the input file

The plot file has the same name as the input file but with the ".pdf" filename extension and is placed in the current working directory.