Using sphdistance to create a Distance Grid

Thanks mkononets. I’m almost there. What exact grdmath coding did you use?