pyart.filters.GateFilter#
- class pyart.filters.GateFilter(radar, exclude_based=True)[source]#
A class for building a boolean arrays for filtering gates based on a set of condition typically based on the values in the radar fields. These filter can be used in various algorithms and calculations within Py-ART.
See
pyart.correct.GateFilter.exclude_below()
for method parameter details.- Parameters:
radar (Radar) – Radar object from which gate filter will be build.
exclude_based (bool, optional) – True, the default and suggested method, will begin with all gates included and then use the exclude methods to exclude gates based on conditions. False will begin with all gates excluded from which a set of gates to include should be set using the include methods.
Examples
>>> import pyart >>> radar = pyart.io.read('radar_file.nc') >>> gatefilter = pyart.correct.GateFilter(radar) >>> gatefilter.exclude_below('reflectivity', 10) >>> gatefilter.exclude_below('normalized_coherent_power', 0.75)
initialize
|
Return a copy of the gatefilter. |
|
Exclude gates where a given field is above a given value. |
|
Exclude gates above a given toa value. |
Exclude all gates. |
|
|
Exclude gates where a given field is below a given value. |
|
Exclude gates where a given field is equal to a value. |
|
Exclude gates where a given mask is equal True. |
|
Exclude gates where a given field is inside a given interval. |
|
Exclude gates where an invalid value occurs in a field (NaNs or infs). |
|
Excludes a number of gates at the end of each ray. |
|
Exclude gates where a given field is masked. |
Exclude no gates, include all gates. |
|
|
Exclude gates where a given field is not equal to a value. |
|
Exclude gates where a given field is outside a given interval. |
|
Exclude all gates in rays marked as in transition between sweeps. |
|
Include gates where a given field is above a given value. |
Include all gates. |
|
|
Include gates where a given field is below a given value. |
|
Include gates where a given field is equal to a value. |
|
Include gates where a given mask is equal True. |
|
Include gates where a given field is inside a given interval. |
Include no gates, exclude all gates. |
|
|
Include gates where a given field is not equal to a value. |
|
Include gates where a given field in not masked. |
|
Include all gates in rays not marked as in transition between sweeps. |
|
Include gates where a given field is outside a given interval. |
|
Include gates where a valid value occurs in a field (not NaN or inf). |
Boolean array indicating if a gate should be excluded from a calculation. |
|
Boolean array indicating if a gate should be included in a calculation. |