(CNN) Some of the most iconic areas of Yosemite National Park closed Wednesday because of a nearby deadly fire.

The park announced that Yosemite Valley, home to such famous destinations as El Capitan and Half Dome, and Wawona were to be closed to all visitors. This means all campgrounds, hotels and visitor services in the areas will be shut.

The closure is expected to last until Sunday.

Visitors were told to leave the affected areas by noon. "Yosemite National Park is experiencing high fire danger, along with continued hot and dry weather patterns," fire officials said.

"Get yourself out of here if you can," said Michael Reynolds, the Yosemite National Park superintendent, on Tuesday.