S5.Weather.solcast_historic.read_solcast_csv#
- S5.Weather.solcast_historic.read_solcast_csv(filename: str | PathLike, distance: float, start_date: datetime, end_date: datetime) DataFrame [source]#
Reads the solcast csv for a single spot.
Reads the solcast csv that corresponds to a single point along the route, format it a chunk of the weather file and return it as a dataframe.
- Parameters:
filename – Path to the solcast csv corresponding to this spot.
distance – Mapped distance along the route.
start_date – start time in local time with timezone
end_date – end time in local time with timezone
- Returns: A formatted pandas dataframe with columns [‘Distance(km)’, ‘DirectSun(W/m2)’, ‘DiffuseSun(W/m2)’,
‘SunAzimuth(deg)’, ‘SunElevation(deg)’, ‘AirTemp(degC)’, ‘AirPress(Pa)’, ‘WindVel(m/s)’, ‘WindDir(deg)’]