Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
- precisions on lon/lat max
- full colors for contour rejection
  • Loading branch information
CoriPegliasco committed Mar 12, 2021
commit 60c23aacfae738825f643fc56219aa705ee182c1
1 change: 0 additions & 1 deletion examples/01_general_things/pet_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,3 @@

# %%
# Networks are ordered by increasing network number (`track`), then increasing segment number, then increasing time

2 changes: 2 additions & 0 deletions src/py_eddy_tracker/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ def parse_args(self, *args, **kwargs):
axis="X",
long_name="Longitude of the SSH maximum",
standard_name="longitude",
comment="Longitude of the inner contour",
),
),
lat_max=dict(
Expand All @@ -243,6 +244,7 @@ def parse_args(self, *args, **kwargs):
axis="Y",
long_name="Latitude of the SSH maximum",
standard_name="latitude",
comment="Latitude of the inner contour",
),
),
amplitude=dict(
Expand Down
8 changes: 7 additions & 1 deletion src/py_eddy_tracker/eddy_feature.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,13 @@ def display(
if not overide_color:
ax.add_collection(LineCollection(paths, **local_kwargs))
if display_criterion:
colors = {0: "g", 1: "r", 2: "b", 3: "k", 4: "y"}
colors = {
0: "limegreen",
1: "red",
2: "mediumblue",
3: "black",
4: "gold",
}
for k, v in paths.items():
local_kwargs = kwargs.copy()
local_kwargs.pop("label", None)
Expand Down