Planck's law, Wien's displacement law and StefanāBoltzmann: plotting, band integration and radiance look-up tables.
Planck's law gives the spectral radiance of a blackbody at temperature T:
-
Wien's displacement law: the peak wavelength shifts as
$\lambda_{max} = b / T$ , with$b \approx 2898\ \mu m \cdot K$ -
StefanāBoltzmann law: total emitted power grows as
$M = \varepsilon \sigma T^4$
All scripts are in Planck function, wien and stefan boltzman/:
| Script | What it does |
|---|---|
planck_sabiti_grafik (+ _1 copy) |
Plots Planck curves for 300, 400, 500 and 600 K over 0.1ā14 µm, which shows the Wien peak shift |
Planck_Fonksiyonunun_Girilen_Bant_AralıÄı_iƧin_İntegrali |
dalgaboyu_integral(T, λ): spectral radiance at a given temperature and wavelength, in SI units and in µm-based units |
look-up_table |
create_lookup_table(...) integrates Planck's law over a band (e.g. the 8ā14 µm LWIR window), applies emissivity and saves a temperature ā in-band radiance table to a .mat file |
% LWIR band 8ā14 µm, emissivity 0.95, 250 K ⦠400 K in 1 K steps
create_lookup_table('lut_lwir.mat', 8e-6, 14e-6, 0.95, 250, 400, 1);
load('lut_lwir.mat'); % temperatures, radiance_values
plot(temperatures, radiance_values);Tables like this are the basis of radiometric calibration in thermal cameras: a measured in-band radiance is mapped back to an object temperature.
The files are saved as .txt. Rename them to .m (or paste them into the MATLAB editor) and run:
cd "Planck function, wien and stefan boltzman"
for f in *.txt; do mv "$f" "${f%.txt}.m"; doneComments in the code are in Turkish.
Made by Yusuf Erkan