hypso.ac.config#
Where the external atmospheric-correction tools are installed and how to run them: one YAML file, one section per tool.
The package has no built-in tool locations. The file is found from, in order: the config argument (a path or an already-loaded dict), or the HYPSO_AC_CONFIG environment variable. Example (only the sections for the tools you use are needed):
polymer:
python: /path/to/envs/ac/bin/python # optional, default: this interpreter
base_path: /path/to/Polymer
polymer_path: /path/to/Polymer/polymer
eoread_path: /path/to/Polymer/eoread
eotools_path: /path/to/Polymer/eotools
core_path: /path/to/Polymer/core
version: v2 # which Polymer build: v1 | v2
ancillary_source: nasa # nasa | era5
settings: # Polymer Params overrides
bands_corr: [448, 459, ...]
Per-call options override the file’s values; settings dicts are merged key by key.
Functions#
|
The AC tool configuration as a dict. |
|
One tool's section of the AC tool configuration. |
Module Contents#
- hypso.ac.config.load_ac_config(config=None)[source]#
The AC tool configuration as a dict.
- Parameters:
config (str, path or dict, optional) – A YAML file, or an already-loaded dict. Default: the file named by the
HYPSO_AC_CONFIGenvironment variable.- Raises:
ValueError – If neither is given.
- Return type: