Skip to content

pvl_singleaxis error at low sun angles #22

Description

@cwhanse

Describe the bug:

Low sun angles with a tilted tracking axis cause an error in the backtracking calculation. Code attempts arcos() of a value outside [-1, 1]
pvlib-python #656

To Reproduce

SunZen=80;
SunAz=338;
Latitude=nan;
AxisTilt=30;
AxisAzimuth=180;
MaxAngle=60;
GCR=0.35;

Backtrack=0;
[~,~,mod_thetam, mod_azm]= pvl_singleaxis_v2(SunZen, SunAz, Latitude, AxisTilt, AxisAzimuth, MaxAngle, Backtrack, GCR)

Backtrack=1;
[~,~,mod_thetam, mod_azm]= pvl_singleaxis_v2(SunZen, SunAz, Latitude, AxisTilt, AxisAzimuth, MaxAngle, Backtrack, GCR)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions