pygmt.filter1d

pygmt.filter1d(data, output_type='pandas', outfile=None, *, end=None, filter=None, **kwargs)[source]

Time domain filtering of 1-D data tables

Filter a general time domain for multiple column time series data. The user specifies which column is the time (i.e., the independent variable). The fastest operation occurs when the input time series are equally spaced and have no gaps or outliers and the special options are not needed. Read a table and output as a numpy.ndarray, pandas.DataFrame, or ASCII file.

Full option list at https://docs.generic-mapping-tools.org/latest/filter1d.html

Aliases:

  • E = end

  • F = filter

Parameters ———-. output_type : str

Determine the format the xyz data will be returned in [Default is pandas]:

outfilestr

The file name for the output ASCII file.

Returns

ret (pandas.DataFrame or numpy.ndarray or None) – Return type depends on outfile and output_type: