Skip to content
Snippets Groups Projects
Commit e09cfedf authored by Lionel GUEZ's avatar Lionel GUEZ
Browse files

Divide by the number of outermost contours

Remember that we do not write invalid eddies to shapefiles, so there
are no null shapes in `outermost_contour.shp`. So, in order to predict
the size of output, the interesting statistics is the number of points
divided by the number of non-null outermost contours.
parent a28dad43
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@ program test_set_all_outerm
! longitude and latitude of the corner of the whole grid, in rad
real step(2) ! longitude and latitude steps, in rad
integer nlon, nlat, i
integer nlon, nlat, i, n_out_cont
real, allocatable:: ssh(:, :)
! (1 - max_radius(1):nlon + max_radius(1), nlat) if the grid is periodic
......@@ -49,10 +49,11 @@ program test_set_all_outerm
end do
print *, "test_set_all_outerm: s%number_extr = ", s%number_extr
print *, "test_set_all_outerm: Number of outermost contours = ", &
count(s%list%out_cont%closed)
print *, "test_set_all_outerm: Average number of points per outermost ", &
"contour: ", sum(s%list%out_cont%n_points) / real(s%number_extr)
n_out_cont = count(s%list%out_cont%closed)
print *, "test_set_all_outerm: Number of outermost contours = ", n_out_cont
if (n_out_cont /= 0) print *, "test_set_all_outerm: Average number of ", &
"points per outermost contour: ", &
sum(s%list%out_cont%n_points) / real(n_out_cont)
call shpc_create(hshp_cyclo, shpc_dir = "SHPC", cyclone = .true., slice = 0, &
grid_lon_lat = .true.)
call shpc_create(hshp_anti, shpc_dir = "SHPC", cyclone = .false., slice = 0, &
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment