yt.visualization.fixed_resolution_filters module

Fixed resolution buffer filters.

class yt.visualization.fixed_resolution_filters.FixedResolutionBufferFilter(*args, **kwargs)[source]

Bases: object

This object allows to apply data transformation directly to yt.visualization.fixed_resolution.FixedResolutionBuffer

apply(buff)[source]
class yt.visualization.fixed_resolution_filters.FixedResolutionBufferGaussBeamFilter(nbeam=30, sigma=2.0)[source]

Bases: yt.visualization.fixed_resolution_filters.FixedResolutionBufferFilter

This filter convolves yt.visualization.fixed_resolution.FixedResolutionBuffer with 2d gaussian that is ‘nbeam’ pixels wide and has standard deviation ‘sigma’.

apply(buff)[source]
class yt.visualization.fixed_resolution_filters.FixedResolutionBufferWhiteNoiseFilter(bg_lvl=None)[source]

Bases: yt.visualization.fixed_resolution_filters.FixedResolutionBufferFilter

This filter adds white noise with the amplitude “bg_lvl” to yt.visualization.fixed_resolution.FixedResolutionBuffer. If “bg_lvl” is not present, 10th percentile of the FRB’s value is used instead.

apply(buff)[source]
class yt.visualization.fixed_resolution_filters.RegisteredFilter(name, b, d)[source]

Bases: type

mro() → list

return a type’s method resolution order

yt.visualization.fixed_resolution_filters.apply_filter(f)[source]