A polar vortex is a large-scale weather pattern , similar to a jet stream in Earth 's upper atmosphere .