Simulation of precipitation by weather type analysis