Update srtm.py

prevent from bug when nx,ny fall on the see