Code and data used in masters thesis titled "Cluster-weighted models and their relevance in clustering wind-resource data for a renewable energy development zone: a South African case study" by Hoosain Ebrahim (student no.: 18340556).