[GRASS-user] opening .gri anf .bin files in grass gis.
Markus Metz
markus.metz.giswork at gmail.com
Thu May 26 01:06:27 PDT 2016
On Thu, May 26, 2016 at 12:23 AM, Markus Neteler <neteler at osgeo.org> wrote:
> On Tue, May 24, 2016 at 3:27 PM, Rengifo Ortega <rengifoo at yahoo.de> wrote:
>> Dear Grass Community.,
>> first of all a greeting to the community. I have a question and hope some of
>> you can help me with it.
>>
>> I have got a .gri and a .bin file that represent a geodetic height modell
>> in Norway,which can be downloaded for free from here.
>> ftp://ftp.geodesi.no/NNTrans%20-%20Transformasjon%20mellom%20NN2000%20og%20NN1954/
>
> ... unfortunately it wants a password.
>
>> So, I have tried unsucessfull to import the .bin file into GRASS GIS and
>> the .gri file is not even read into GRASS GIS. Have any of you tried to open
>> a .gri file in GRASS GIS.
>>
>> i tried the r.in.bin with the following parameters with not success:
>> try 1:
>> r.in.bin NNTrans2016A.bin out=nntranstest r=5400 c=10800 n=72 s=57 w=
>> 1 e=33 bytes=2
>> try 2:
>> r.in.bin NNTrans2016A.bin out=nntranstest r=5400 c=10800 n=72 s=57 w=
>> 1 e=33 bytes=4
>> try 3:
>> r.in.bin NNTrans2016A.bin out=nntranstest r=5400 c=10800 n=72 s=57 w=
>> 1 e=33 bytes=8
>>
>>
>> In all three cases I got the following error;
>> WARNING: File Size 1577088 ... Total Bytes 116640000
>> ERROR: Bytes do not match file size
Is it possible that these files are not raster maps but reference
grids for the Norwegian height model HREF NN2000 to be used e.g. by
proj4?
Just a guess,
Markus M
>
> So, is the file size 116640000 bytes?
>
> Guestimating, I get
>
>> 5400*10800
> [1] 58320000
>> 116640000 / 58320000
> [1] 2
>
> --> 2 bytes.
>
> Or is the size 1577088 bytes?
>
> Markus
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
More information about the grass-user
mailing list