MedianFilter

class ginga.AutoCuts.MedianFilter(logger, num_points=2000, length=5)[source]

Bases: AutoCutsBase

Calculate the cut levels based on a median filtering analysis of the data.

The calculation is:

out = median_filter(sample_data, size=length) loval, hival = min(out), max(out)

Parameters:
loggerLogger

Logger for tracing and debugging.

num_pointsint (optional, defaults to None)

Specifies the number of points to sample making up the grid. If None, the number of points will be calculated to a “reasonable representative sample”.

lengthint (optional, defaults to 5)

Specifies the size of the median filter to apply to the data

Methods Summary

calc_cut_levels(image)

See subclass documentation.

calc_cut_levels_data(data_np)

See subclass documentation.

calc_medianfilter(data[, length])

Internal function used by this class.

get_params_metadata()

Methods Documentation

calc_cut_levels(image)[source]

See subclass documentation.

calc_cut_levels_data(data_np)[source]

See subclass documentation.

calc_medianfilter(data, length=5)[source]

Internal function used by this class.

classmethod get_params_metadata()[source]