- Sep 26, 2022
-
-
Lionel GUEZ authored
-
- Sep 19, 2022
-
-
Lionel GUEZ authored
Rename test `Plot_eddy_contours_wind` to `Plot_eddy_contours_window`. `wind` is misleading.
-
Lionel GUEZ authored
-
- Sep 16, 2022
-
-
Lionel GUEZ authored
Use a dictionary instead of a list for `ishape_lists_all`. Thus we avoid the need to remember that the first item corresponds to "Anticyclones" and we avoid the awkward `zip(ishape_lists_all, ["Anticyclones", "Cyclones"])`.
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
Lionel GUEZ authored
The immediate motivation comes from tests `Mat_v6_to_shapefiles` and `Plot_eddy_contours_Mat`. `Plot_eddy_contours_Mat` needs to open the SHPC in `Mat_v6_to_shapefiles`. `Mat_v6_to_shapefiles` does not create `n_slices.txt` and we do not want to create `n_slices.txt` in `inst_eddies_v6.py` because this script could be run in parallel for several slices. There is no simple way to create `n_slices.txt` automatically after runnning `inst_eddies_v6.py` in the test `Mat_v6_to_shapefiles`. We cannot use a redirection in a command of the test so something like `echo 0 > n_slices.txt` would not work.
-
Lionel GUEZ authored
Note that orientation = None is passed to `get_ishape_last` where it becomes `self.def_orient`.
-
Lionel GUEZ authored
Move function `comp_ishape` to method of SHPC class.
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
- Sep 14, 2022
-
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
- Sep 13, 2022
-
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
Lionel GUEZ authored
Avoid the mistake eddy_index = 0.
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
- Sep 09, 2022
-
-
Lionel GUEZ authored
Several scripts allow `ishape_last.txt` not to exist. For example `eddy_dump.py`.
-
Lionel GUEZ authored
The code is adapted from `filter.py`.
-
- Sep 08, 2022
-
-
Lionel GUEZ authored
For performance.
-
Lionel GUEZ authored
-
Lionel GUEZ authored
So we are reverting in part commit 26624352.
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
Lionel GUEZ authored
Especially, we want to allow missing layer `max_speed_contour` when running script `plot_eddy_contours.py`.
-
Lionel GUEZ authored
The dates in the shapefiles should be the same for both orientations.
-
Lionel GUEZ authored
Because we want to move the logic on date out of the loop on orientation.
-
Lionel GUEZ authored
-
Lionel GUEZ authored
So we are reverting in part commit d07eaadf. Because we want to move the logic on date out of the loop on orientation. If we want to allow missing `ishape_last`, we can do it in `open_shpc` or class SHPC.
-
- Sep 06, 2022
-
-
Lionel GUEZ authored
The motivation is to manage an SHPC directory without opening first all the files inside. The class allows to open files dynamically and remember already opened files.
-
Lionel GUEZ authored
-
Lionel GUEZ authored
`slice` is a built-in class of Python.
-
- Sep 01, 2022
-
-
Lionel GUEZ authored
-
- Aug 31, 2022
-
-
Lionel GUEZ authored
A little clearer, a little less repeated code.
-
Lionel GUEZ authored
-
Lionel GUEZ authored
If `date < handler["d_init"]` then the result of the function is silently wrong.
-