pywapor.pre_se_root

Generates input data for pywapor.se_root.

rename_meteo(ds, *args)

Rename some variables in a dataset.

Parameters

ds (xr.Dataset) – Input dataset whose variables will be renamed.

Returns

Dataset with renamed variables.

Return type

xr.Dataset

add_constants(ds, *args)

Adds default dimensionless constants to a dataset.

Parameters

ds (xr.Dataset) – Dataset to which the constants will be added.

Returns

Dataset with extra variables.

Return type

xr.Dataset

main(folder, latlim, lonlim, timelim, sources='level_1', bin_length=1, enhancers=[], buffer_timelim=True, **kwargs)

Prepare input data for se_root.

Parameters
  • folder (str) – Path to folder in which to store (intermediate) data.

  • 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.

  • enhancers (list | "default", optional) – Functions to apply to the xr.Dataset before creating the final output, by default “default”.

  • example_source (tuple, optional) – Which source to use for spatial alignment, overrides product selected through sources, by default None.

Returns

Dataset with input data for pywapor.se_root.

Return type

xr.Dataset