pyradtran.exceptions

pyradtran.exceptions#

Exception hierarchy for pyRadtran.

All package-specific exceptions inherit from PyRadtranError, so callers can catch the base class to handle any pyRadtran failure:

try:
    result = ds.pyradtran.run(config_path="my_config.yaml")
except pyradtran.PyRadtranError as exc:
    print(f"pyRadtran failed: {exc}")

See also

pyradtran.config

Configuration loading (may raise ConfigurationError).

pyradtran.core

Simulation engine (may raise UvspecExecutionError).

pyradtran.io

I/O layer (may raise OutputParsingError, InputGenerationError).

ConfigurationError

Raised when a configuration file is missing, malformed, or invalid.

InputGenerationError

Raised when libRadtran input-file generation fails.

OutputParsingError

Raised when a libRadtran output file cannot be parsed.

PyRadtranError

Base exception for all pyRadtran errors.

RadiosondeError

Raised for errors related to radiosonde file discovery or parsing.

UvspecExecutionError

Raised when the libRadtran uvspec binary returns a non-zero exit code.

ValidationError

Raised when user-supplied values fail validation checks.