Skip to content
Snippets Groups Projects
Commit b3c49704 authored by GUEZ Lionel's avatar GUEZ Lionel
Browse files

Polish

parent a0d4d859
No related branches found
No related tags found
No related merge requests found
......@@ -71,10 +71,9 @@ def anim_eddies(fig, ax, SHPC, window, d_min, d_max, light):
ishape_lists_all[orientation] = {}
for d in range(d_min, d_max + 1):
(
i_slices[d],
ishape_lists_all[orientation][d],
) = plot_eddy_contours.select_ishapes(d, SHPC, orientation, window)
(i_slices[d], ishape_lists_all[orientation][d]) = (
plot_eddy_contours.select_ishapes(d, SHPC, orientation, window)
)
if window is None:
bbox = None
......@@ -144,7 +143,7 @@ if __name__ == "__main__":
not SHPC.d_init[0]
<= d_min
< d_max
<= SHPC.d_init[-1] + SHPC.n_dates[- 1] - 1
<= SHPC.d_init[-1] + SHPC.n_dates[-1] - 1
):
sys.exit("Bad dates specified")
else:
......@@ -160,7 +159,6 @@ if __name__ == "__main__":
ani.save("eddy_contours.gif", writer="imagemagick")
pygifsicle.gifsicle("eddy_contours.gif", options=["--no-loopcount"])
# (The repeat = False option of the save method of
# FuncAnimation does not work.)
# (The repeat = False option of FuncAnimation does not work.)
print('Created file "eddy_contours.gif".')
......@@ -78,15 +78,15 @@ directory.
The script `inst_eddies_Aviso.py` writes 8 lines per date so it may be
a good idea to redirect standard output. Here is an example command line which
detects eddies in the geographical window 70° W to 20°W, 10°S to 20° N,
detects eddies in the geographical window 70° W to 20° W, 10° S to 20° N,
between May 15th, 2019 and February 29th, 2020:
```
build/Detection_eddies/Inst_eddies/inst_eddies_Aviso.py --bbox -70 -20 -10 20 SHPC /some/path/to/dt_global_allsat_phy_l4_%Y%m%d_20210726.nc 2019-05-15 2020-02-29 >inst_eddies_Aviso_stdout.txt
```
The command above will create a directory named SHPC (the first
positional argument) in the current directory (you can choose any
name and any path instead of SHPC).
positional argument) in the current directory (you can choose any name
and any path instead of SHPC).
To detect instantaneous eddies in [INALT model
output](https://gmd.copernicus.org/articles/12/3329/2019), use the
......
......@@ -2,7 +2,7 @@
"""This script reads a JSon file containing trajectories as lists of
instantaneous eddies and prints the trajectory which has the given
index. This is equivalent to jq '.traj."{sys.argv[2]}"'.
index. This is equivalent to jq '.traj."{sys.argv[2]}"' sys.argv[1].
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment