runtraj.execution.schedule.read_sites#

runtraj.execution.schedule.read_sites(directory)[source]#

Return the sites in a project’s sites.csv.

Each row needs longitude, latitude and altitude; an altitude_ref column (agl, the default, or msl) is kept. Other columns, such as a site’s name, are ignored.

Raises:
  • FileNotFoundError – If the project has no sites.csv.

  • ValueError – If a column is missing, a value is empty or not a number, a site would not make a valid release (a latitude beyond 90, say), or there are no rows. The message names the line.

Return type:

list[dict[str, Any]]

Parameters:

directory (str | Path)