# Xyz2grd - "no data" option not working as expected

**URL:** <https://forum.generic-mapping-tools.org/t/xyz2grd-no-data-option-not-working-as-expected/106>\
**Category:** Q&A\
**Created:** [November 22, 2019, 4:38am UTC](https://forum.generic-mapping-tools.org/t/xyz2grd-no-data-option-not-working-as-expected/106 "2019-11-22T04:38:17Z")\
**Posts on this page:** 2\
**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:** [November 22, 2019, 4:38am UTC](https://forum.generic-mapping-tools.org/t/xyz2grd-no-data-option-not-working-as-expected/106/1 "2019-11-22T04:38:17Z")

</div>

I’m converting a lot of x,y,z points to a grid but am having probs getting xyz2grd to make missing triplets =0.

I used: _ **-di0** _ but missing triplets end up as: _ **NaN** _

Manual states:

> **-di** _nodata_  
> Replace input columns that equal _nodata_ with NaN. Also sets nodes with no input xyz triplet to this value.

Any ideas?  
PS: GMT 5.4.3

---

<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:** [November 22, 2019, 4:42am UTC](https://forum.generic-mapping-tools.org/t/xyz2grd-no-data-option-not-working-as-expected/106/2 "2019-11-22T04:42:09Z")

</div>

Dang. Just found the problem (answer). Nothing like posting something to make you see things a different way!
