Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Uwe Fechner committed Apr 19, 2024
1 parent 679e1e2 commit 0515d90
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ calc_wind_factor(am::AM, height, profile_law::Int64=am.set.profile_law)

<p align="center"><img src="./doc/wind_profile.png" width="500" /></p>

The EXPLOG profile law is the fitted linear combination of the exponentional and the log law.
The EXPLOG profile law is the fitted linear combination of the exponential and the log law.

## Usage
```julia
Expand All @@ -52,6 +52,17 @@ wf = [calc_wind_factor(am, height, Int(EXPLOG)) for height in heights]
plot(heights, wf, legend=false, xlabel="height [m]", ylabel="wind factor")
```

```julia
using AtmosphericModels, ControlPlots
am = AtmosphericModel()
AtmosphericModels.se().alpha = 0.234 # set the exponent of the power law

heights = 6:200
wf = [calc_wind_factor(am, height, Int(EXP)) for height in heights]

plot(heights, wf, xlabel="height [m]", ylabel="wind factor")
```

## Benchmark
```julia
using AtmosphericModels, BenchmarkTools
Expand Down

0 comments on commit 0515d90

Please # to comment.