diff --git a/Inst_eddies/Analysis/anim_eddy_contours.py b/Inst_eddies/Analysis/anim_eddy_contours.py index dc34fff7b7b36183ce7fbee5bc7a8de6478c498d..117d988748c5f1ee84a62989f7aa68810344beaf 100755 --- a/Inst_eddies/Analysis/anim_eddy_contours.py +++ b/Inst_eddies/Analysis/anim_eddy_contours.py @@ -33,8 +33,8 @@ def func(d, ax, ishape_lists, readers, bbox, light): ax.coastlines() ax.set_title(f"d = {d}", y = 1.05) -def make_animation(fig, ax, d_init, ishape_last, readers, window, d_min, d_max, - light): +def anim_eddies(fig, ax, d_init, ishape_last, readers, window, d_min, d_max, + light): ishape_lists = {d: plot_eddy_contours.select_ishapes(d, d_init, ishape_last, readers["extremum"], window) @@ -86,9 +86,9 @@ if __name__ == "__main__": fig = plt.figure() projection = ccrs.PlateCarree() ax = plt.axes(projection = projection) - ani = make_animation(fig, ax, d_init, ishape_last, readers, - window = args.window, d_min = args.d_min, - d_max = args.d_max, light = args.light) + ani = anim_eddies(fig, ax, d_init, ishape_last, readers, + window = args.window, d_min = args.d_min, + d_max = args.d_max, light = args.light) ani.save("eddy_contours.gif", writer = "imagemagick") pygifsicle.gifsicle("eddy_contours.gif", options = ["--no-loopcount"])