I am currently looking for a non-parametric weather generator, and I find KnnCAD V4 (King, 2015) suitable for my work. But I couldn't find the R code of the KnnCAD algorithm. If anyone can provide the code in R/python that would be great.
King, Leanna M., A. Ian McLeod, and Slobodan P. Simonovic, 2015. Improved Weather Generator Algorithm for Multisite Simulation of Precipitation and Temperature. Journal of the American Water Resources Association (JAWRA) 51(5): 1305-1320. DOI: 10.1111/1752-1688.12307