A spokesman at the Shanghai Municipal Weather Observatory said the excessive rain was caused mainly by weather phenomena known as an upper trough and a near-land stationary front.