22Colocate looper with eddy from altimetry
33========================================
44
5- All loopers data used in this example are a subset from the dataset describe in this article
5+ All loopers data used in this example are a subset from the dataset described in this article
66[Lumpkin, R. : Global characteristics of coherent vortices from surface drifter trajectories](https://doi.org/10.1002/2015JC011435)
77"""
88
@@ -29,7 +29,7 @@ def _repr_html_(self, *args, **kwargs):
2929
3030 def save (self , * args , ** kwargs ):
3131 if args [0 ].endswith ("gif" ):
32- # In this case gif is use to create thumbnail which are not use but consume same time than video
32+ # In this case gif is used to create thumbnail which is not used but consume same time than video
3333 # So we create an empty file, to save time
3434 with open (args [0 ], "w" ) as _ :
3535 pass
@@ -71,15 +71,15 @@ def update_axes(ax, mappable=None):
7171# %%
7272# Global view
7373# ===========
74- ax = start_axes ("All drifter available in med from Lumpkin dataset" )
74+ ax = start_axes ("All drifters available in Med from Lumpkin dataset" )
7575loopers_med .plot (ax , lw = 0.5 , color = "r" , ref = - 10 )
7676update_axes (ax )
7777
7878# %%
7979# One segment of drifter
8080# ======================
8181#
82- # Get a drifter segment (index used have no correspondance with original dataset).
82+ # Get a drifter segment (the indexes used have no correspondance with the original dataset).
8383looper = loopers_med .extract_ids ((3588 ,))
8484fig = plt .figure (figsize = (16 , 6 ))
8585ax = fig .add_subplot (111 , aspect = "equal" )
@@ -138,7 +138,7 @@ def update_axes(ax, mappable=None):
138138
139139
140140# %%
141- # Animation which show drifter with colocated eddy
141+ # Animation of a drifter and its colocated eddy
142142def update (frame ):
143143 # We display last 5 days of loopers trajectory
144144 m = (looper .time < frame ) * (looper .time > (frame - 5 ))
0 commit comments