breos.weather.parse_weather_filename#

breos.weather.parse_weather_filename(filename)[source]#

Parse a weather filename following the convention: {location}_{type}_{yearstart}_{yearend}_{source}.csv

Examples

porto_tmy_2005_2023_pvgis-sarah3.csv porto_historical_2005_2024_openmeteo.csv lisbon_tmy_2014_nsrdb.csv

Returns:

location, type, year_start, year_end, source Returns None if filename doesn’t match the convention.

Return type:

Optional[Dict[str, str]]

Parameters:

filename (str)