[gdal-dev] Reading raster file

Javier Jimenez Shaw j1 at jimenezshaw.com
Tue May 9 08:21:16 PDT 2023


Hi

I want to read the Argentinian Geoid model with GDAL.
It is an ascii raster floating-point file with just one band.
https://dnsg.ign.gob.ar/apps/geoidear/documentos/GEOIDE-Ar16.gri (22 MB)


The content is starts with:

   -57.0007400000   -20.0166670000   -76.0000000000   -52.0161870000
0.01666700000000001   0.01666700000000000

13.278 13.310 13.321 13.322 13.357 13.383 13.429 13.442
13.477 13.504 13.516 13.549 13.574 13.549 13.570 13.602
13.623 13.584 13.574 13.661 13.766 13.802 13.823 13.821
13.835 13.881 13.907 13.944 14.005 14.060 14.085 14.070
14.098 14.153 14.221 14.259 14.277 14.396 14.446 14.451
14.390 14.471 14.572 14.645 14.681 14.674 14.702 14.745
14.796 14.843 14.872 14.872 14.952 15.065 15.110 15.053
15.056 15.050 15.095 15.126 15.125 15.154 15.222 15.261
15.244 15.369 15.480 15.519 15.464 15.462 15.505 15.477

and finishes with

19.069 19.065 19.057 19.047 19.039 19.031 19.021 19.012
19.004 18.997 18.990 18.987 18.987 18.988 18.991 18.998
19.001 19.009 19.027 19.042 19.067 19.141 19.209 19.208
19.179 19.156 19.147 19.150 19.152 19.156 19.164 19.155

Total number of lines: 399602

It seems to have a width of 1440 and height of 2220.

gdalinfo says

$ gdalinfo GEOIDE-Ar16.gri
ERROR 1: Maximum number of characters allowed reached.
ERROR 1: Couldn't determine X spacing
gdalinfo failed - unable to open 'GEOIDE-Ar16.gri'.

I do not know which exact format it is. I can deduce the meaning of the
values (specially knowing that it covers Argentina ;), but I would like to
read it directly if possible.

Is that a know format for GDAL?

Thanks,
Javier.
.___ ._ ..._ .. . ._.  .___ .. __ . _. . __..  ... .... ._ .__
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20230509/84bbe878/attachment.htm>


More information about the gdal-dev mailing list