Hi @idrismunir check that g1 or g2 does not have latitudes outside the [-90, 90] range. I had a dataset that had >90 values and that gave me the same error.
When it says "invalid coordinate: [37.09, -95.713]" it is showing [longitude, latitude].
Hope...