pyradtran.config#
Configuration system for pyRadtran.
The configuration is assembled from up to three layers, each overriding the previous:
Package defaults —
config/clean_simulation.yamlshipped with pyRadtran.User master config —
~/.pyradtran/config.yaml(paths to libRadtran, preferred solver, etc.).Simulation config — the YAML file passed to
ds.pyradtran.run(config_path=...).
All settings are represented as dataclasses so they can be
accessed as typed attributes and validated on construction.
Examples
Load the merged configuration and inspect paths:
>>> from pyradtran.config import load_config
>>> cfg = load_config("config/my_simulation.yaml")
>>> cfg.paths.libradtran_bin
PosixPath('/opt/libradtran/2.0.6/bin/uvspec')
See also
pyradtran.core.SimulationConsumes a
SimulationConfig.pyradtran.interface.PyRadtranAccessor.runCalls
load_config()internally.
|
Write a commented example YAML config to output_path. |
Print a table of available atmosphere profile short names. |
|
Print a table of available solar spectrum short names. |
|
|
Load and merge the three-layer configuration. |
|
Write (or update) the user master config at |
|
Declarative cloud settings used inside |
|
Run-time execution settings. |
|
NetCDF output-file settings. |
|
File-system paths required by libRadtran. |
|
Top-level configuration container. |
|
Core simulation parameters passed to |