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):
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 )
You can’t perform that action at this time.
0 commit comments