fixed bug in obtaining nearest grid point for observation