foxes.input.states.create.iconDream2foxes(out_dir, region, min_year, min_month, max_year, max_month, base_url='https://opendata.dwd.de/climate_environment/REA/ICON-DREAM-EU/hourly', url_icon_grid='http://icon-downloads.mpimet.mpg.de/grids/public/edzw/icon_grid_0027_R03B08_N02.nc', levels=None, skip_download=False, check_grb=False, check_nans=True, pack=True, cdo_tmp_dir='cdo_tmp', verbosity=1)[source]

Download ICON-DREAM-EU hourly files for specified variables and time range, and convert them into foxes compatible NetCDF files.

Parameters

out_dir: str or Path

Directory to save downloaded files.

region: str

Region for which to download data (“northsea” or “baltic”).

min_year: int

Minimal year (inclusive).

min_month: int

Minimal month (inclusive).

max_year: int

Maximal year (inclusive).

max_month: int

Maximal month (inclusive).

base_url: str

Base URL of the FTP server.

url_icon_grid: str

URL to download the ICON grid file if not present.

levels: list of int, optional

The ICON height levels, e.g. [69,70,71,72,73,74].

skip_download: bool

If True, skip the download step and assume all files are present.

check_grb: bool

If True, check the grb files for expected dimensions before processing

check_nans: bool

If True, check for NaNs in the data

pack: bool

Whether to pack data using scale_factor and add_offset

cdo_tmp_dir: str

Temporary directory for CDO intermediate files.

verbosity: int

The verbosity level, 0 = silent, 1 = progress bars and summary.