Skip to content

Commit eef3ecc

Browse files
committed
Update grid.py
1 parent 32579cb commit eef3ecc

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/py_eddy_tracker/dataset/grid.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ def eddy_identification(
613613
force_speed_unit=None,
614614
vorticity_name='vrt',
615615
mle=1,
616-
filtering=False,
616+
filtering=None,
617617
filtering_scale=30,
618618
**kwargs,
619619
):
@@ -689,8 +689,12 @@ def eddy_identification(
689689
data.mask = zeros(data.shape, dtype="bool")
690690
data.mask[isnan(data)] = 1
691691

692-
if filtering and grid_height in ['zeta']:
693-
data = data - gaussian_filter(data, filtering_scale)
692+
if filtering is not None and grid_height in ['zeta']:
693+
if filtering is 'highpass':
694+
data = data - gaussian_filter(data, filtering_scale)
695+
if filtering is 'lowpass':
696+
data = data - gaussian_filter(data, filtering_scale)
697+
694698

695699
# we remove noisy information
696700
if precision is not None:

0 commit comments

Comments
 (0)