Skip to content

Commit b075e2b

Browse files
committed
add option to increase circle size by a factor
1 parent 4f7fbc4 commit b075e2b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/py_eddy_tracker/observations/observation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ def add_rotation_type(self):
366366
new.type_cyc[:] = self.sign_type
367367
return new
368368

369-
def circle_contour(self, only_virtual=False):
369+
def circle_contour(self, only_virtual=False, factor=1):
370370
"""
371371
Set contours as a circles from radius and center data.
372372
@@ -381,12 +381,12 @@ def circle_contour(self, only_virtual=False):
381381
continue
382382
x, y = obs["lon"], obs["lat"]
383383
if radius_s:
384-
r_s = obs["radius_s"]
384+
r_s = obs["radius_s"] * factor
385385
obs["contour_lon_s"], obs["contour_lat_s"] = local_to_coordinates(
386386
x_norm * r_s, y_norm * r_s, x, y
387387
)
388388
if radius_e:
389-
r_e = obs["radius_e"]
389+
r_e = obs["radius_e"] * factor
390390
obs["contour_lon_e"], obs["contour_lat_e"] = local_to_coordinates(
391391
x_norm * r_e, y_norm * r_e, x, y
392392
)

0 commit comments

Comments
 (0)