pyradtran.interface.run_pyradtran_simulation

pyradtran.interface.run_pyradtran_simulation#

pyradtran.interface.run_pyradtran_simulation(input_file: str | Path, output_path: str | Path | None = None, config_path: str | Path | None = None, parameter_overrides: Dict[str, Any] = None, max_workers: int | None = None) Path[source]#

Run a full simulation pipeline from a CSV/NetCDF input file.

Loads the input data, runs uvspec in parallel for every (time, latitude, longitude) point, and saves the results to NetCDF.

Parameters:
  • input_file (str or pathlib.Path) – Path to a .csv or .nc file with time, latitude, longitude columns.

  • output_path (str or pathlib.Path, optional) – Destination NetCDF. Auto-generated from the output config when None.

  • config_path (str or pathlib.Path, optional) – YAML configuration file. Uses package defaults when None.

  • parameter_overrides (dict, optional) – Extra key: value pairs for uvspec.

  • max_workers (int, optional) – Override the execution.max_workers config value.

Returns:

Path to the written NetCDF file.

Return type:

pathlib.Path

Raises:

PyRadtranError – If the simulation pipeline fails.