S5.Weather.solcast_historic.map_files#

S5.Weather.solcast_historic.map_files(RoadFile: str | PathLike, files: Iterable[str | PathLike]) DataFrame[source]#

Maps CSVs to distance along the route.

Using the road file provided, maps the list of CSVs to distance along the route. The Road file can have extra points but each CSV file have to have a point specified in the Road file or else a warning will be raised and the row that does not have data in the road file will be omitted.

Parameters:
  • RoadFile – Path the the road file.

  • files – List of path to the CSVs.

Returns:

A pandas Dataframe with columns [‘File Name’, ‘Latitude’, ‘Longitude’, ‘Distance (km)’] with each row corresponding to a CSV.