salem.open_wrf_dataset

salem.open_wrf_dataset(file, **kwargs)[source]

Wrapper around xarray’s open_dataset to make WRF files a bit better.

This is needed because variables often have not enough georef attrs to be understood alone, and datasets tend to loose their attrs with operations…

Parameters:
filestr

the path to the WRF file

**kwargsoptional

Additional arguments passed on to xarray.open_dataset.

Returns:
an xarray Dataset