oimDataFilter
Data filtering/modifying
Classes:
|
Base class for data filter |
|
Class for data filter stack |
|
Simple filter removing arrays by type |
|
Simple filter removing arrays by type |
|
Filter for cutting wavelength range |
|
|
|
|
|
Filter for shifting wavelength |
|
Filter for Smoothing wavelength |
|
Filter for binning wavelength |
|
Filter that bins the wavelength to a specified grid. |
|
Flaging based on expression |
|
Select baselines to keep |
|
Select baselines to remove |
|
Select telescopes to keep |
|
Select telescopes to remove |
|
Unflag all data |
|
Compute differential error from std of signal inside or outside a range |
|
Set minimum error on data in % for vis ans deg for phases |
- class oimodeler.oimDataFilter.oimDataFilterComponent(**kwargs)
Base class for data filter
- name = 'Generic Filter'
- shortname = 'Genfilt'
- description = 'This is the class from which all filters derived'
- _eval(**kwargs)
- _filteringFunction(data)
- applyFilter(data)
- class oimodeler.oimDataFilter.oimDataFilter(filters=[])
Class for data filter stack
- applyFilter(data)
- class oimodeler.oimDataFilter.oimRemoveArrayFilter(**kwargs)
Simple filter removing arrays by type
- name = 'Remove array by type Filter'
- shortname = 'RemArrFilt'
- description = 'Removing arrays by type: OI_VIS2, OI_T3...'
- _filteringFunction(data)
- class oimodeler.oimDataFilter.oimRemoveInsnameFilter(**kwargs)
Simple filter removing arrays by type
- name = 'Remove arrays by insname Filter'
- shortname = 'RemInsFilt'
- description = 'Remove array by insname'
- _filteringFunction(data)
- class oimodeler.oimDataFilter.oimWavelengthRangeFilter(**kwargs)
Filter for cutting wavelength range
- name = 'Wavelength range Filter'
- shortname = 'WlRgFilt'
- description = 'Cutting wavelength range(s)'
- _filteringFunction(data)
- class oimodeler.oimDataFilter.oimDataTypeFilter(**kwargs)
- name = 'Filtering by datatype'
- shortname = 'DTFilt'
- description = 'Filtering by datatype(s) : VIS2DATA, VISAMP...'
- _filteringFunction(data)
- class oimodeler.oimDataFilter.oimKeepDataType(**kwargs)
- name = 'Keep datatype filter'
- shortname = 'KeepDTFilt'
- description = 'Keep atatype that are listed: VIS2DATA, VISAMP...'
- _filteringFunction(data)
- class oimodeler.oimDataFilter.oimWavelengthShiftFilter(**kwargs)
Filter for shifting wavelength
- name = 'Shift Wavelength Filter'
- shortname = 'WlShFilt'
- description = 'Shifting wavelength table'
- _filteringFunction(data)
- class oimodeler.oimDataFilter.oimWavelengthSmoothingFilter(**kwargs)
Filter for Smoothing wavelength
- name = 'Wavelength Smoothing Filter'
- shortname = 'WlSmFilt'
- description = 'Spectral smoothing '
- _filteringFunction(data)
- class oimodeler.oimDataFilter.oimWavelengthBinningFilter(**kwargs)
Filter for binning wavelength
- name = 'Wavelength binning Filter'
- shortname = 'WlBinFilt'
- description = 'Spectral Binning'
- _filteringFunction(data)
- class oimodeler.oimDataFilter.oimWavelengthIntpBinFilter(**kwargs)
Filter that bins the wavelength to a specified grid. It also interpolates at the edges of the bins, to ensure a minimum number of elements.
- Parameters:
binGrid (array_like) – The grid to bin to.
binWindow (array_like, optional) – The bin windows that correspond to the binGrid elements. If None, computes the bin windows from the distance between two elements in the binGrid. Default is None.
resetFlags (bool, optional) – If True, resets the flags after binning. Default is True.
averageError (bool, optional) – If True, forgoes error propagation and simply averages the errors for each bin. Default is False.
spectralChannels (int, optional) – The number of channels of the set bin resolution. Will be used to calculate the divisor within the error propagation. Default is 1.0.
\[divisor = bin_elements / spectralChannels\]
- name = 'Wavelength Interpolation Binning Filter'
- shortname = 'WlIntpBinFilt'
- description = 'Binning to wavelength grid with interpolation at window edges.'
- _filteringFunction(data)
- class oimodeler.oimDataFilter.oimFlagWithExpressionFilter(**kwargs)
Flaging based on expression
- name = 'Flag With Expression filter'
- shortname = 'FlagExprFilt'
- description = 'Flagging based on boolean expressions'
- _filteringFunction(data)
- class oimodeler.oimDataFilter.oimKeepBaselinesFilter(**kwargs)
Select baselines to keep
- name = 'Baseline selection filter'
- shortname = 'KeepBaselinesFilt'
- description = 'Selection based on baseline name(s)'
- _filteringFunction(data)
- class oimodeler.oimDataFilter.oimRemoveBaselinesFilter(**kwargs)
Select baselines to remove
- name = 'Baseline selection filter'
- shortname = 'RemoveBAselineFilt'
- description = 'Selection based on baseline name(s)'
- _filteringFunction(data)
- class oimodeler.oimDataFilter.oimKeepTelescopesFilter(**kwargs)
Select telescopes to keep
- name = 'Telescopes selection filter'
- shortname = 'KeepTelescopesFilt'
- description = 'Selection based on telescope name(s)'
- _filteringFunction(data)
- class oimodeler.oimDataFilter.oimRemoveTelescopesFilter(**kwargs)
Select telescopes to remove
- name = 'Telescope selection filter'
- shortname = 'RemoveTelescopeFilt'
- description = 'Selection based on telescope name(s)'
- _filteringFunction(data)
- class oimodeler.oimDataFilter.oimResetFlags(**kwargs)
Unflag all data
- name = 'Reset flags filter'
- shortname = 'ResFlagsFilt'
- description = 'Set all the flags to False'
- _filteringFunction(data)