yt.visualization.fixed_resolution_filters module

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

Bases: ABC

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

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

Bases: 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: 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]
yt.visualization.fixed_resolution_filters.apply_filter(f)[source]