- Mar 13, 2021
-
-
Lionel GUEZ authored
-
- Feb 16, 2021
-
-
Lionel GUEZ authored
Make them equal to basenames of shapefiles. Clearer and allows a little simplification in programming.
-
Lionel GUEZ authored
-
Lionel GUEZ authored
There may be a fourth shapefile for centers of eddies.
-
Lionel GUEZ authored
A record is not a dictionary. The bug comes from commit 1431d67b.
-
Lionel GUEZ authored
This occurs when we read results from the Matlab program.
-
Lionel GUEZ authored
The bug occurred when: `args.anim` is None; `shp_tr_dir` contains a file `ishape_last.txt`; `ishape_last.txt` contains a single value (there is a single date in `shp_tr_dir`). Then loadtxt without the argument ndmin return a numpy scalar. Then we cannot call `len(ishape_last)`, at line 286.
-
- Feb 15, 2021
-
-
Lionel GUEZ authored
The bug comes from commit fb9652fb.
-
- Feb 12, 2021
-
-
Lionel GUEZ authored
Useful for automated test. See also commit 92bc155d.
-
Lionel GUEZ authored
Replace `reader_extr`, `reader_outer`, `reader_m_s` by dictionary readers. Clearer and more concise.
-
Lionel GUEZ authored
Motivation: ease plotting of several snapshots coming from different triplets of shapefiles, on the same figure. We may want to do this if we have anticyclones and cyclones in separated triplets of shapefiles. In order to extract the code for this function from the main part of the script, we have to modify the behaviour of the script a little: when the file `ishape_last.txt` could not be read or there is a single value in it then args.k, if not None, must be equal to k1, instead of being ignored.
-
- Jan 06, 2021
-
-
Lionel GUEZ authored
In `make_animation`, when window is defined, use window instead of computing bbox. Avoiding projection issues.
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
Lionel GUEZ authored
Bug from commit 04cef827.
-
- Jan 05, 2021
-
-
Lionel GUEZ authored
Put existing code into new function `in_window` because we also want to use it in another script: `plot_traj.py`.
-
Lionel GUEZ authored
-
- Sep 24, 2020
-
-
Lionel GUEZ authored
In some use cases, we would rather not overwrite the title. For example, if we overlap eddies at several dates, we may want to keep the first date. Argument k was only used for the title. It is also clearer not to have k as an argument because it did not select the eddies plotted, the selection is made by argument `ishape_list`.
-
- Sep 18, 2020
-
-
Lionel GUEZ authored
The script can plot more than a snapshot.
-
Lionel GUEZ authored
-
Lionel GUEZ authored
The repeat option does not work. Apparently a Matplotlib bug.
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
Lionel GUEZ authored
Bring plotting commands together at the end of the main part of the script.
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
- Sep 17, 2020
-
-
Lionel GUEZ authored
Extract instructions to select ishapes from function snapshot to a new function `select_ishapes`. Preparing to use the function to find the bounding box for the selected shapes.
-
Lionel GUEZ authored
Preparing for extraction of selection task into a function.
-
Lionel GUEZ authored
Especially important for animation.
-
Lionel GUEZ authored
Cleaner and more powerful.
-
Lionel GUEZ authored
We can access the projection through the axes instance.
-
Lionel GUEZ authored
They do not change for a new date, for instance.
-
Lionel GUEZ authored
Too complex. Just re-run the script for a new figure.
-
Lionel GUEZ authored
Replace argument `shp_tr_dir` by arguments k1, `ishape_last`, `reader_extr`, `reader_outer`, `reader_m_s`. The idea is to not redo tasks in function snapshot when calling it for several dates.
-
Lionel GUEZ authored
-
Lionel GUEZ authored
Move argument window before the keyword-only arguments. Preparing for using the function in an animation.
-
Lionel GUEZ authored
It is clearer that args.window in the main part of the script and window in the function snapshot both contain the tuple or None. Also, function snapshot referred to global variables llcrnrlon, llcrnrlat, urcrnrlon, urcrnrlat which were defined under the test `__name__ == "__main__"`. That was not convenient when importing the script. This is fixed.
-
Lionel GUEZ authored
Without the assert, if the current axes is not a Geoaxes instance, there is a less clear error with a plot instruction later.
-
Lionel GUEZ authored
-