A transfer function governs the transmission of emission and absorption through a volume.
Transfer functions are defined by boundaries, bins, and the value that governs transmission through that bin. This is scaled between 0 and 1. When integrating through a volume. the value through a given cell is defined by the value calculated in the transfer function.
Parameters : | x_bounds : tuple of floats
nbins : int
|
---|
Notes
Typically, raw transfer functions are not generated unless particular and specific control over the integration is desired. Usually either color transfer functions, where the color values are calculated from color tables, or multivariate transfer functions are used.
Methods
add_filtered_planck(wavelength, trans) | |
add_gaussian(location, width, height) | Add a Gaussian distribution to the transfer function. |
add_line(start, stop) | Add a line between two points to the transmission function. |
add_step(start, stop, value) | Adds a step function to the transfer function. |
plot(filename) | Save an image file of the transfer function. |