pysteps.decorators

pysteps.decorators#

Decorators used to define reusable building blocks that can change or extend the behavior of some functions in pysteps.

postprocess_import([fillna, dtype])

Postprocess the imported precipitation data.

check_input_frames([minimum_input_frames, ...])

Check that the input_images used as inputs in the optical-flow methods have the correct shape (t, x, y ).

prepare_interpolator([nchunks])

Check that all the inputs have the correct shape, and that all values are finite.

memoize([maxsize])

Add a Least Recently Used (LRU) cache to any function.