Skip to content

angle convention for sun angles #22

@Linwal

Description

@Linwal

Within the radiation.py file the sun position is calculated with the function calc_sun_position(..)

When comparing calculated values to values from http://www.suncalc.org you will realise that the values do not match. This is not due to a wrong code but to a different convention of the azimuth angle. The convention which the code of radiation.py is using sets 0 in south direction, positive values towards east and negative values towards west which is the traditional approach.

"However, despite tradition, the most commonly accepted convention for analyzing solar irradiation, e.g. for solar energy applications, is clockwise from due north, so east is 90°, south is 180° and west is 270°. " (https://en.wikipedia.org/wiki/Solar_azimuth_angle)

Also Ladybug and Honeybee use the "North convention".

I propose to inform about that in the function's description. It is then easy to transform the results from one convention to the other.

A second important issue is, that the HOY input must be in UTC time and not in local time. Going through the code this becomes clear. It could be specified already in the description of the input parameters for more clarity.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions