Tracking patterns of pandemics from space