salem.DatasetAccessor.wrf_plevel
- DatasetAccessor.wrf_plevel(varname, levels=None, fill_value=nan, use_multiprocessing=True)[source]
Interpolates to a specified pressure level (hPa).
- Parameters:
- varname: str
the name of the variable to interpolate
- levels: 1d array
levels at which to interpolate (default: some levels I thought of)
- fill_valuenp.nan or ‘extrapolate’, optional
how to handle levels below the topography. Default is to mark them as invalid, but you might want the have them extrapolated.
- use_multiprocessing: bool
set to false if, for some reason, you don’t want to use mp
- Returns:
- an interpolated DataArray