8.5.2.16. parflow.tools.core.Run.pfset

Run.pfset(key='', value=None, yaml_file=None, yaml_content=None, pfidb_file=None, hierarchical_map=None, flat_map=None, exit_if_undefined=False, silence_if_undefined=False)

Allow to define any parflow key so it can be exported. Many formats are supported:

  • key/value: To set a single value relative to our current

    PFDBObj.

  • yaml_file: YAML file path to load and import using the

    current PFDBObj as root.

  • yaml_content: YAML string to load and import using the

    current PFDBObj as root.

  • hierarchical_map: Nested dict containing several key/value

    pair using the current PFDBObj as root.

  • flat_map: Flat dict with parflow key/value pair to set

    using the current PFDBObj as root.