Skip to content

Wrong azimuth angle #6

Open
Open
@dinhnhat0401

Description

@dinhnhat0401

Sorry but i find that the sun azimuth must plus 180 degree so:
function getAzimuth(H, phi, dec) {
return atan(sin(H), cos(H) * sin(phi) - tan(dec) * cos(phi));
}

must be:
function getAzimuth(H, phi, dec) {
return PI + atan(sin(H), cos(H) * sin(phi) - tan(dec) * cos(phi));
}

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions