polaris.tasks.e3sm.init.topo.remap.RemapTopoStep.define_smoothing

RemapTopoStep.define_smoothing(ds_unsmoothed)[source]

Define smoothing expand_distance and expand_factor fields. Derived classes should override this method to create spatially varying smoothing fields. An expand_distance of 0.0 and an expand_factor of 1.0 will not smooth the topography

The default implementation returns constant values from the config file.

Parameters:

ds_unsmoothed (polaris.tasks.e3sm.init.topo.RemapTopoStep) – The step with unsmoothed topography

Returns:

  • expand_distance (xarray.DataArray or float) – The distance to expand the topography mask, same shape as fields in ds_unsmoothed if not constant

  • expand_factor (xarray.DataArray or float) – The factor to expand the topography mask, same shape as fields in ds_unsmoothed if not constant