pvdeg.weather.get#

pvdeg.weather.get(database, id=None, geospatial=False, **kwargs)[source]#

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

Parameters:#

database(str)

‘NSRDB’ or ‘PVGIS’

id(int or tuple)

If NSRDB, id is the gid for the desired location If PVGIS, id is a tuple of (latitude, longitude) for the desired location

geospatial(bool)

If True, initialize weather data via xarray dataset and meta data via dask dataframe. This is useful for large scale geospatial analyses on distributed compute systems. Geospaital analyses are only supported for NSRDB data and locally stored h5 files that follow pvlib conventions.

**kwargs :

Additional keyword arguments to pass to the get_weather function (see pvlib.iotools.get_psm3 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