Amid the scramble for shelters, the authorities plan to move thousands of remaining residents from the danger zone.