This notebook forms part of a series on computational optical radiometry
The date of this document and module versions used in this document are given at the end of the file.
Feedback is appreciated: neliswillers at gmail dot com.
In [1]:
from IPython.display import display
from IPython.display import Image
from IPython.display import HTML
The pyradi
toolkit is a Python toolkit to perform optical and infrared computational radiometry (flux flow) calculations.
Radiometry is the measurement and calculation of electromagnetic flux transfer for systems operating in the spectral region ranging from ultraviolet to microwaves. Indeed, these principles can be applied to electromagnetic radiation of any wavelength. This book only considers ray-based radiometry for incoherent radiation fields.
The briefly summarised information in this notebook is taken from my book, see the book for more details.
In [2]:
display(Image(filename='images/PM236.jpg'))
Electromagnetic radiation can be modeled as a number of different phenomena: rays, electromagnetic waves, wavefronts, or particles. All of these models are mathematically related. The appropriate model to use depends on the task at hand. Either the electromagnetic wave model(developed by Maxwell) or the particle model (developed by Einstein) are used when most appropriate. The part of the electromagnetic spectrum normally considered in optical radiometry is as follows:
In [3]:
display(Image(filename='images/radiometry03.png'))
The photon is a massless elementary particle and acts as the energy carrier for the electromagnetic wave. Photon particles have discrete energy quanta proportional to the frequency of the electromagnetic energy, $Q = h\nu = hc/\lambda$, where $h$ is Planck's constant.
The following figure (expanded from Pinson) and table defines the key radiometry units. The difference operator '$d$' is used to denote 'a small quantity of ...'. This 'small quantity' of one variable is almost always related to a 'small quantity' of another variable in some physical dependency. For example, irradiance is defined as $E=d\Phi/dA$, which means that a small amount of flux $d\Phi$ impinges on a small area $dA$, resulting in an irradiance of $E$. 'Small' is defined as the extent or domain over which the quantity, or any of its dependent quantities, does not vary significantly. Because any finite-sized quantity varies over a finite-sized domain, the $d$ operation is only valid over an infinitely small domain $dA=\lim_{\Delta A \to 0}\Delta A$. The difference operator, written in the form of a differential such as $E=d\Phi/dA$, is not primarily meant to mean differentiation in the mathematical sense. Rather, it is used to indicate something that can be integrated (or summed).
In practice, it is impossible to consider infinitely many, infinitely small domains. Following the reductionist approach, any real system can, however, be assembled as the sum of a set of these small domains, by integration over the physical domain as in $A=\int dA$. Hence, the 'small-quantity' approach proves very useful to describe and understand the problem, whereas the real-world solution can be obtained as the sum of a set of such small quantities. In almost all of the cases in this notebook, it is implied that such 'small-quantity' domains will be integrated (or summed) over the (larger) problem domain.
Photon rates are measured in quanta per second. The 'second' is an SI unit, whereas quanta is a unitless count: the number of photons. Photon rate therefore has units of [1/s] or [s$^{-1}$]. This form tends to lose track of the fact that the number of quanta per second is described. The notebook may occasionally contain units of the form [q/s] to emphasize the photon count. In this case, the 'q' is not a formal unit, it is merely a reminder of 'counts.' In dimensional analysis the 'q' is handled the same as any other unit.
Radiometric quantities can be defined in terms of three different but related units: radiant power (watts), photon rates (quanta per second), or photometric luminosity (lumen). Photometry is radiometry applied to human visual perception. The conversion from radiometric to photometric quantities is covered in more detail in my book. It is important to realize that the underlying concepts are the same, irrespective of the nature of the quantity. All of the derivations and examples presented in this book are equally valid for radiant, photon, or photometric quantities.
Flux is the amount of optical power, a photon rate, or photometric luminous flux, flowing between two surfaces. There is always a source area and a receiving area, with the flux flowing between them. All quantities of flux are denoted by the symbol $\Phi$. The units are [W], [q/s], or [lm], depending on the nature of the quantity.
Irradiance (areance) is the areal density of flux on the receiving surface area. The flux flows inward onto the surface with no regard to incoming angular density. All quantities of irradiance are denoted by the symbol $E$. The units are [W/m$^2$], [q/(s$\cdot$m$^2$)], or [lm/m$^2$], depending on the nature of the quantity.
Exitance (areance) is the areal density of flux on the source surface area. The flux flows outward from the surface with no regard to angular density. The exitance leaving a surface can be due to reflected light, transmitted light, emitted light, or any combination thereof. All quantities of exitance are denoted by the symbol $M$. The units are [W/m$^2$], [q/(s$\cdot$m$^2$)], or [lm/m$^2$], depending on the nature of the quantity.
Intensity (pointance) is the density of flux over solid angle. The flux flows outward from the source with no regard for surface area. Intensity is denoted by the symbol $I$. The human perception of a point source (e.g., a star at long range) 'brightness' is an intensity measurement. The units are [W/sr], [q/(s$\cdot$sr)], or [lm/sr], depending on the nature of the quantity.
Radiance (sterance) is the density of flux per unit source surface area and unit solid angle. Radiance is a property of the electromagnetic field irrespective of spatial location (in a lossless medium). For a radiating surface, the radiance may comprise transmitted light, reflected light, emitted light, or any combination thereof. The radiance in a field created by a Lambertian source is conserved: the radiance is constant anywhere in space, also on the receiving surface. All radiance quantities are denoted by the symbol $L$. The human perception of 'brightness' of a large surface can be likened to a radiance experience (beware of the nonlinear response in the eye, however). The units are [W/(m$^2$ $\cdot$sr)], [q/(s$\cdot$m$^2$ $\cdot$sr)], or [lm/(m$^2$ $\cdot$sr)], depending on the nature of the quantity.
In [4]:
display(Image(filename='images/radiometry01.png'))
In [5]:
display(Image(filename='images/radiometry02.png'))
See notebook 4 in this series, Introduction to computational radiometry with pyradi, for a detailed description of spectral quantities.
Three spectral domains are commonly used: wavelength $\lambda$ in [m], frequency $\nu$ in [Hz], and wavenumber $\tilde{\nu}$ in [cm$^{-1}$] (the number of waves that will fit into a 1-cm length). Spectral quantities indicate an amount of the quantity within a small spectral width $d\lambda$ around the value of $\lambda$: it is a spectral density. Spectral density quantity symbols are subscripted with a $\lambda$ or $\nu$, i.e., $L_\lambda$ or $L_\nu$. The dimensional units of a spectral density quantity are indicated as [$\mu$m$^{-1}$] or [(cm$^{-1})^{-1}$], i.e., [W/(m$^2$ $\cdot$sr$\cdot$ $\mu$m)].
The relationship between the wavelength and wavenumber spectral domains is $\tilde{\nu}=10^4/\lambda$ , where $\lambda$ is in units of $\mu$m. The conversion of a spectral density quantity such as [W/(m$^2$ $\cdot$sr$\cdot$cm$^{-1}$)] requires the derivative, %$d{\tilde{\nu}}=-\frac{10^4}{\lambda^2}d\lambda=-\frac{{\tilde{\nu}}^2}{10^4}d\lambda$. $d{\tilde{\nu}}=-10^4d\lambda /\lambda^2=-\tilde{\nu}^2d\lambda/10^4$. The derivative relationship converts between the spectral widths, and hence the spectral densities, in the two respective domains. The conversion from a wavelength spectral density quantity to a wavenumber spectral density quantity is $d{}L_{\tilde{\nu}}=d{}L_\lambda \lambda^2/10^4=d{} L_\lambda 10^4/\tilde{\nu}^2$.
Spectral quantities denote the amount in a small spectral width $d\lambda$ around a wavelength $\lambda$. It follows that the total quantity over a spectral range can be determined by integration (summation) over the spectral range of interest: $$ L=\int_{\lambda_1}^{\lambda_2}L_\lambda d\lambda. $$ The above integral satisfies the requirements of dimensional analysis (see my book) because the units of $L_\lambda$ are [W/(m$^2$ $\cdot$sr$\cdot$ $\mu$m)], whereas $d\lambda$ has the units of [$\mu$m], and $L$ has units of [W/(m$^2$ $\cdot$sr)].
The geometric solid angle $\omega$ of any arbitrary surface $P$ from the reference point is given by $$ \omega=\int\!\!\!\!\int^{P} \frac{d^2 P \cos\theta_1}{R^2}, $$ where $d^2 P \cos\theta_1$ is the projected surface area of the surface $P$ in the direction of the reference point, and $R$ is the distance from $d^2 P$ to the reference point. The integral is independent of the viewing direction $(\theta_0, \alpha_0)$ from the reference point. Hence, a given area at a given distance will always have the same geometric solid angle irrespective of the direction of the area.
The geometric solid angle of a cone is $\omega=4\pi\sin^2\left(\frac{\Theta}{2}\right)$, where $\Theta$ is the cone half-apex angle.
The projected solid angle $\Omega$ of any arbitrary surface $P$ from the reference area $dA_0$ is given by $$ \Omega=\int\!\!\!\!\int^{P} \frac{d^2 P \cos\theta_0 \cos\theta_1}{R^2}, $$ where $d^2 P \cos\theta_1$ is the projected surface area of the surface $P$ in the direction of the reference area, and $R$ is the distance from $d^2 P$ to the reference area. The integral depends on the viewing direction $(\theta_0, \alpha_0)$ from the reference area, by the projected area ($dA_0\cos\theta_0$) of $dA_0$ in the direction of $d^2 P$. Hence, a given area at a given distance will always have a different projected solid angle in different directions.
The projected solid angle of a cone is $\omega=\pi\sin^2\left(\Theta\right)$, where $\Theta$ is the cone half-apex angle.
In [6]:
display(Image(filename='images/radiometry04.png'))
A Lambertian source is, by definition, one whose radiance is completely independent of viewing angle. Many (but not all) rough and natural surfaces produce radiation whose radiance is approximately independent of the angle of observation. These surfaces generally have a rough texture at microscopic scales. Planck-law blackbody radiators are also Lambertian sources (see my book). Any Lambertian radiator is completely described by its scalar radiance magnitude only, with no angular dependence in radiance.
The relationship between the exitance and radiance for such a Lambertian surface can be easily derived. If the flux radiated from a Lambertian surface $\Phi$ [W] is known, it is a simple matter to calculate the exitance $M=\Phi/A$ [W/m$^2$], where $A$ is the radiating surface area. The exitance of a Lambertian radiator is related to radiance by the projected solid angle of $\pi$ sr, not the geometric solid angle of $2\pi$ sr as one might expect. The details are given in my book.
Radiance is conserved for flux from a Lambertian surface propagation through a lossless optical medium. Consider the construction below: two elemental areas $dA_0$ and $dA_1$ are separated by a distance $R_{01}$, with the angles between the normal vector of each surface and the line of sight given by $\theta_0$ and $\theta_1$. A total flux of $d^2\Phi$ is flowing through both the surfaces. It can be shown (see my book) that for a Lambertian radiator the radiance in an arbitrary $dA_n$ is the same as the radiance in $dA_1$.
As light propagates through mediums with different refractive indices $n$ such as air, water, glass, etc., the entity called basic radiance, defined by $L/n^2$, is invariant. It can be shown that for light propagating from a medium with refractive index $n_1$ to a medium with refractive index $n_2$, the basic radiance is conserved: $$ \frac{L_1}{n_1^2}=\frac{L_2}{n_2^2}. $$
In [7]:
display(Image(filename='images/radiometry05.png'))
A lossless medium is defined as a medium with no losses between the source and the receiver, such as a complete vacuum. This implies that no absorption, scattering, or any other attenuating mechanism is present in the medium. For a lossless medium the flux that flow between both $dA_0$ and $dA_1$ is given by $$ d^2 \Phi= \frac{L_{01}\,d A_0\,\cos\theta_0\, d A_1\,\cos\theta_1}{R_{01}^2}. $$
If the medium has loss, the loss effect is accounted for by including a 'transmittance' factor $\tau_{01}=\Phi_1/\Phi_0=L_{10}/L_{01}$, i.e., the fraction of the flux from $A_0$ that arrives at $A_1$, then $$ d^2 \Phi= \frac{L_{01}\,d A_0\,\cos\theta_0\, d A_1\,\cos\theta_1 \tau_{01}}{R_{01}^2}. $$
The above equation calculates the flux flowing between two infinitely small areas. The flux flowing between two arbitrary shapes can be calculated by integrating the equation over the source surface and the receiving surface. In the general case, the radiance $L$ cannot be assumed constant over $A_0$, introducing the spatial radiance distribution $L(dA_{0})$ as a factor into the spatial integral. Likewise, the medium transmittance between any two areas $dA_{0}$ and $dA_{1}$ varies with the spatial locations of $dA_{0}$ and $dA_{1}$ --- hence $\tau_{01}(dA_{0},dA_{1})$ should also be included in the spatial integral.
The integral can be performed over any arbitrary shape, as shown in the following figure, supporting the solution with complex geometries. Clearly matters such as obscuration and occlusion should be considered when performing this integral: $$ \Phi=\int_{A_0}\int_{A_1} \frac{L(dA_{0})\,dA_0\,\cos\theta_0\, dA_1\,\cos\theta_1\,\tau_{01}(dA_{0},dA_{1})}{R_{01}^2}. $$
In [8]:
display(Image(filename='images/radiometry06.png'))
The optical power leaving a source undergoes a succession of scaling or 'spectral filtering' processes as the flux propagates through the system, as shown below. This filtering varies with wavelength. Examples of such filters are source emissivity, atmospheric transmittance, optical filter transmittance, and detector responsivity. The multi-spectral filter approach described here is conceptually simple but fundamental to the calculation of radiometric flux.
In [9]:
display(Image(filename='images/radiometry07.png'))
Extend the above flux-transfer equation for multi-spectral calculations by noting that over a spectral width $d\lambda$ the radiance is given by $L = L_\lambda d\lambda$: $$ d^3 \Phi_\lambda= \frac{L_{01\lambda}\,dA_0\;\cos\theta_0\,dA_1\;\cos\theta_1 \;\tau_{01}\,d\lambda}{R_{01}^2}, $$ where $d^3\Phi_\lambda$ is the total flux in [W] or [q/s] flowing in a spectral width $d\lambda$ at wavelength $\lambda$, from a radiator with radiance $L_{0\lambda}$ with units [W/(m$^2$ $\cdot$sr$\cdot$ $\mu$m)] and projected surface area $dA_0\cos\theta_0$, through a receiver with projected surface area $dA_1\cos\theta_1$ at a distance $R_{01}$, with a transmittance of $\tau_{01}$ between the two surfaces. The transmittance $\tau_{01}$ now includes all of the spectral variables in the path between the source and the receiver.
To determine the total flux flowing from elemental area $dA_0$ through $dA_1$ over a wide spectral width, divide the wide spectral band into a large number $N$ of narrow widths $\Delta\lambda$ at wavelengths $\lambda_n$ and add the flux for all of these narrow bandwidths together as follows: $$ d^2 \Phi= \sum_{n=0}^{N} \left( \frac{L_{01\lambda_n} \,dA_{0}\,\cos\theta_0\, \,dA_{1}\,\cos\theta_1\, \tau_{01\lambda_n} \Delta\lambda}{R_{01}^2} \right). $$
By the Riemann--Stieltjes theorem in reverse, if now $\Delta\lambda\rightarrow 0$ and $N\rightarrow\infty$, the summation becomes the integral $$ d^2 \Phi= \int_{\lambda_1}^{\lambda_2} \frac{L_{01\lambda} \,dA_{0}\,\cos\theta_0\, \,dA_{1}\,\cos\theta_1 \,\tau_{01\lambda}d\lambda}{R_{01}^2}\ . $$
This equation describes the total flux at all wavelengths in the spectral range $\lambda_1$ to $\lambda_2$ passing through the system. This equation is developed further in my book.
The flux transfer between any two arbitrary surfaces, over any spectral band can be calculated by $$ \Phi= \int_{A_0} \int_{A_1} \int_{\lambda_1}^{\lambda_2} \frac{L_{01\lambda} \,dA_{0}\,\cos\theta_0\, \,dA_{1}\,\cos\theta_1 \,\tau_{01\lambda}d\lambda}{R_{01}^2}\ . $$
In practice these integrals are performed by finite sums of small elemental areas and spectral widths. Any arbitrary problem can be solved using this approach. For a simple example see the flame sensor and the other pages of this notebook series.
In [10]:
# you only need to do this once
#!pip install --upgrade version_information
%load_ext version_information
%version_information numpy, scipy, matplotlib, pyradi
Out[10]:
In [ ]: