Optimizing weed management under challenging weather conditions