Skip to content
Snippets Groups Projects
  1. Dec 22, 2017
  2. Dec 20, 2017
  3. Dec 18, 2017
  4. Dec 15, 2017
    • Lionel GUEZ's avatar
      In procedure get_snapshot, encountered rounding error that led to · 7d99eff6
      Lionel GUEZ authored
      out-of-range index so add min when calculating urc.
      
      Bug fix in procedure good_contour. polygon_contains_point should not
      be called if polyline is not closed.
      
      Procedure polygon_contains_point became unpure so remove pure for
      procedure inside_4 too.
      
      In program test_good_contour, read corner and step from namelist
      rather than from coordinates in NetCDF file. Makes it possible to use
      the same NetCDF file with different coordinates. Also read
      outside_points from a file rather than standard input so there is no
      need to specify in advance the number of outside points.
      
      Take into account the possibility that no outermost contour was found
      in program test_set_outermost_contour. Also, use fixed names for input
      files because it is not convenient to require a particular order of
      these two files on the command line.
      7d99eff6
  5. Dec 11, 2017
    • Lionel GUEZ's avatar
      Bug fix in test_set_outermost_contour. e%ssh_extremum must be · ccc61328
      Lionel GUEZ authored
      defined. Also, allow test_set_outermost_contour to read ssh from a
      NetCDF variable with a degenerate time coordinate or with no time
      coordinante.
      
      "stdout" key became optional in "tests.json" and "directory" key
      became "title", with no indication of directory.
      ccc61328
  6. Dec 07, 2017
  7. Dec 04, 2017
    • Lionel GUEZ's avatar
      If an outermost contour has exactly the minimum amplitude, it is · 0ce6b1b4
      Lionel GUEZ authored
      acceptable. So define flat_extr by a strict inequality in procedure
      get_snapshot.
      
      Procedure set_outermost_contour no longer has a dummy argument
      noise_around. We no longer call outermost_possible_level so we do not
      have an artificial discontinuity of results with and without maximum
      amplitude. We abandon the idea of reducing the amplitude of initial
      level_good compared to innermost_level: problem of consistence with
      get_snapshot, and it does not seem worth the trouble, just abandon
      those problematic extrema. Allow for null outermost_contour instead of
      aborting.
      
      In procedure get_snapshot, s%list_vis(i)%suff_amp is first defined
      only if flat_extr(i). Also we are no longer sure that
      set_outermost_contour finds an outermost contour so we have to test
      this to define s%list_vis(i)%suff_amp. noise_around is now defined
      only for flat_extr(i) and s%list_vis(i)%suff_amp. Also, since we may
      not find an outermost contour even if not flat_extr(i), we update
      s%extr_map after the second call to set_outermost_contour.
      
      In procedure local_extrema, we use the mask diff_center instead of
      mask_center. So we no longer need procedure construct_mask_center. In
      procedure local_extrema, we ignore one in two adjacent degenerate
      extrema instead of aborting.
      
      In plot_snapshot.py, color extrema and allow for null outermost
      contour.
      
      Synthesize output in test_local_extrema.py.
      0ce6b1b4
  8. Nov 27, 2017
  9. Nov 24, 2017
  10. Nov 23, 2017
  11. Nov 20, 2017
  12. Nov 17, 2017
    • Lionel GUEZ's avatar
      Bug fix. Accept the last point in procedure · e194ec8d
      Lionel GUEZ authored
      outermost_possible_level. This is especially important if the extremum
      is one point away from the last point.
      
      Bug fix. In procedure set_outermost_contour, take level_good a little
      bit closer to ssh_extremum than innermost_level because of border
      points. Contour_531 will not close a contour passing at a point on the
      border. So if innermost_level corresponds to a point on the border,
      good_contour at innermost_level finds nothing.
      
      Make the program test_good_contour more general: read a NetCDF file
      instead of calling define_example_reg.
      e194ec8d
  13. Nov 10, 2017
  14. Oct 31, 2017
    • Lionel GUEZ's avatar
      get_snapshot and test_get_snapshot are back, implementing the · 16d0b6fa
      Lionel GUEZ authored
      low-amplitude threshold, min_amp.
      
      Add component suff_amp to derived type eddy. Write this component in
      extremum_$m.dbf.
      
      In shapefiles, write positions of vertices in degrees rather than
      radians.
      
      test_get_snapshot reads the whole domain of input NetCDF files instead
      of selecting a window through a namelist. This is clearer and more
      convenient. Same in test_get_snapshot.py, test_local_extrema and
      test_local_extrema.py.
      
      In test_get_snapshot.py, annotate extrema instead of inserting a
      legend.
      
      More correct names: radian_per_degree to deg_over_rad,
      degree_per_radian to rad_over_deg.
      16d0b6fa
  15. Oct 13, 2017
  16. Oct 10, 2017
    • Lionel GUEZ's avatar
      Create procedure set_max_speed (with a large part coming from removed · 5a1854e6
      Lionel GUEZ authored
      procedure get_eddy), with corresponding test.
      
      Take into account the fact that derived type polygon became polyline
      in library Contour_531.
      
      Use new procedure null_polyline from library Contour_531.
      
      Correct a sneaky bug in mean_speed: the last point in the polygon
      array is a duplicate of the first point, do not take the last point
      into account when averaging (and interpolating). Discovered this bug
      because the mean speed was not exactly the same for equivalent
      polygons with circular permutation.
      
      Change philosophy for the tests: read whole NetCDF variables, prepare
      different NetCDF files for different geographical regions if needed;
      read all data from file or namelist; read names of files on command
      line.
      
      Use generic test_program.sh (which is out of this project) instead of
      the specific tests_detection_eddies.sh.
      5a1854e6
  17. Oct 02, 2017
  18. Sep 26, 2017
  19. Sep 25, 2017
    • Lionel GUEZ's avatar
      Starting to change the algorithm for low-amplitude · 6d746fb7
      Lionel GUEZ authored
      threshold. outermost_contour becomes set_outermost_contour. get_eddy
      disappears: it will be absorbed in get_snapshot. get_snapshot is
      temporarily broken so we do not compile test_get_snapshot.
      
      set_outermost_contour is in charge of finding nearby_extr and the
      initial value of level_try (get_outermost_contour was not). The method
      for this depends on the value of noise_around. The rest of the
      processing in set_outermost_contour is identical to what was done in
      get_outermost_contour.
      
      Made test_max_speed_contour_ssh more general: longitude-latitude
      window and eddy identifying number may be chosen at run-time. Made
      test_set_outermost_contour more general than test_outermost_contour
      was: longitude-latitude window and eddy identifying number may be
      chosen at run-time.
      
      For both test_max_speed_contour_ssh and test_set_outermost_contour,
      only the chosen longitude-latitude window is read from the NetCDF
      files. We have to call local_extrema because set_outermost_contour
      takes extr_map as an input argument (get_outermost_contour did not)
      and because longitude-latitude window and eddy identifying number may
      be chosen at run-time.
      6d746fb7
  20. Sep 22, 2017
  21. Sep 14, 2017
  22. Sep 12, 2017
    • Lionel GUEZ's avatar
      Preparation for low-amplitude threshod: add output argument cyclone to · 1ee17f6d
      Lionel GUEZ authored
      local_extrema instead of coding sense of rotation with the sign of
      extr_map.
      
      In makefile, we want tags to include sources for test_good_contour,
      etc. External file list becomes easier.
      
      Moved test_bilinear_interp.f and test_bilinear_interp.py out of the
      project. These are rather tests on Numer_Rec_95.
      
      In test_local_extrema, write to CSV file instead of stdout.
      1ee17f6d
  23. Sep 06, 2017
Loading