pywapor.se_root
Code to run the SERoot model.
- se_root(folder, latlim, lonlim, timelim, sources='level_1', bin_length='DEKAD', se_root_version=None, **kwargs)
Runs pre_se_root and se_root, used internally to generate the se_root data in pre_et_look.
- Parameters
folder (str) – Path to folder in which to store results.
latlim (list) – Latitude limits of area of interest.
lonlim (list) – Longitude limits of area of interest.
timelim (list) – Period for which to prepare data.
sources (str | dict) – Configuration for each variable and source.
bin_length (int | "DEKAD") – Composite length.
- Returns
Dataset with se_root variable.
- Return type
xr.Dataset
- main(input_data, se_root_version='v2', export_vars='default', chunks={'time': -1, 'x': 500, 'y': 500})
Run the se_root model.
- Parameters
input_data (str | xr.Dataset) – (Path to) dataset generated by pywapor.pre_se_root.
se_root_version ("v2" | "v3", optional) – Which version of the SERoot model to use, by default “v2”.
export_vars ("default" | "all" | list, optional) – Specify which variables to save inside the output file. “Default” only stores se_root. “all” stores all calculated variables. Use a list to specify a custom output set, by default “default”.
chunks (dict, optional) – Specify how the calculations are split up. Increase chunk sizes to speed up calculation, decrease to use less RAM, by default {“time”: 1, “x”: 1000, “y”: 1000}.
- Returns
Outputs from the model.
- Return type
xr.Dataset