Skip to content
Snippets Groups Projects
  1. Oct 09, 2024
  2. Oct 08, 2024
  3. Sep 26, 2024
  4. Jul 10, 2024
  5. Jun 06, 2024
    • Lionel GUEZ's avatar
      Ignore properties of input graph · 211b152a
      Lionel GUEZ authored
      We want to be able to re-compute the cost, starting from the output of
      a previous run of `cost_function.py`, when we have discarded the input
      file of the previous run.
      211b152a
  6. May 29, 2024
    • Lionel GUEZ's avatar
      Polish · 8ef1463e
      Lionel GUEZ authored
      8ef1463e
    • Lionel GUEZ's avatar
      Define intermediary variable `i_max` · 2fb53156
      Lionel GUEZ authored
      2fb53156
    • Lionel GUEZ's avatar
      Average over a maximum number of dates · 77ec1d5f
      Lionel GUEZ authored
      The old behaviour: averaging over a maximum number of instantaneous
      eddies, becomes an option.
      
      We do not use bisect because `max_delta` should be small, around 6,
      and most often there should be only one time step between
      instantaneous eddies, so the first guess at distance `max_delta`
      should be close to the result. Moreover, we would need to define a
      date function if we used bisect.
      77ec1d5f
  7. May 28, 2024
  8. May 27, 2024
  9. Apr 27, 2024
  10. Feb 20, 2024
  11. Jan 08, 2024
    • Lionel GUEZ's avatar
      Bug fix: correct test for part of beginning · d734fd01
      Lionel GUEZ authored
      Correct the test to know whether we can use part of the properties
      already calculated for the beginning of the segment. When `len_seg ==
      2 * n_days_avg`, `g.vp.inst_eddies[n][-n_days_avg:] =
      g.vp.inst_eddies[n][n_days_avg:]` so
      `g.vp.inst_eddies[n][:n_days_avg]` and
      `g.vp.inst_eddies[n][-n_days_avg:]` are disjoint. The bug comes from
      commit bdd0ce41.
      d734fd01
    • Lionel GUEZ's avatar
      Polish · 37c59453
      Lionel GUEZ authored
      37c59453
  12. Dec 01, 2023
    • Lionel GUEZ's avatar
      Bug fix: correct sign of variation of Rossby number and radius · a6c8941f
      Lionel GUEZ authored
      Bug fix: correct sign of variation of Rossby number and radius. We
      have to be consistent with the computation of `delta_ro_mean` and
      `delta_r_mean`. `delta_ro_mean` and `delta_r_mean` were computed by
      subtracting origin from tail.
      a6c8941f
    • Lionel GUEZ's avatar
      Polish · 1a39ec4b
      Lionel GUEZ authored
      1a39ec4b
    • Lionel GUEZ's avatar
      Assume the Earth is a sphere · efdfee04
      Lionel GUEZ authored
      It does not make sense here to assume an ellipsoid: the computation of
      the distance with $\cos \phi \delta \lambda$ and $\delta \phi$ is a
      rougher approximation than treating the Earth as a sphere.
      efdfee04
    • Lionel GUEZ's avatar
      Blacken · 7df063e0
      Lionel GUEZ authored
      7df063e0
    • Lionel GUEZ's avatar
      Store position in rad · a0da2d71
      Lionel GUEZ authored
      We avoid multiple conversions to rad of the same value, in the loop on
      edges, since a segment can be head or tail of several edges.
      a0da2d71
  13. Nov 30, 2023
  14. Nov 28, 2023
    • Lionel GUEZ's avatar
      Follow PEP 8 - Code lay-out - Imports · 83f9fb34
      Lionel GUEZ authored
      83f9fb34
    • Lionel GUEZ's avatar
      Move functions to `util_eddies.py` · af3e3abd
      Lionel GUEZ authored
      Move functions `node_to_date_eddy` and `date_eddy_to_node` from script
      `report_graph.py` to script `util_eddies.py`. `util_eddies.py`
      contains more basic functions, it only imports
      shapefile. `report_graph.py` imports networkx. It was not convenient
      nor meaningful to require networkx for scripts that use
      `node_to_date_eddy` or `date_eddy_to_node`.
      af3e3abd
  15. Nov 23, 2023
  16. Sep 21, 2023
  17. Sep 11, 2023
    • Lionel GUEZ's avatar
      Do not always write all properties · fa479a3f
      Lionel GUEZ authored
      Add option `--debug` to write all properties to output files. The
      properties which are not always written are not needed for further
      processing of the graph. To implement the option, we define variables
      for properties, so we revert in part commit 2e3c6606.
      fa479a3f
  18. Sep 08, 2023
Loading