pyradtran.io.OutputParser#

class pyradtran.io.OutputParser(config: SimulationConfig, parameter_overrides: Dict[str, Any] = None)[source]#

Bases: object

Parse raw uvspec output files into ParsedOutput.

The parser uses the column list from output_columns to assign names to the whitespace-delimited columns produced by uvspec.

Parameters:
  • config (SimulationConfig) – Configuration that was used for the simulation.

  • parameter_overrides (dict, optional) – Per-point overrides (used to detect brightness-temperature mode).

__init__(config: SimulationConfig, parameter_overrides: Dict[str, Any] = None)[source]#

__init__(config[, parameter_overrides])

parse_output_file(output_file)

Parse a single uvspec output file.

parse_output_file(output_file: Path) ParsedOutput[source]#

Parse a single uvspec output file.

Parameters:

output_file (pathlib.Path)

Return type:

ParsedOutput

Raises:

OutputParsingError – If the file is missing, empty, or cannot be parsed.