|
19 | 19 | # SPA includes refraction correction and equation of time |
20 | 20 | res = solar_position(obs, dt, SPA()) |
21 | 21 |
|
22 | | - @test isapprox(res.elevation, row.elevation, atol = 1e-6) |
23 | | - @test isapprox(res.zenith, row.zenith, atol = 1e-6) |
24 | | - @test isapprox(res.azimuth, row.azimuth, atol = 1e-6) |
25 | | - @test isapprox(res.apparent_elevation, row.apparent_elevation, atol = 1e-6) |
26 | | - @test isapprox(res.apparent_zenith, row.apparent_zenith, atol = 1e-6) |
27 | | - @test isapprox(res.equation_of_time, row.equation_of_time, atol = 1e-6) |
| 22 | + @test isapprox(res.elevation, row.elevation, atol = 1e-8) |
| 23 | + @test isapprox(res.zenith, row.zenith, atol = 1e-8) |
| 24 | + @test isapprox(res.azimuth, row.azimuth, atol = 1e-8) |
| 25 | + @test isapprox(res.apparent_elevation, row.apparent_elevation, atol = 1e-8) |
| 26 | + @test isapprox(res.apparent_zenith, row.apparent_zenith, atol = 1e-8) |
| 27 | + @test isapprox(res.equation_of_time, row.equation_of_time, atol = 1e-8) |
28 | 28 | end |
29 | 29 | end |
30 | 30 |
|
|
67 | 67 | @test !isapprox( |
68 | 68 | res_default.apparent_elevation, |
69 | 69 | res_custom.apparent_elevation, |
70 | | - atol = 1e-6, |
| 70 | + atol = 1e-8, |
71 | 71 | ) |
72 | 72 |
|
73 | 73 | @test isapprox(res_default.elevation, res_custom.elevation, atol = 1e-10) |
|
0 commit comments