pysteps.motion.darts.DARTS#
- pysteps.motion.darts.DARTS(dataset: Dataset, **kwargs)#
Compute the advection field from a sequence of input images by using the DARTS method. [RCW11]
- Parameters:
dataset (xarray.Dataset) – Input dataset as described in the documentation of
pysteps.io.importers. It has to contain a precipitation data variable. The dataset has to have a time dimension.N_x (int) – Number of DFT coefficients to use for the input images, x-axis (default=50).
N_y (int) – Number of DFT coefficients to use for the input images, y-axis (default=50).
N_t (int) – Number of DFT coefficients to use for the input images, time axis (default=4). N_t must be strictly smaller than T.
M_x (int) – Number of DFT coefficients to compute for the output advection field, x-axis (default=2).
M_y (int) – Number of DFT coefficients to compute for the output advection field, y-axis (default=2).
fft_method (str) – A string defining the FFT method to use, see utils.fft.get_method. Defaults to ‘numpy’.
output_type ({"spatial", "spectral"}) – The type of the output: “spatial”=apply the inverse FFT to obtain the spatial representation of the advection field, “spectral”=return the (truncated) DFT representation.
n_threads (int) – Number of threads to use for the FFT computation. Applicable if fft_method is ‘pyfftw’.
verbose (bool) – If True, print information messages.
lsq_method ({1, 2}) – The method to use for solving the linear equations in the least squares sense: 1=numpy.linalg.lstsq, 2=explicit computation of the Moore-Penrose pseudoinverse and SVD.
verbose – if set to True, it prints information about the program
- Returns:
out – The input dataset with the advection field added in the
velocity_xandvelocity_ydata variables.- Return type:
xarray.Dataset