- Feb 21, 2023
-
-
Lionel GUEZ authored
The attribute written was always true.
-
- Aug 30, 2022
-
-
Lionel GUEZ authored
-
- Aug 29, 2022
-
-
Lionel GUEZ authored
Adapt to the new definition of an SHPC.
-
- Jul 05, 2022
-
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
- Jan 25, 2022
-
-
Lionel GUEZ authored
-
- Dec 20, 2021
-
-
Lionel GUEZ authored
-
- Dec 14, 2021
-
-
Lionel GUEZ authored
-
- Oct 05, 2021
-
-
Lionel GUEZ authored
-
- Sep 16, 2021
-
-
Lionel GUEZ authored
This is nicer for the user than waiting for the error because `my_date` is undefined .
-
Lionel GUEZ authored
-
- Sep 02, 2021
-
-
Lionel GUEZ authored
-
Lionel GUEZ authored
Variables `id_anti_cell` and `id_cyclo_cell` contain node indices, not eddy indices. So we check that the first value is consistent with d, `d_init` and `e_overestim`. To decide whether we need to read `node_id_param.json` and filter ghost eddies, we need to look into the first Matlab file whether there is a variable `id_cyclo_cell`. So we modify the structure of the script a little: we process the first Matlab file before the time loop.
-
Lionel GUEZ authored
Clearer, instead of accessing global variable d.
-
Lionel GUEZ authored
-
Lionel GUEZ authored
No need since we want all the variables in the file.
-
Lionel GUEZ authored
-
Lionel GUEZ authored
Bug fix: take into account ghost eddies in global Matlab adt files. Some eddies are duplicated in global adt files, at the border of the longitude domain. We should not use these ghost eddies. So R\'emi has added variables `id_anti_cell` and `id_cyclo_cell` in adt files. Read them. They should contain numbers from 1 to the number of eddies, with a step of 1, intersparsed with NaN values. Check that when reading the variables. Add an argument `cell_mask` to function `write_to_shp` that signals ghost eddies.
-
Lionel GUEZ authored
Bug fix: add default values for arguments of function `write_to_shp`. This fixes the case when the adt file is missing. The bug comes from commit 28afccf5. For simplicity, we remove the empty list actual argument for cell, in the case of a missing file. Then we have to test in `write_to_shp` whether cell is None.
-
Lionel GUEZ authored
Move argument cyclone of function `write_to_shp` before argument cell. cyclone does not depend on `matlab_data`. We are preparing a bug fix for the case of a missing adt file.
-
Lionel GUEZ authored
The name write is too common.
-
Lionel GUEZ authored
-
Lionel GUEZ authored
Instead of using values of global variable `matlab_data` inside the function write. This is clearer. Especially since we already had an argument of write, cell, which is a value of `matlab_data`.
-
- Jul 01, 2021
-
-
Lionel GUEZ authored
-
- Jun 22, 2021
-
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
- Jun 04, 2021
-
-
Lionel GUEZ authored
-
- May 25, 2021
-
-
Lionel GUEZ authored
Required since commit ed60f104.
-
- May 17, 2021
-
-
Lionel GUEZ authored
Much simpler and more robust. This should also ease submitting the script to a batch scheduler. And we can now check the return code of Matlab.
-
Lionel GUEZ authored
Take advantage of version 2019 of Matlab now available on Ciclad, which has option `-batch`. This clears the output and opens the way to subprocess instead of `pty.spawn`.
-
- Apr 30, 2021
-
-
Lionel GUEZ authored
-
- Apr 29, 2021
-
-
Lionel GUEZ authored
So we do not risk loading `adt_v6.mat` from a previous iteration if Matlab fails in the current iteration.
-
Lionel GUEZ authored
This is useful when we run the script through batch scheduling.
-
Lionel GUEZ authored
It is not enough to parse the input file name and extract the date because, when we process other dates, we have to construct file names in the same format. So do not use `parser.parse` for the input file name, try various formats and remember the one that works.
-
Lionel GUEZ authored
-
- Apr 03, 2021
-
-
Lionel GUEZ authored
Method poly of shapefile writer requires a list of lists, not a list of numpy arrays. This bug goes unnoticed in pyshp `2.1.0` but raises an exception with pyshp `2.1.3`.
-
- Apr 02, 2021
-
-
Lionel GUEZ authored
Revert part of commit dfb78dbc. Motivation: being able to use `plot_eddy_contours.py` on results from Matlab.
-
- Mar 10, 2021
-
-
Lionel GUEZ authored
-
- Mar 09, 2021
-
-
Lionel GUEZ authored
We follow Matlab naming. We want the transition in output format to be as easy as possible.
-