You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://github.com/aviatesk/JET.jl)
15
18
16
-
`SolarPosition.jl` provides a simple, unified interface to a collection of validated solar position
19
+
SolarPosition.jl provides a simple, unified interface to a collection of validated solar position
17
20
algorithms written in pure, performant julia.
18
21
19
22
Solar positioning algorithms are commonly used to calculate the solar zenith and
@@ -24,32 +27,23 @@ azimuth angles, which are essential for various applications where the sun is im
24
27
- Climate studies
25
28
- Astronomy
26
29
27
-
## Extensions
28
-
29
-
SolarPosition.jl provides package extensions for the following use cases:
30
-
31
-
-**[ModelingToolkit.jl](https://github.com/SciML/ModelingToolkit.jl)**: Integrate solar position calculations into symbolic modeling workflows. Create composable solar energy system models. A [Dyad](https://juliahub.com/products/dyad) component is also provided. See the [ModelingToolkit Extension](guides/modelingtoolkit.md) guide for details.
32
-
33
-
-**[Makie.jl](https://github.com/MakieOrg/Makie.jl)**: Plotting recipes for solar position visualization with `sunpathplot` and `sunpathpolarplot` functions. See the plotting guide in the [Makie Extension](guides/plotting.md) for details.
34
-
35
-
-**[OhMyThreads.jl](https://github.com/JuliaFolds2/OhMyThreads.jl)**: Multithreaded solar position computation using task-based parallelism. Provides parallel implementations of [`solar_position!`](@ref) for efficient batch calculations across multiple timestamps. See the [OhMyThreads Extension](guides/parallel.md) guide for details.
36
-
37
30
## Acknowledgement
38
31
39
-
This package is based on the work done by readers in the field of solar photovoltaics
32
+
This package is based on the work done by researchers in the field of solar photovoltaics
40
33
in the packages [solposx](https://github.com/assessingsolar/solposx) and
41
34
[pvlib-python](https://github.com/pvlib/pvlib-python). In particular the positioning and
42
-
refraction methods have been adapted from [solposx](https://github.com/assessingsolar/solposx), while
43
-
the SPA algorithm and the deltat calculation are ported from [pvlib-python](https://github.com/pvlib/pvlib-python). These packages also provide validation data necessary to ensure
35
+
refraction methods have been adapted from [solposx](https://github.com/assessingsolar/solposx),
36
+
while the SPA algorithm and the deltat calculation are ported from [pvlib-python](https://github.com/pvlib/pvlib-python). These packages also provide validation data necessary to ensure
44
37
correctness of the algorithm implementations.
45
38
46
39
## Example Usage
47
40
48
-
```@example
49
-
using SolarPosition, Dates
41
+
```@example srt
42
+
using SolarPosition, Dates, TimeZones
50
43
51
44
# define observer location (latitude, longitude, altitude in meters)
52
45
obs = Observer(52.35888, 4.88185, 100.0) # Van Gogh Museum, Amsterdam
46
+
tz = TimeZone("Europe/Brussels")
53
47
54
48
# a few hours of timestamps
55
49
times = collect(DateTime(2023, 6, 21, 10):Hour(1):DateTime(2023, 6, 21, 15));
If you use SolarPosition.jl in your work, please cite using the reference given in [CITATION.cff](https://github.com/JuliaAstro/SolarPosition.jl/blob/main/CITATION.cff).
0 commit comments