def test_ned_from_pysolar_northwest(): assert dls.ned_from_pysolar( np.radians(315), np.radians(45)) == pytest.approx([0.50, -0.5, -0.707], 0.01)
def test_ned_from_pysolar_west(): assert dls.ned_from_pysolar( np.radians(270), np.radians(45)) == pytest.approx([0, -0.707, -0.707], 0.01)
def test_ned_from_pysolar_southeast(): assert dls.ned_from_pysolar( np.radians(135), np.radians(45)) == pytest.approx([-0.50, 0.5, -0.707], 0.01)
def test_ned_from_pysolar_south(): assert dls.ned_from_pysolar( np.radians(180), np.radians(45)) == pytest.approx([-0.707, 0, -0.707], 0.01)
def test_ned_from_pysolar_north(): assert dls.ned_from_pysolar(0, np.radians(45)) == pytest.approx( [0.707, 0, -0.707], 0.01)