pvdeg.weather.get_anywhere#

pvdeg.weather.get_anywhere(database='PSM4', id=None, **kwargs)[source]#

Load weather data directly from NSRDB or through any other PVLIB i/o tools.

Only works for a single location look-up, not for geospatial analysis.

Parameters:#

database(str)

‘PSM4’ or ‘PVGIS’ Indicates the first database to try. PSM4 is for the NSRDB

id(int or tuple)

The gid or tuple with latitude and longitude for the desired location. Using a gid is not recommended because it is specific to one database.

API_KEY(str)

This is used to access the NSRDB without limitation if a custom key is supplied.

**kwargs :

Additional keyword arguments to pass to the get_weather function (see pvlib.iotools.get_pvgis_tmy for PVGIS, and get_NSRDB for NSRDB)

Returns:#

weather_df(pd.DataFrame)

DataFrame of weather data

meta(dict)

Dictionary of metadata for the weather data