# Grdblend problem!

**URL:** https://forum.generic-mapping-tools.org/t/grdblend-problem/564
**Category:** Q&A
**Tags:** gmt
**Created:** [June 21, 2020, 1:09pm UTC](https://forum.generic-mapping-tools.org/t/grdblend-problem/564 "2020-06-21T13:09:21Z")
**Posts on this page:** 3
**Page:** 2

<div class="post-metadata">

### Author: ![pwessel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/pwessel/32/30_2.png) [@pwessel](https://forum.generic-mapping-tools.org/u/pwessel)
#### Post date: [June 29, 2020, 9:34pm UTC](https://forum.generic-mapping-tools.org/t/grdblend-problem/564/21 "2020-06-29T21:34:15Z")

</div>

The four individual grids are all pixel grids and have 12.5 m spacing. They do not, however, have boundaries that follow a common X + n \* dx pattern. For instance, **AP\_14636\_FBD\_F6850\_RT1\_cutted.dem.grd** starts at x = **771676.6875** and **AP\_14636\_FBD\_F6860\_RT1\_cutted.dem.grd** starts at **759256.6875**. The difference is **12420** meters but that shift is not divisible by 12.5. So one is phase shifted with respect to the other, i.e. the second grid’s west is not an integer number of 12.5 meters from the other grids west. Etc.  
Now, none of that should lead to any crash of other issues, so I will look at that, but this is why you are getting those messages. One grid’s nodes do not overlay with the other grid’s nodes hence resample is required.

---

<div class="post-metadata">

### Author: ![pwessel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/pwessel/32/30_2.png) [@pwessel](https://forum.generic-mapping-tools.org/u/pwessel)
#### Post date: [June 30, 2020, 5:14am UTC](https://forum.generic-mapping-tools.org/t/grdblend-problem/564/22 "2020-06-30T05:14:31Z")

</div>

Found the cause of the crash in grdsample, and fixed in master. Thanks for providing a good test case. In general, if you are able to avoid using a -R that forces resampling you would be better off. Resampling as in this case leads to loss of the highest frequencies which surely is not desirable.

---

<div class="post-metadata">

### Author: ![Mark](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@Mark](https://forum.generic-mapping-tools.org/u/Mark)
#### Post date: [June 30, 2020, 6:21am UTC](https://forum.generic-mapping-tools.org/t/grdblend-problem/564/23 "2020-06-30T06:21:25Z")

</div>

Yeah,actually I calculated every range of the subgrid and resampled it before use grdblend(without changing the spacing),and avoid to resample in grdblend.  
The only disadvantage is too inconvenient.  
As you can see here:

 ![image](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/1X/fd5183c316acb3254777be5d2d9d3019b11caba0.png)

[Previous page](https://forum.generic-mapping-tools.org/t/grdblend-problem/564.md?page=1)
