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

Assume that the input has a single orientation

Assume that the input shapefile collection contains a single orientation.
parent 3615ac9d
No related branches found
No related tags found
No related merge requests found
......@@ -56,8 +56,9 @@ def read(dirname):
amp_speed.append(rec_extr.ssh - rec_max.ssh)
return {"speed": np.array(speed), "rad_outer": np.array(rad_outer),
"rad_speed": np.array(rad_speed), "amp_outer": np.array(amp_outer),
"amp_speed": np.array(amp_speed)}
"rad_speed": np.array(rad_speed),
"amp_outer": np.abs(np.array(amp_outer)),
"amp_speed": np.abs(np.array(amp_speed))}
def fig_hist(xlabel, x, label):
"""Complete figure with histogram. x and label can also be sequences."""
......@@ -111,21 +112,13 @@ def plot_all(dict_list, label = None):
fig_hist("amplitude of outermost contour, in m",
[d["amp_outer"] for d in dict_list], label)
fig_distr_funct("amplitude of outermost contour, anticyclones, in m",
[d["amp_outer"][d["amp_outer"] >= 0] for d in dict_list],
label)
fig_distr_funct("amplitude of outermost contour, cyclones, in m",
[- d["amp_outer"][d["amp_outer"] < 0] for d in dict_list],
label)
fig_distr_funct("amplitude of outermost contour, in m",
[d["amp_outer"] for d in dict_list], label)
fig_hist("amplitude of max-speed contour, in m",
[d["amp_speed"] for d in dict_list], label)
fig_distr_funct("amplitude of max-speed contour, anticyclones, in m",
[d["amp_speed"][d["amp_speed"] >= 0] for d in dict_list],
label)
fig_distr_funct("amplitude of max-speed contour, cyclones, in m",
[- d["amp_speed"][d["amp_speed"] < 0] for d in dict_list],
label)
fig_distr_funct("amplitude of max-speed contour, in m",
[d["amp_speed"] for d in dict_list], label)
if __name__ == "__main__":
import sys
......
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