Model option
Interval midpoint
Every interval evaluated at its middle
Inputs used: Step, Latitude, Longitude, Time zone
Method
Every timestep is evaluated at its middle, whether or not the sun is above the horizon for the whole interval. A timestep whose middle falls before sunrise or after sunset counts as dark and receives no plane irradiance. The dark-interval option places diffuse light only on timesteps in which the sun never rises.
Example: the 07:00 row on a day with sunrise at 07:40. The sun is placed at 07:30, before sunrise, so the row counts as dark even though the file holds twenty minutes of sunlight.
For the 12:00 row the sun is placed at 12:30.
The math
where
| Symbol | Meaning | Unit |
|---|---|---|
| the instant at which the sun position is evaluated, local standard time | h | |
| the start and end of the timestep, local standard time | h |
API
site.sun_timing = interval_midpoint
Symbols follow the symbol registry.