Skip to content

Commit 57c8faa

Browse files
committed
Add some information(paper ref, ...)
1 parent d045489 commit 57c8faa

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# README #
22

3+
### Method ###
4+
5+
Method was described in :
6+
7+
[Mason, E., A. Pascual, and J. C. McWilliams, 2014: A new sea surface height–based code for oceanic mesoscale eddy tracking.](https://doi.org/10.1002/2016JC012611)
8+
9+
### Use case ###
10+
11+
Method is used in :
12+
13+
[Mason, E., A. Pascual, P. Gaube, S.Ruiz, J. Pelegrí, A. Delepoulle, 2017: Subregional characterization of mesoscale eddies across the Brazil-Malvinas Confluence](https://doi.org/10.1002/2016JC012611)
14+
315
### How do I get set up? ###
416

517
To avoid problems with installation, use of the virtualenv Python virtual environment is recommended.
@@ -33,7 +45,3 @@ EddyTracking tracking.yaml
3345
for tracking.
3446

3547

36-
# Py Eddy Tracker module #
37-
38-
### Grid manipulation ###
39-

src/py_eddy_tracker/eddy_feature.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ def detect_local_minima_(grid, general_mask, pixel_mask, maximum_local_extremum,
174174
else:
175175
g[i_ + 1, j_ + 1] = grid[i_ + i, j_ + j] * sign
176176
# if center equal to min
177+
# TODO if center and neigboor have same value we have problem, i don't know how
177178
if g.min() == (grid[i, j] * sign) and pixel_mask[i,j]:
178179
xs.append(i)
179180
ys.append(j)
@@ -383,9 +384,12 @@ def __init__(self, x, y, z, levels, wrap_x=False, keep_unclose=False):
383384
else:
384385
closed_contours += 1
385386
contour.vertices[-1] = contour.vertices[0]
386-
# Store to use latter
387387
x_min, y_min = contour.vertices.min(axis=0)
388388
x_max, y_max = contour.vertices.max(axis=0)
389+
ptp_min = self.DELTA_PREC * 100
390+
if abs(x_min - x_max) < ptp_min or abs(y_min - y_max) < ptp_min:
391+
continue
392+
# Store to use latter
389393
contour.xmin = x_min
390394
contour.xmax = x_max
391395
contour.ymin = y_min

0 commit comments

Comments
 (0)