Skip to content

Failed unit test for nrel 2008 solar position algorithm #2077

Description

@kurt-rhee

Describe the bug
In the documentation for the nrel 2008 solar position algorithm, there are a set of "unit tests" in table A4.1

image
https://www.nrel.gov/docs/fy08osti/34302.pdf

To Reproduce
Steps to reproduce the behavior:

  1. run julian_day_dt() with the following parameters
year = 837,
month = 4,
day = 10,
hour = 7,
minute = 12,
second = 0,
microsecond = 0
  1. result is 2026867.8

Expected behavior
expected result in table A4.1 is 2026871.8

Screenshots
image

Versions:

  • ``pvlib.10.5`:
  • python: 3.11

Additional context
Perhaps this has something to do with the gregorian / julian date cutoff? All of the other tests complete as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions