polaris.tasks.e3sm.init.topo.remap.PrepareRemapTopoStep.define_smoothing
- PrepareRemapTopoStep.define_smoothing(ds_unsmoothed)[source]
Define smoothing
expand_distanceandexpand_factorfields. Derived classes should override this method to create spatially varying smoothing fields. Anexpand_distanceof 0.0 and anexpand_factorof 1.0 will not smooth the topographyThe default implementation returns constant values from the config file.
- Parameters:
ds_unsmoothed (xarray.Dataset) – The unsmoothed topography
- Returns:
expand_distance (xarray.DataArray or float) – The distance to expand the topography mask, same shape as fields in
ds_unsmoothedif not constantexpand_factor (xarray.DataArray or float) – The factor to expand the topography mask, same shape as fields in
ds_unsmoothedif not constant