The SKIRT project
advanced radiative transfer for astrophysics
Functions
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:

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.