gwexpy.interop.wrf_๏
Interoperability with wrf.getvar() output from wrf-python.
Functions
|
Convert a |
- gwexpy.interop.wrf_.from_wrf_variable(cls: type, da: Any, *, vertical_dim: str | None = None, axis0_domain: Literal['time', 'frequency'] = 'time') ScalarField[source]
Convert a
wrf.getvar()xarray.DataArray to aScalarField.WRF dimension names are mapped to GWexpy axes:
Time/timeโ axis0west_eastโ axis1 (x)south_northโ axis2 (y)bottom_topโ axis3 (z)
2-D
XLAT/XLONGcoordinates are collapsed to 1-D when the grid is regular.- Parameters:
- Return type:
ScalarField