|
4 | 4 | principal flow directions, classifying ebb and flood cycles, and
|
5 | 5 | computing probability distributions of flow velocities.
|
6 | 6 |
|
7 |
| -Features: |
8 |
| ---------- |
9 |
| -- Computes joint probability histograms of flow directions and velocities. |
10 |
| -- Determines principal flow directions using histogram-based analysis. |
11 |
| -- Classifies ebb and flood conditions based on directional data. |
12 |
| -- Normalizes flow angles for consistent analysis. |
13 |
| -
|
14 |
| -Functions: |
15 |
| ----------- |
16 |
| -- `_histogram(directions, velocities, width_dir, width_vel)`: |
17 |
| - Computes a joint probability histogram of flow directions and velocities. |
18 |
| -
|
19 |
| -- `_normalize_angle(degree)`: |
20 |
| - Normalizes an angle to the range [0, 360] degrees. |
21 |
| -
|
22 |
| -- `principal_flow_directions(directions, width_dir)`: |
23 |
| - Determines principal flow directions for ebb and flood cycles |
24 |
| - using a histogram-based approach. |
25 |
| -
|
26 |
| -- `_flood_or_ebb(d, flood, ebb)`: |
27 |
| - Identifies whether a given set of flow directions corresponds to |
28 |
| - ebb or flood conditions. |
29 | 7 | """
|
30 | 8 |
|
31 | 9 | import math
|
32 | 10 | import numpy as np
|
33 |
| -from mhkit.river.resource import exceedance_probability, froude_number |
| 11 | +from mhkit.river.resource import exceedance_probability, Froude_number |
34 | 12 | from mhkit.utils import convert_to_dataarray
|
35 | 13 |
|
36 | 14 | __all__ = [
|
37 | 15 | "exceedance_probability",
|
38 |
| - "froude_number", |
| 16 | + "Froude_number", |
39 | 17 | "principal_flow_directions",
|
40 | 18 | "_histogram",
|
41 | 19 | "_flood_or_ebb",
|
|
0 commit comments