Skip to content

get_pvgis_tmy results don't match PVGIS website  #1360

@UGuntupalli

Description

@UGuntupalli

Describe the bug
Data retrieved using pvlib does not match data in pvgis website

To Reproduce
Steps to reproduce the behavior:

import pvlib 
from pvlib.iotools import get_pvgis_tmy 


# Print version to confirm it is the latest 
print(pvlib.__version__)  # confirms it is 0.9.0 

# Define two coordinates (1 each in US and EU) 
latitude_us, longitude_us = 33.21, -95.72
latitude_eu, longitude_eu = 37.66, 13.76

# Pull TMY data for both locations 
us_pvgis_tmy, _, _, _ = get_pvgis_tmy(latitude_us, longitude_us)
eu_pvgis_tmy, _, _, _ = get_pvgis_tmy(latitude_eu, longitude_eu)

# Calculate annual GHI 
print(f''' Annual GHI at US Test site is: {us_pvgis_tmy['G(h)'].sum()/1000}''')
print(f''' Annual GHI at EU Test site is: {eu_pvgis_tmy['G(h)'].sum()/1000}''')

Expected behavior
Data download using pvlib iotools should match the original source i.e. Pvgis

Screenshots

image

Versions:

  • pvlib.__version__: 0.9.0
  • pandas.__version__: 1.2.4
  • python: 3.8.0

Additional context
Using the Pvgis built-in TMY tool (https://re.jrc.ec.europa.eu/pvg_tools/en/#TMY), the following files were downloaded from PVGIS website for the test sites used in the above code sample. None of these match against the data that is retrieved by the code. Can you kindly help explain the delta ?

tmy_33.210_-95.720_2006_2015.csv
tmy_37.660_13.760_2006_2015.csv
tmy_33.210_-95.720_2005_2014.csv
tmy_37.660_13.760_2005_2014.csv
tmy_37.660_13.760_2007_2016.csv

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions