pvdeg.spectral.poa_irradiance#
- pvdeg.spectral.poa_irradiance(weather_df, meta, sol_position=None, tilt=None, azimuth=None, sky_model='isotropic')[source]#
Calculate plane-of-array (POA) irradiance using pvlib based on weather data from the National Solar Radiation Database (NSRDB) for a given location (gid).
- Parameters:
weather_df (pd.DataFrame) – The file path to the NSRDB file.
meta (dict) – The geographical location ID in the NSRDB file.
sol_position (pd.DataFrame, optional) – pvlib.solarposition.get_solarposition Dataframe. If none is given, it will be calculated.
tilt (float, optional) – The tilt angle of the PV panels in degrees, if None, the latitude of the location is used.
azimuth (float, optional) – The azimuth angle of the PV panels in degrees. Equatorial facing by default.
sky_model (str, optional) – The pvlib sky model to use, ‘isotropic’ by default.
- Returns:
poa (pandas.DataFrame) – Contains keys/columns ‘poa_global’, ‘poa_direct’, ‘poa_diffuse’, ‘poa_sky_diffuse’, ‘poa_ground_diffuse’.