GENERAL DESCRIPTION: This Python script uses matplotlib to plot the blackbody function of concentric disks of gas around a star (i.e. a protoplantary or accretion disk).
DATA DESCRIPTION: The data are simply the four different arrays which correspond to the blackbody functions of three dust rings and one central star as a function of wavelength.
CODE DESCRIPTION: The code imports matplotlib, numpy, math, and pylab packages. Constants and arrays are defined, after which the blackbody functions are coded in, summed, and plotted. The four components are labeled in the legend.
RUNNING THE CODE:
-
Download the python script (exodisk_bbf.py)
-
In a terminal, cd into the directory that now contains the script
-
Run the script by typing the following into the command line:
python3.8 exodisk_bbf.py
3.1) The output can be saved directly from the GUI screen.