foxes.utils.era5_utils

Functions

calc_era5_density(→ numpy.ndarray)

Returns local air densities at specified height using the

Module Contents

foxes.utils.era5_utils.calc_era5_density(era5: xarray.Dataset, z: float, var2ncvar: dict[str, str] | None = None) numpy.ndarray[source]

Returns local air densities at specified height using the surface variables msl, t2m, d2m

Parameters:
era5

The era5 data

z

height at which to calculate density

var2ncvar

A dictionary mapping variable names to netCDF variable names.

Returns:
rho

The air density in kg/m3