# Xyz2grd.exe: Found 762612 records, but 1442401 was expected

**URL:** <https://forum.generic-mapping-tools.org/t/xyz2grd-exe-found-762612-records-but-1442401-was-expected/951>\
**Category:** Q&A\
**Created:** [October 18, 2020, 6:14am UTC](https://forum.generic-mapping-tools.org/t/xyz2grd-exe-found-762612-records-but-1442401-was-expected/951 "2020-10-18T06:14:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dwi](https://avatars.discourse-cdn.com/v4/letter/d/cdc98d/32.png) [@dwi](https://forum.generic-mapping-tools.org/u/dwi)\
**Post date:** [October 18, 2020, 6:14am UTC](https://forum.generic-mapping-tools.org/t/xyz2grd-exe-found-762612-records-but-1442401-was-expected/951/1 "2020-10-18T06:14:25Z")

</div>

Hi everyone,

I try to convert SRTM data (S09E115.bin → save from 3dem software,[S09E115.zip](https://forum.generic-mapping-tools.org/uploads/short-url/bK2La8cz9kvNK3bAPIglDOsOIaB.zip) (590.2 KB) binary signed integer) using xyz2grd. this is the scipts

#!/bin/csh -f  
set SRTM = S09E115

set REGION = 108:00:00/109:00:00/-8:00:00/-7:00:00  
set zfile = ./$SRTM.bin  
set grdfile = ./$SRTM.grd  
set int = 3c

#gmtset D\_FORMAT %12.5f

xyz2grd $zfile -R$REGION -I$int -G$grdfile -ZBLf -F -V

but there is some error;  
xyz2grd.exe: Found 757676 records, but 1440000 was expected (aborting)!

Anybody can fixs this problem? I used gmt 4.5.5 on cygwin.

regards,

---

<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:** [October 18, 2020, 8:00am UTC](https://forum.generic-mapping-tools.org/t/xyz2grd-exe-found-762612-records-but-1442401-was-expected/951/2 "2020-10-18T08:00:05Z")

</div>

In GMT 6.1.1 you would just do

`gmt grdcut @srtm_relief_03s -R108:00:00/109:00:00/-8:00:00/-7:00:00 -Gtile.grd`

Anyway, these bin files are short ints are they not? So you would use -ZBLh I think, but not sure what 3dem saves so you would need to know that.
