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 operate

  • cyclic (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 – The data input with cyclic points added (if cyclic is true) and missing_val values replaced with np.nan

Return type

xarray.DataArray

Notes