wrf.extract_dim

wrf.extract_dim(wrfin, dim)

Return the dimension size for the specified dimension name.

Parameters:
  • wrfin (netCDF4.Dataset, Nio.NioFile, or an iterable) – WRF-ARW NetCDF data as a netCDF4.Dataset, Nio.NioFile or an iterable sequence of the aforementioned types.
  • dim (str) – The dimension name.
Returns:

The dimension size.

Return type:

int