:py:mod:`mlair.helpers.data_sources` ==================================== .. py:module:: mlair.helpers.data_sources .. autoapi-nested-parse:: Data Sources. The module data_sources collects different data sources, namely ERA5, TOAR-Data v1 (JOIN), and TOAR-Data v2 Submodules ---------- .. toctree:: :titlesonly: :maxdepth: 1 data_loader/index.rst era5/index.rst ifs/index.rst join/index.rst toar_data/index.rst toar_data_v2/index.rst Package Contents ---------------- Functions ~~~~~~~~~ .. autoapisummary:: mlair.helpers.data_sources.download_data Attributes ~~~~~~~~~~ .. autoapisummary:: mlair.helpers.data_sources.__author__ mlair.helpers.data_sources.__date__ .. py:data:: __author__ :annotation: = Lukas Leufen .. py:data:: __date__ :annotation: = 2023-06-01 .. py:function:: download_data(file_name: str, meta_file: str, station, statistics_per_var, sampling, store_data_locally=True, data_origin: Dict = None, time_dim=DEFAULT_TIME_DIM, target_dim=DEFAULT_TARGET_DIM, iter_dim=DEFAULT_ITER_DIM, window_dim=DEFAULT_WINDOW_DIM, era5_data_path=None, era5_file_names=None, ifs_data_path=None, ifs_file_names=None) -> [xarray.DataArray, pandas.DataFrame] Download data from TOAR database using the JOIN interface or load local era5 data. Data is transformed to a xarray dataset. If class attribute store_data_locally is true, data is additionally stored locally using given names for file and meta file. :param file_name: name of file to save data to (containing full path) :param meta_file: name of the meta data file (also containing full path) :return: downloaded data and its meta data