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

Do not count non-null outermost contours

This is the same as the number of extrema, since commit f7c5ec74.
parent a25c3a30
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,6 @@ parser.add_argument("SHPC")
parser.add_argument("orientation", choices = ["Anticyclones", "Cyclones"])
args = parser.parse_args()
n_outer = 0
n_points = 0
n_valid_speed = 0
......@@ -26,16 +25,11 @@ with shapefile.Reader(path.join(args.SHPC, "Slice_0", args.orientation,
l = len(shape_rec_outer.shape.points)
n_points += l
if shape_rec_outer.record.r_eq_area >= 0: n_outer += 1
if rec_extr.speed != 1e4:
n_valid_speed += 1
print("number of extrema of SSH:", n_extr, "\n")
print("number of outermost contours (outermost contour found, but may be with "
"sufficient area or not):", n_outer)
print("average number of points of outermost contour per extremum:",
n_points / n_extr, "\n")
print("number of valid speed values:", n_valid_speed)
......
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