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

Create RGB images for surface brightness maps generated by SKIRT instruments. More...

Functions

"create RGB images for surface brightness maps generated by SKIRT instruments" do ((str, "SKIRT simulation output directory") simDirPath,(str,"SKIRT simulation prefix") prefix="",(str,"type of SKIRT instrument output files to be handled") type="total",(str,"name segment that will be added to the image file names") name="",(str,"three comma-separated wavelength values or broadband names defining the R,G,B colors") colors="")

Detailed Description

Create RGB images for surface brightness maps generated by SKIRT instruments.

This script creates RGB images in PNG format for the surface brightness maps produced by the instruments of a SKIRT simulation. The R,G,B color channels can be specified as wavelength values or as broadbands.

The function takes the following arguments:

  • simDirPath (positional string argument): the path to the SKIRT simulation output directory, or "." for the current directory.
  • prefix (string): the prefix of the simulation to handle; by default handles all simulations in the directory.
  • type (string): the final segment of the name of the instrument output files to be handled, excluding the ".fits" suffix (for example, "primaryscattered"); by default the script handles the "total" output files.
  • name (string): a name that will be added to the end of the image file name; defaults to the empty string.
  • colors (string): a string specifying the three wavelength values or broadbands corresponding to each R,G,B color channel of the image; by default the script uses frames with wavelengths as widely apart as possible.

In all cases, the image files are is placed next to the "*.fits" file(s) being represented, with the same filename but extended with the specified name string and the filename extension replaced by ".png".