- Sep 02, 2021
-
-
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.
-
Lionel GUEZ authored
Rename field `date_index` of shapefiles to `days_1950`. Clearer.
-
- Mar 04, 2021
-
-
Lionel GUEZ authored
We just write a line in `ishape_last.txt`. Note that we cannot catch the error, which occurs inside Matlab, so we have to test for file existence beforehand.
-
- Mar 03, 2021
-
-
Lionel GUEZ authored
-
Lionel GUEZ authored
Files for EUREC4A have format `adt_YYYY-MM-DD.mat` while files for domain PhD-Lax and global domain have format `adt_YYYY-MM-DD.mat`, so we need something more general than strptime.
-
Lionel GUEZ authored
-
Lionel GUEZ authored
Write to `SHPC_(anti|cyclo)` instead of `Snapshot_(anti|cyclo)` since we are now writing several dates.
-
- Feb 23, 2021
-
-
Lionel GUEZ authored
-
Lionel GUEZ authored
Call the Matlab script from the Python script. We cannot do this with subprocess because Matlab requires a terminal. With subprocess, the Matlab script complains: "inappropriate ioctl for device". Note that we cannot test that the Matlab script worked normally because it exit with code 0 regardless: the exit instruction returns code 0. The idea here is that we do not want to store the converted v6 mat files.
-
Lionel GUEZ authored
-
- Feb 18, 2021
-
-
Lionel GUEZ authored
We already have it: it is `sys.argv[1]`.
-
Lionel GUEZ authored
-
- Feb 16, 2021
-
-
Lionel GUEZ authored
-
Lionel GUEZ authored
Preparing for a fourth shapefile containing centers.
-
Lionel GUEZ authored
Remove fields interpolat, cyclone and valid from `extremum.dbf` and field radius4 from `outermost_contour.dbf`. For now, we just want to change the format of Matlab results, not add to the contents.
-
Lionel GUEZ authored
-
Lionel GUEZ authored
Read the path to first file and the last date from the command line.
-
Lionel GUEZ authored
`inst_eddies`: instantaneous eddies. `overlap`: overlapping.
-
- Feb 15, 2021
-
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-