China shut down ports and railways on July 24 as it braced for Typhoon In-Fa as parts of the country struggled to recover from devastating floods earlier last week.

In-Fa was forecast to make landfall late on July 25 in the eastern coastal province of Zhejiang near Shanghai, according to the official Xinhua News Agency.

Chinese authorities have issued a level III alert – the third-highest – for the storm, while more than 100 trains travelling through the region have been cancelled, according to China Railway.

Shanghai authorities closed some public parks and museums and warned residents on July 24 to “stop large-scale outdoor gatherings” and to stay indoors.

Meanwhile, all container ship docks were shut down from Yangshan Port south of Shanghai and 150 vessels including passenger ships and cargo vessels were evacuated from the area.

In central China’s Henan province, where historic floods last week have now killed at least 58 people, authorities are gradually clearing and reopening roads blocked with vehicles and debris.

Millions have been affected by the floods, with some trapped without fresh food or water for days and others lifted to safety in excavator buckets.

More than 495,000 people have been evacuated, according to the Henan government, with the flooding causing billions of dollars in losses.

Henan emergency response official Li Changxun warned on July 24 that the province would need to undertake large-scale cleaning and disinfecting to “ensure the disaster is not followed by an epidemic”.

Photos published by state media and government social media accounts on July 24 showed rescue workers continuing to shovel mud and remove uprooted trees across the province.

Torrential downpours dumped a year’s rain in just three days last week on the hardest-hit city of Zhengzhou, where at least a dozen people died inside a subway train during July 20’s rush hour after floodwaters trapped passengers in their carriages.