harmonica.gaussian_lowpass#
- harmonica.gaussian_lowpass(grid, wavelength, *, pad=True, pad_kwargs=None)[source]#
Calculate the Gaussian low-pass of a potential field grid.
Compute the Gaussian low-pass of regular gridded data using frequency domain calculations through Fast Fourier Transform.
- Parameters:
- grid
xarray.DataArray A two dimensional
xarray.DataArraywhose coordinates are evenly spaced (regular grid). Its dimensions should be in the following order: northing, easting. Its coordinates should be defined in the same units.- wavelength
float The cutoff wavelength in low-pass filter. Its units are the same units of the
gridcoordinates.- padbool,
optional If True, will add padding to the grid before taking the Fourier Transform and applying the filter and remove it after the inverse Fourier Transform. Adding padding usually helps reduce edge effects from signal truncation. Default is True.
- pad_kwargs
dictorNone,optional Any additional keyword arguments that should be passed to the
xarray.DataArray.padfunction in the form of a dictionary. If none are given, the default padding of 25% the dimensions of the grid will be added using the “edge” method.
- grid
- Returns:
- gaussian lowpass
xarray.DataArray A
xarray.DataArrayafter Gaussian low-pass of the passedgrid.
- gaussian lowpass
References