- Apr 29, 2022
-
-
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
-
Lionel GUEZ authored
-
Lionel GUEZ authored
Add tests for a case where the speed is not defined on a whole segment.
-
Lionel GUEZ authored
-
Lionel GUEZ authored
Move tests `Plot_eddy_contours_Mat` and `Stats_Matlab` to `Convert_Matlab/Tests/long_tests.json`. Thus, we group the tests that depend on the availability of Matlab.
-
Lionel GUEZ authored
Loop on nodes if the number of nodes is small compared to the number of shapes. For faster execution.
-
Lionel GUEZ authored
Instead of a file name. Preparing for some more elaborate processing in `set_attribute`.
-
- Apr 28, 2022
-
-
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
The modification of `sys.path` was added in commit 034d96fe to have access to `util_eddies`. It is no longer useful, since commit d16d3f1c, when a symbolic link was added.
-
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.
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
- Apr 25, 2022
-
-
Lionel GUEZ authored
Simpler, no subtraction.
-
Lionel GUEZ authored
Return from function `calculate_radii_rossby` the average radius and Rossby number instead of the sum of average radii and the sum of Rossby numbers.
-