enstools.opendata.DWDContent.DWDContent¶
- class enstools.opendata.DWDContent.DWDContent(refresh_content=False)¶
Methods
check_grid_type([model, grid_type])Checks if the given grid_type is available and if grid_type=None check if the available type is unambigious.
check_level_type([model, grid_type, ...])Checks if the given level_type is available for the variable in the given model.
check_parameters([model, grid_type, ...])Checks if there are all files available for the given parameters.
get_avail_forecast_hours([model, grid_type, ...])Gives the available forecast hours since initialization for a given forecast model, initialization time, variable and level type.
get_avail_init_times([model, grid_type])Gives the available initialization times for a given forecast model.
get_avail_level_types([model, grid_type, ...])Gives the available level types for a given forecast model, initialization time and variable. Parameters ---------- model: str The model for which the available level types want to be known. grid_type: str The type of the geo grid. init_time: int The initialization time for which the available level types want to be known. variable: str The variable for which the available level types want to be known.
get_avail_levels([model, grid_type, ...])Gives the available levels since initialization for a given forecast model, initialization time, variable and level type.
get_avail_vars([model, grid_type, init_time])Gives the available variables for a given forecast model and initialization time.
get_filename([model, grid_type, init_time, ...])Gives the filename of the file on the https://opendata.dwd.de/weather/nwp server.
get_grid_types([model])Gives the available grid_types for a specific model
get_models()Gives the available models of the data server. Returns ------- avail_models: list List of Strings with the available models.
get_url([model, grid_type, init_time, ...])Gives the url of the file on the https://opendata.dwd.de/weather/nwp server.
refresh_content()Initializes the DWDContent object again.
retrieve([service, model, eps, grid_type, ...])Downloads datasets from opendata server. Faster access to the database. Parameters ---------- service : str name of weather service. Default="DWD". model : str name of the model. Default="ICON".
check_url_available
get_file_size
get_merge_dataset_name
get_size_of_download
- __init__(refresh_content=False)¶
Methods
__init__([refresh_content])check_grid_type([model, grid_type])Checks if the given grid_type is available and if grid_type=None check if the available type is unambigious.
check_level_type([model, grid_type, ...])Checks if the given level_type is available for the variable in the given model.
check_parameters([model, grid_type, ...])Checks if there are all files available for the given parameters.
check_url_available([model, grid_type, ...])get_avail_forecast_hours([model, grid_type, ...])Gives the available forecast hours since initialization for a given forecast model, initialization time, variable and level type.
get_avail_init_times([model, grid_type])Gives the available initialization times for a given forecast model.
get_avail_level_types([model, grid_type, ...])Gives the available level types for a given forecast model, initialization time and variable. Parameters ---------- model: str The model for which the available level types want to be known. grid_type: str The type of the geo grid. init_time: int The initialization time for which the available level types want to be known. variable: str The variable for which the available level types want to be known.
get_avail_levels([model, grid_type, ...])Gives the available levels since initialization for a given forecast model, initialization time, variable and level type.
get_avail_vars([model, grid_type, init_time])Gives the available variables for a given forecast model and initialization time.
get_file_size([model, grid_type, init_time, ...])get_filename([model, grid_type, init_time, ...])Gives the filename of the file on the https://opendata.dwd.de/weather/nwp server.
get_grid_types([model])Gives the available grid_types for a specific model
get_merge_dataset_name([model, variable, ...])get_models()Gives the available models of the data server. Returns ------- avail_models: list List of Strings with the available models.
get_size_of_download([model, grid_type, ...])get_url([model, grid_type, init_time, ...])Gives the url of the file on the https://opendata.dwd.de/weather/nwp server.
refresh_content()Initializes the DWDContent object again.
retrieve([service, model, eps, grid_type, ...])Downloads datasets from opendata server. Faster access to the database. Parameters ---------- service : str name of weather service. Default="DWD". model : str name of the model. Default="ICON".
Attributes
cache_path