Source code documentation¶
The windsurf Python package connects the model cores within the Windsurf composite model and acts as user-interface to the end-user. The package consists of different modules that are documented in the following sections.
model¶
netcdf¶
parsers¶
- class parsers.AeolisParser(configfile)[source]¶
Configuration parser class for AeoLiS models
Inherits from ConfigParser.
- class parsers.ConfigParser(configfile)[source]¶
Configuration parser base class
Base class for the construction of model engine configuration file parsers. Parses the main configuration file and referenced files therin.
- __init__(configfile)[source]¶
Initialize the class
Parameters: configfile (str) – path to model configuration file
- parse()[source]¶
Parse configuration file
Returns: key/value pairs of model configuration Return type: dict
- parse_config_file(configfile)[source]¶
Parse configuration file
Parameters: configfile (str) – path to configuration file Returns: key/value pairs of model configuration Return type: dict
- class parsers.XBeachParser(configfile)[source]¶
Configuration parser class for XBeach models
Inherits from ConfigParser.