- Sep 14, 2022
-
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
- Sep 06, 2022
-
-
Lionel GUEZ authored
`slice` is a built-in class of Python.
-
- Aug 31, 2022
-
-
Lionel GUEZ authored
The global variable was used in the body of the function.
-
- Jul 28, 2022
-
-
Lionel GUEZ authored
Rename `get_SHPC` to `get_slice` and `i_SHPC` to `i_slice`.
-
Lionel GUEZ authored
-
- Jul 27, 2022
-
-
Lionel GUEZ authored
Assume that a slice is in a directory "{shpc_dir}/{orientation}/Slice_{slice}" where shpc_dir can be any name, orientation is "Anticyclones" or "Cyclones" and slice is an integer. Do not read or create any longer a file "orientation.txt" in the slice directory. Add procedure `get_slice_dir`. Add dummy arguments cyclone and slice to procedure `shpc_open`. Add dummy argument slice to procedure `shpc_create`.
-
- Jul 05, 2022
-
-
Lionel GUEZ authored
Use `e_overestim.txt` instead of `node_id_param.json`. Since commit 43d2eff6, we wrote only `e_overestim` to the JSon file. Simpler to write the value alone in a text file.
-
- Jul 01, 2022
-
-
Lionel GUEZ authored
-
- Jun 28, 2022
-
-
Lionel GUEZ authored
-
- Jun 27, 2022
-
-
Lionel GUEZ authored
-
- Apr 29, 2022
-
-
Lionel GUEZ authored
The maximum speed contour may not be defined separately from the outermost contour. So if the radius from the maximum speed contour shapefile is not defined, use the radius from the outermost contour shapefile.
-
Lionel GUEZ authored
Motivation: performance. We eliminate repeated reading of the same information from the shapefiles. If the length of the segment is smaller than 14 days then we re-use for the last part of the segment some of the properties from the first part. Also, we do not compute properties for the first part of the segment if the segment has no predecessor and for the last part of the segment if the segment has no successor.
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
Lionel GUEZ authored
Remove intermediary variables `avg_rad` and `avg_Rossby`.
-
Lionel GUEZ authored
-
Lionel GUEZ authored
We extract part of function `calculate_radii_rossby` into new function `node_to_prop`. So we now separate reading data from the shapefiles and computing the average radius and Rossby number. Thus, we prepare for rewriting the algorithm in the main part of the script. The quantity of reading is still the same, for now.
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
Lionel GUEZ authored
Rename variable `num_of_days_to_avg` to `n_days_avg`.
-
Lionel GUEZ authored
This allows readability of the property in graphml format. As vector of double is more specific than python object, I suspect this commit also makes the code more efficient. See also commit c7f7fd46.
-
Lionel GUEZ authored
-
Lionel GUEZ authored
Return a tuple from function `calculate_radii_rossby` instead of a dictionary.
-
Lionel GUEZ authored
The vertex property `avg_Rossby` was never set after `n_valid_Rossby == 0`. It appears that it had then a default value of 0. Better to explicitly set it to 0.
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
Lionel GUEZ authored
Rename radii and rossby to `avg_rad` and `avg_Rossby`.
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
- Apr 27, 2022
-
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
- Apr 26, 2022
-
-
Lionel GUEZ authored
Rename `first_SHPC` and `last_SHPC` to `i_SHPC`. Rename `first_loc` and `last_loc` to ishape.
-
Lionel GUEZ authored
-
Lionel GUEZ authored
This will allow to see repeated code and use fewer variables.
-
Lionel GUEZ authored
-
Lionel GUEZ authored
Return tuple or scalar from function `node_to_date_eddy`, depending on new argument `only_date`, instead of returning a dictionary. The function is easier to use. Also, it saves a useless computation if we are only interested in the date index. Returning a dictionary was more justified before commit 43d2eff6, we we also returned the date.
-