The winter weather has closed Yosemite and prompted a National Weather Service office to warn against visiting ski resorts.