# Finding the distance between Events coordinates and the station

**URL:** <https://discourse.obspy.org/t/finding-the-distance-between-events-coordinates-and-the-station/989>\
**Category:** Usage Questions\
**Created:** [July 21, 2020, 11:10am UTC](https://discourse.obspy.org/t/finding-the-distance-between-events-coordinates-and-the-station/989 "2020-07-21T11:10:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yasir3349](https://discourse.obspy.org/letter_avatar_proxy/v4/letter/y/e9c0ed/32.png) [@yasir3349](https://discourse.obspy.org/u/yasir3349)\
**Post date:** [July 21, 2020, 11:10am UTC](https://discourse.obspy.org/t/finding-the-distance-between-events-coordinates-and-the-station/989/1 "2020-07-21T11:10:40Z")

</div>

hello everyone . i got 631 events records data from IRIS. using obspy. i am struggling in writing a code to find the Distance b/w the events lat/long and the station . also i need to write a custom format CSV file . kindly check the below link i have mentioned my queries in the comments .Thanks  
[https://github.com/yasir3349/CSV-obspy/blob/64b591a82a94285ade34c3ec2814b9343933e278/CSV-FILE-Generation.ipynb](https://github.com/yasir3349/CSV-obspy/blob/64b591a82a94285ade34c3ec2814b9343933e278/CSV-FILE-Generation.ipynb)

---

<div class="post-metadata">

**Author:** ![megies](https://discourse.obspy.org/user_avatar/discourse.obspy.org/megies/32/9_2.png) [@megies](https://discourse.obspy.org/u/megies)\
**Post date:** [July 21, 2020, 11:18am UTC](https://discourse.obspy.org/t/finding-the-distance-between-events-coordinates-and-the-station/989/2 "2020-07-21T11:18:47Z")

</div>

I think you’ll need to work a bit on how you present your problem if you expect people to spend some of their time to try to help you. E.g use a meaningful title, improve how your code is presented, work on your wording so it is clear what the problem is.
