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
uvspecin parallel for every (time, latitude, longitude) point, and saves the results to NetCDF.- Parameters:
input_file (str or pathlib.Path) – Path to a
.csvor.ncfile withtime,latitude,longitudecolumns.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: valuepairs foruvspec.max_workers (int, optional) – Override the
execution.max_workersconfig value.
- Returns:
Path to the written NetCDF file.
- Return type:
pathlib.Path
- Raises:
PyRadtranError – If the simulation pipeline fails.