You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment the way I apply a gatefilter to mask (ie when I want to save) data is as follows:
gf.exclude_below('reflectivity', 10)
nf = deepcopy(radar.fields['reflectivity'])
nf['data'] = np.ma.masked_where(gf.gate_excluded, nf['data'])
radar.add_field('filtered_refectivity', nf, replace_existing=True)```
It would be great to have a method that automates this...
something like:
radar.apply_filter(gatefilter, replace=False, fields=None)
If replace = False it will append 'filtered_'+field with areas where gatefilter.gate_exluded set to _FillValue
if replace = True it does it in-place
if fields = None it does it to all fields
Inspired by Brenda Dolan
The text was updated successfully, but these errors were encountered:
At the moment the way I apply a gatefilter to mask (ie when I want to save) data is as follows:
The text was updated successfully, but these errors were encountered: