geocat.comp.interpolation._pre_interp_multidim#
- geocat.comp.interpolation._pre_interp_multidim(data_in, cyclic, missing_val)#
Helper Function: Handling missing data functionality and adding cyclic point if required.
- Parameters:
data_in (
xarray.DataArray
) – The data on which to operatecyclic (
bool
) – Determines if cyclic point should be added or not. If true then add point, else do nothing.missing_val (
int
,float
, optional) – Provides an alternative to NaN
- Returns:
data_in (
xarray.DataArray
) – The data input with cyclic points added (if cyclic is true) and missing_val values replaced with np.nan
Notes