Using medium-range weather forcasts to improve the value of wind energy production