Hi Ashwin,
Given latitude, longitude, and a time series you can use `pvlib.solarposition.get_solarposition(times, latitude, longitude)`
This returns a dataframe with the azimuth and zenith for times in the time series. You can use this to plot a sun path like the one in the stack exchange post using something like `pyplot.polar(theta, r)` from Matplotlib:
For example:
import matplotlib.pyplot as plt
from pvlib import solarposition
import pandas as pd
plt.ion()
times = pd.DateTimeIndex(pd.date_range('2019-01-01 00:00:00', '2019-12-31 23:59:59', freq='H', tz='Etc/GMT+8'))
solpos = solarposition.get_solarposition(
times, 35.8, -122.1)
plt.polar(solpos.azimuth, solpos.apparent_zenith)
You can get fancy by plotting seasons, months or days separately
Forgive any errors, I wrote this without testing on my phone, sorry.
Good luck!
From Ashwin D.:
Is that possible with pv lib python ?