# Xyz2grd - no output (and no error messages)

**URL:** <https://forum.generic-mapping-tools.org/t/xyz2grd-no-output-and-no-error-messages/579>\
**Category:** Q&A\
**Created:** [June 24, 2020, 4:13am UTC](https://forum.generic-mapping-tools.org/t/xyz2grd-no-output-and-no-error-messages/579 "2020-06-24T04:13:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RustyCuth](https://avatars.discourse-cdn.com/v4/letter/r/9d8465/32.png) [@RustyCuth](https://forum.generic-mapping-tools.org/u/RustyCuth)\
**Post date:** [June 24, 2020, 4:13am UTC](https://forum.generic-mapping-tools.org/t/xyz2grd-no-output-and-no-error-messages/579/1 "2020-06-24T04:13:19Z")

</div>

Not sure what I’m doing wrong.

`xyz2grd z_file.txt -Gout.grd -I0.1`

doesn’t complain but produces no output grid file.

Tried different input files, redirecting file ("\<") instead of just naming it.  
Also tried a Z-file with -Rrange and -XTLf

Even something like:  
`xyz2grid -I0.1`  
No error message. Nothing!

The only time I get a response (help message) is if I leave off all parameters.  
Vers: 5.4.3 (r19528)

---

<div class="post-metadata">

**Author:** ![seisman](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/seisman/32/4_2.png) [@seisman](https://forum.generic-mapping-tools.org/u/seisman)\
**Post date:** [June 24, 2020, 4:18am UTC](https://forum.generic-mapping-tools.org/t/xyz2grd-no-output-and-no-error-messages/579/2 "2020-06-24T04:18:53Z")

</div>

What’s your GMT version?

The command below works well for me:

```auto
gmt xyz2grd -I1 -R0/3/0/3 -Gabc.nc << EOF
1 1 1
1 1 2
2 1 1
2 2 2
EOF

```

---

<div class="post-metadata">

**Author:** ![RustyCuth](https://avatars.discourse-cdn.com/v4/letter/r/9d8465/32.png) [@RustyCuth](https://forum.generic-mapping-tools.org/u/RustyCuth)\
**Post date:** [June 24, 2020, 4:58am UTC](https://forum.generic-mapping-tools.org/t/xyz2grd-no-output-and-no-error-messages/579/3 "2020-06-24T04:58:05Z")

</div>

Yep, that worked.  
Eventually got my commands to work. I think it was an issue with the spacing specified with -I not matching that of the data - especially with the -Z file - but couldn’t reproduce the problem for the text input.  
Weird that nothing was output but no error messages were given.

---

<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:** [June 24, 2020, 11:36am UTC](https://forum.generic-mapping-tools.org/t/xyz2grd-no-output-and-no-error-messages/579/4 "2020-06-24T11:36:46Z")

</div>

> [@RustyCuth](#):
>
> Even something like:  
> `xyz2grid -I0.1`  
> No error message. Nothing!

GMT5.4 is an old version. This is what I get with GMT6

```auto
xyz2grd -I0.1
xyz2grd [ERROR]: Must specify -R option
xyz2grd [ERROR]: Option -G: Must specify output file

```
