# Error with grdblend \[GMT.jl\]

**URL:** https://forum.generic-mapping-tools.org/t/error-with-grdblend-gmt-jl/2029
**Category:** GMT.jl Q&A
**Created:** [August 26, 2021, 5:53pm UTC](https://forum.generic-mapping-tools.org/t/error-with-grdblend-gmt-jl/2029 "2021-08-26T17:53:24Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![tclements](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/tclements/32/1397_2.png) [@tclements](https://forum.generic-mapping-tools.org/u/tclements)
#### Post date: [August 26, 2021, 5:53pm UTC](https://forum.generic-mapping-tools.org/t/error-with-grdblend-gmt-jl/2029/1 "2021-08-26T17:53:24Z")

</div>

I’m using `GMT v0.36.0 ` with GMT v6.0.0. I can’t get `gmtblend` to work with the example from the [test set](https://github.com/GenericMappingTools/GMT.jl/blob/ab55a29d1cea404ab8b7e6edd9d9744b8161a7ad/test/test_GRDs.jl#L26-#L32):

```auto
import GMT
G=GMT.gmt("grdmath", "-R0/10/0/10 -I2 X")
G3=GMT.gmt("grdmath", "-R5/15/0/10 -I1 X Y -Vq")
GMT.grdblend(G,G3)

ERROR: Something went wrong when calling the module. GMT error number =
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] gmt(::String, ::GMT.GMTgrid{Float32,2}, ::Vararg{GMT.GMTgrid{Float32,2},N} where N) at /home/timclements/.julia/packages/GMT/AjPHw/src/gmt_main.jl:283
 [3] common_grd(::Dict{Symbol,Any}, ::String, ::GMT.GMTgrid{Float32,2}, ::GMT.GMTgrid{Float32,2}) at /home/timclements/.julia/packages/GMT/AjPHw/src/common_options.jl:3180
 [4] grdblend(::String, ::GMT.GMTgrid{Float32,2}, ::GMT.GMTgrid{Float32,2}; kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /home/timclements/.julia/packages/GMT/AjPHw/src/grdblend.jl:57
 [5] grdblend at /home/timclements/.julia/packages/GMT/AjPHw/src/grdblend.jl:52 [inlined]
 [6] #grdblend#209 at /home/timclements/.julia/packages/GMT/AjPHw/src/grdblend.jl:61 [inlined]
 [7] grdblend at /home/timclements/.julia/packages/GMT/AjPHw/src/grdblend.jl:61 [inlined] (repeats 2 times)
 [8] top-level scope at REPL[26]:1

```

Any thoughts?

---

<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: [August 29, 2021, 6:46pm UTC](https://forum.generic-mapping-tools.org/t/error-with-grdblend-gmt-jl/2029/2 "2021-08-29T18:46:13Z")

</div>

Several things have improved since GMT6.0.0 (we are at 6.2.0). But not a good test, you are right. Oddly it doesn’t print anything when running the test suite. This is what I get

```auto
...
julia> grdblend(G,G3)
grdblend [ERROR]: Must specify -I if input grids have different increments
ERROR: Something went wrong when calling the module. GMT error number =

```

But the worse is that it crashes GMT when **I** is used

```auto
julia> grdblend(G,G3, I=1)
grdblend [WARNING]: File @GMTAPI@-S-I-G-G-G-N-000011 has different increments (1/1) than the output grid (2/2) - must resample
grdblend [WARNING]: File @GMTAPI@-S-I-G-G-G-N-000011 coordinates are phase-shifted w.r.t. the output grid - must resample
grdsample [WARNING]: Output sampling interval in x exceeds input interval and may lead to aliasing.
grdsample [WARNING]: Output sampling interval in y exceeds input interval and may lead to aliasing.

Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x7ff8556a1416 -- memcpy at C:\WINDOWS\SYSTEM32\VCRUNTIME140D.dll (unknown line)
...

```

Will try to find why it crashes.

---

<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: [August 30, 2021, 3:12pm UTC](https://forum.generic-mapping-tools.org/t/error-with-grdblend-gmt-jl/2029/3 "2021-08-30T15:12:04Z")

</div>

Opened issue [#5715](https://github.com/GenericMappingTools/gmt/issues/5715)
