Hi to all, I am newbie with pvliv and I am starting with some experiments...
I am checking some examples I've found online using pvliv and I am collecting mismatching results:
I set timezone to work with UTC (to avoid misunderstandings about times and timezones) and coordinates but I get wrong results.
Here my code:
import pandas as pd
from pvlib import solarposition, tracking, location
import numpy as np
import matplotlib.pyplot as plt
import sys
import pytz
tz = pytz.timezone('UTC')
# Fednet GPS station UD2
lat = 46.037315
lon = 13.253032
alt = 149.249
times = pd.date_range("2023-11-24", "2023-11-25", freq="30min", tz=tz)
solpos = solarposition.get_solarposition(times, lat, lon)
print(solpos)
At 10:30 (UTC) sun is at azimuth 187° (shoulders to north, looking to south, sun is on my right side) while pvlib tells me azimut should be at 174°, so on my left.
What's wrong?
Thanks.