File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/py_eddy_tracker/observations Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -366,7 +366,7 @@ def add_rotation_type(self):
366
366
new .type_cyc [:] = self .sign_type
367
367
return new
368
368
369
- def circle_contour (self , only_virtual = False ):
369
+ def circle_contour (self , only_virtual = False , factor = 1 ):
370
370
"""
371
371
Set contours as a circles from radius and center data.
372
372
@@ -381,12 +381,12 @@ def circle_contour(self, only_virtual=False):
381
381
continue
382
382
x , y = obs ["lon" ], obs ["lat" ]
383
383
if radius_s :
384
- r_s = obs ["radius_s" ]
384
+ r_s = obs ["radius_s" ] * factor
385
385
obs ["contour_lon_s" ], obs ["contour_lat_s" ] = local_to_coordinates (
386
386
x_norm * r_s , y_norm * r_s , x , y
387
387
)
388
388
if radius_e :
389
- r_e = obs ["radius_e" ]
389
+ r_e = obs ["radius_e" ] * factor
390
390
obs ["contour_lon_e" ], obs ["contour_lat_e" ] = local_to_coordinates (
391
391
x_norm * r_e , y_norm * r_e , x , y
392
392
)
You can’t perform that action at this time.
0 commit comments