Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
PyWake
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TOPFARM
PyWake
Commits
cb62e81b
Commit
cb62e81b
authored
3 years ago
by
Mads M. Pedersen
Committed by
Mads M. Pedersen
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
add ws as optional input to plot_ws_distribution
parent
8220fdd1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
py_wake/site/_site.py
+5
-3
5 additions, 3 deletions
py_wake/site/_site.py
with
5 additions
and
3 deletions
py_wake/site/_site.py
+
5
−
3
View file @
cb62e81b
...
...
@@ -256,7 +256,8 @@ class Site(ABC):
sector
[
lo
+
1
:
up
+
1
]
=
i
return
sector
def
plot_ws_distribution
(
self
,
x
=
0
,
y
=
0
,
h
=
70
,
wd
=
[
0
],
include_wd_distribution
=
False
,
ax
=
None
):
def
plot_ws_distribution
(
self
,
x
=
0
,
y
=
0
,
h
=
70
,
wd
=
[
0
],
ws
=
np
.
arange
(
0.05
,
30.05
,
.
1
),
include_wd_distribution
=
False
,
ax
=
None
):
"""
Plot wind speed distribution
Parameters
...
...
@@ -269,6 +270,8 @@ class Site(ABC):
Local height above ground
wd : int or array_like
Wind direction(s) (one curve pr wind direction)
ws : array_like, optional
Wind speeds to calculate for
include_wd_distributeion : bool, default is False
If true, the wind speed probability distributions are multiplied by
the wind direction probability. The sector size is set to 360 / len(wd).
...
...
@@ -277,9 +280,8 @@ class Site(ABC):
"""
if
ax
is
None
:
ax
=
plt
ws
=
np
.
arange
(
0.05
,
30.05
,
.
1
)
lbl
=
"
Wind direction: %d deg
"
if
include_wd_distribution
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment