Skip to content

Commit 1f0e2a0

Browse files
committed
add some informations about area tracker
1 parent a3a47db commit 1f0e2a0

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ Method is used in :
1919

2020
### How do I get set up? ###
2121

22+
#### Short story ####
23+
```bash
24+
pip install pyeddytracker
25+
```
26+
#### Long story ####
27+
2228
To avoid problems with installation, use of the virtualenv Python virtual environment is recommended.
2329

2430
Then use pip to install all dependencies (numpy, scipy, matplotlib, netCDF4, ...), e.g.:

examples/16_network/pet_group_anim.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def update(frame):
146146

147147
# %%
148148
# Final Result
149-
# -----------
149+
# ------------
150150
fig = plt.figure(figsize=(16, 9))
151151
ax = fig.add_axes([0, 0, 1, 1])
152152
ax.set_aspect("equal"), ax.grid(), ax.set_xlim(26, 34), ax.set_ylim(31, 35.5)

examples/16_network/pet_segmentation_anim.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def update(i_frame):
119119

120120
# %%
121121
# Final Result
122-
# -----------
122+
# ------------
123123
fig = plt.figure(figsize=(16, 9))
124124
ax = fig.add_axes([0.04, 0.06, 0.94, 0.88], projection="full_axes")
125125
ax.set_xlim(19, 29), ax.set_ylim(31, 35.5), ax.grid()

src/py_eddy_tracker/featured_tracking/area_tracker.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@
99

1010

1111
class AreaTracker(Model):
12+
"""
13+
Area Tracker will used overlap to track eddy.
14+
15+
This tracking will used :py:meth:`~py_eddy_tracker.observations.observation.EddiesObservations.match` method
16+
to get a similarity index, which could be between [0:1].
17+
You could setup this class with `cmin` option to set a minimal value to valid an association.
18+
"""
1219

1320
__slots__ = ("cmin",)
1421

@@ -28,6 +35,9 @@ def needed_variable(cls):
2835
return vars
2936

3037
def tracking(self, other):
38+
"""
39+
Core method to track
40+
"""
3141
shape = (self.shape[0], other.shape[0])
3242
i, j, c = self.match(other, intern=False)
3343
cost_mat = ma.array(empty(shape, dtype="f4"), mask=ones(shape, dtype="bool"))

0 commit comments

Comments
 (0)