polaris.tasks.e3sm.init.topo.remap.RemapTopoStep.define_smoothing
- RemapTopoStep.define_smoothing(ds_unsmoothed)[source]
Define smoothing
expand_distance
andexpand_factor
fields. Derived classes should override this method to create spatially varying smoothing fields. Anexpand_distance
of 0.0 and anexpand_factor
of 1.0 will not smooth the topographyThe 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 constantexpand_factor (xarray.DataArray or float) – The factor to expand the topography mask, same shape as fields in
ds_unsmoothed
if not constant