We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f72b9a6 commit 1633dfaCopy full SHA for 1633dfa
src/py_eddy_tracker/observations/observation.py
@@ -319,7 +319,7 @@ def add_rotation_type(self):
319
new.observations["type_cyc"] = self.sign_type
320
return new
321
322
- def circle_contour(self):
+ def circle_contour(self, only_virtual=False):
323
"""
324
Set contour as a circle with radius and center data
325
@@ -330,6 +330,8 @@ def circle_contour(self):
330
radius_s = "contour_lon_s" in self.obs.dtype.names
331
radius_e = "contour_lon_e" in self.obs.dtype.names
332
for i, obs in enumerate(self):
333
+ if only_virtual and not obs["virtual"]:
334
+ continue
335
x, y = obs["lon"], obs["lat"]
336
if radius_s:
337
r_s = obs["radius_s"]
0 commit comments