# Density plot to earthquake

**URL:** <https://forum.generic-mapping-tools.org/t/density-plot-to-earthquake/3725>\
**Category:** Q&A\
**Created:** [March 3, 2023, 1:22pm UTC](https://forum.generic-mapping-tools.org/t/density-plot-to-earthquake/3725 "2023-03-03T13:22:52Z")\
**Posts on this page:** 5\
**Page:** 2

<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:** [March 8, 2023, 11:01am UTC](https://forum.generic-mapping-tools.org/t/density-plot-to-earthquake/3725/21 "2023-03-08T11:01:54Z")

</div>

The code is not at fault here.

You may (or may not) :

- Have issues running bash scripts on a windows environment
- Have some residual gmt\_config files being called
- …

I can’t really help with that, not using windows myself right now.

Is it possible to run the script somehow like this?  
`bash -x script.sh`

---

<div class="post-metadata">

**Author:** ![annafiglioli](https://avatars.discourse-cdn.com/v4/letter/a/7feea3/32.png) [@annafiglioli](https://forum.generic-mapping-tools.org/u/annafiglioli)\
**Post date:** [March 8, 2023, 11:33am UTC](https://forum.generic-mapping-tools.org/t/density-plot-to-earthquake/3725/22 "2023-03-08T11:33:42Z")

</div>

i use git bash

and than i receive this error.  
gmtbinstats [ERROR]: File C:programsprova\_GMT.txt was not found  
gmtbinstats [ERROR]: Cannot find file C:programsprova\_GMT.txt  
grdimage [ERROR]: Cannot find file prova\_GMT\_gridded.nc

---

<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:** [March 8, 2023, 12:02pm UTC](https://forum.generic-mapping-tools.org/t/density-plot-to-earthquake/3725/23 "2023-03-08T12:02:07Z")

</div>

Try to replace ${data\_input} with “${data\_input}”  
Your system seems to interpret the string `prova_GMT.txt`as a function instead of a string.

---

<div class="post-metadata">

**Author:** ![annafiglioli](https://avatars.discourse-cdn.com/v4/letter/a/7feea3/32.png) [@annafiglioli](https://forum.generic-mapping-tools.org/u/annafiglioli)\
**Post date:** [March 8, 2023, 3:08pm UTC](https://forum.generic-mapping-tools.org/t/density-plot-to-earthquake/3725/24 "2023-03-08T15:08:31Z")

</div>

i try the solution: download the GMT 6.4 in a Linux Machine, then i resolve my all problem to create and run the codes.  
now i have all data.  
thank you very much to have patience with me.

---

<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:** [March 8, 2023, 3:27pm UTC](https://forum.generic-mapping-tools.org/t/density-plot-to-earthquake/3725/25 "2023-03-08T15:27:59Z")

</div>

> [@annafiglioli](#):
>
> GMT 6.4 in a Linux Machine

GMT 6.5 would have been even better 😉  
Good luck with your PhD work

[Previous page](https://forum.generic-mapping-tools.org/t/density-plot-to-earthquake/3725.md?page=1)
