# Cross section with respect to a earthquake lcoation and strike

**URL:** <https://forum.generic-mapping-tools.org/t/cross-section-with-respect-to-a-earthquake-lcoation-and-strike/2616>\
**Category:** Q&A\
**Tags:** gmt\
**Created:** [February 10, 2022, 2:03pm UTC](https://forum.generic-mapping-tools.org/t/cross-section-with-respect-to-a-earthquake-lcoation-and-strike/2616 "2022-02-10T14:03:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![aqeel-magsi](https://avatars.discourse-cdn.com/v4/letter/a/f14d63/32.png) [@aqeel-magsi](https://forum.generic-mapping-tools.org/u/aqeel-magsi)\
**Post date:** [February 10, 2022, 2:03pm UTC](https://forum.generic-mapping-tools.org/t/cross-section-with-respect-to-a-earthquake-lcoation-and-strike/2616/1 "2022-02-10T14:03:38Z")

</div>

Hi, I am new to GMT and using version GMT6.  
How can we plot a cross-section line of 200km with respect to strike and given latitude and longitude?

I suggested to plot use GMT project but there is no option of the strike.

Thank you 🙂

---

<div class="post-metadata">

**Author:** ![Joaquim](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/joaquim/32/16_2.png) [@Joaquim](https://forum.generic-mapping-tools.org/u/Joaquim)\
**Post date:** [February 10, 2022, 8:26pm UTC](https://forum.generic-mapping-tools.org/t/cross-section-with-respect-to-a-earthquake-lcoation-and-strike/2616/2 "2022-02-10T20:26:57Z")

</div>

Looking for similar to this?

> [@How extend profile?](https://flint.soest.hawaii.edu/t/how-extend-profile/2544):
>
> I have a profile (see below) that lengths ca. 15 km. and I want extend the profile that same distance in both direction. I.e. I want to add two extra points (at the beginning and the end following its azimuth) at a distance of 15 km (so the new profile would be 45 km). I think it should be easy but I can’t figure out how to do it. # Long Lat -66.04971205 -55.14285297 -66.01518493 -55.11524701 -65.97886793 -55.08903702 -65.94340697 -55.06219498 -65.90790703 -55.03662696

---

<div class="post-metadata">

**Author:** ![ankara17](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/ankara17/32/4530_2.png) [@ankara17](https://forum.generic-mapping-tools.org/u/ankara17)\
**Post date:** [November 27, 2024, 8:48am UTC](https://forum.generic-mapping-tools.org/t/cross-section-with-respect-to-a-earthquake-lcoation-and-strike/2616/3 "2024-11-27T08:48:08Z")

</div>

Hi, the link is not found. Can you send link again?

---

<div class="post-metadata">

**Author:** ![mkononets](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/mkononets/32/4029_2.png) [@mkononets](https://forum.generic-mapping-tools.org/u/mkononets)\
**Post date:** [November 27, 2024, 9:20am UTC](https://forum.generic-mapping-tools.org/t/cross-section-with-respect-to-a-earthquake-lcoation-and-strike/2616/4 "2024-11-27T09:20:36Z")

</div>

many forum links are broken, pointing to flint.soest.hawaii.edu instead of [forum.generic-mapping-tools.org](http://forum.generic-mapping-tools.org).

below is the correct link

> [@How extend profile?](http://forum.generic-mapping-tools.org/t/how-extend-profile/2544):
>
> I have a profile (see below) that lengths ca. 15 km. and I want extend the profile that same distance in both direction. I.e. I want to add two extra points (at the beginning and the end following its azimuth) at a distance of 15 km (so the new profile would be 45 km). I think it should be easy but I can’t figure out how to do it. # Long Lat -66.04971205 -55.14285297 -66.01518493 -55.11524701 -65.97886793 -55.08903702 -65.94340697 -55.06219498 -65.90790703 -55.03662696

---

<div class="post-metadata">

**Author:** ![ankara17](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/ankara17/32/4530_2.png) [@ankara17](https://forum.generic-mapping-tools.org/u/ankara17)\
**Post date:** [November 27, 2024, 9:24am UTC](https://forum.generic-mapping-tools.org/t/cross-section-with-respect-to-a-earthquake-lcoation-and-strike/2616/5 "2024-11-27T09:24:30Z")

</div>

Hmm the link is active but not similar for the question above. Can you give me another solution?

---

<div class="post-metadata">

**Author:** ![PlanetGus](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/planetgus/32/303_2.png) [@PlanetGus](https://forum.generic-mapping-tools.org/u/PlanetGus)\
**Post date:** [November 28, 2024, 2:15pm UTC](https://forum.generic-mapping-tools.org/t/cross-section-with-respect-to-a-earthquake-lcoation-and-strike/2616/6 "2024-11-28T14:15:04Z")

</div>

See the doc for `grdtrack` with parameter `-S`.

If your data are not gridded, you can bin them using `xyz2grd`, or `binstat` or `block[...]` …

🙂
