Skip to content

Commit

Permalink
Adapt RRTMG only example to new API
Browse files Browse the repository at this point in the history
  • Loading branch information
lkluft committed Dec 12, 2023
1 parent 4b6bf4e commit b266129
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion howto/rrtmg_only.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,12 @@ surface = konrad.surface.SlabOcean.from_atmosphere(atmosphere)
# Create cloud component (here clear-sky).
cloud = konrad.cloud.ClearSky.from_atmosphere(atmosphere)
# Create aerosol component (here clear-sky).
aerosol = konrad.aerosol.NoAerosol(atmosphere)
# Setup the RRTMG radiation component (choose zenith angle and solar constant).
rrtmg = konrad.radiation.RRTMG(zenith_angle=47.88)
rrtmg.calc_radiation(atmosphere, surface, cloud) # Actual RT simulation
rrtmg.calc_radiation(atmosphere, surface, cloud, aerosol) # Actual RT simulation
```

## Plot radiative fluxes
Expand Down

0 comments on commit b266129

Please sign in to comment.