A local particle filter for high-dimensional geophysical systems