yt.extensions.volume_rendering.TransferFunction.__init__

TransferFunction.__init__(x_bounds, nbins=256)

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

The min and max for the transfer function. Values below or above these values are discarded.

nbins : int

How many bins to calculate; in betwee, linear interpolation is used, so low values are typically fine.

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.

This Page