A modular framework for extreme weather generation