[GRASS-user] How to import R-generated .gri/.grd raster files in grass ?
Rainer M Krug
Rainer at krugs.de
Wed Feb 19 06:43:04 PST 2014
Antonello Lobianco <antonello at lobianco.org> writes:
> I received some data in .grd + .gri format, where the first one is a small
> text file and the second one (having the same name) is a medium/large
> binary file.
I don't think you can. This is, as far as I remember, an internal format
of the raster package in R to save raster data.
You effectively have two options:
1) use R and the raster package to load the data and to save it in a
2) ask the person to do it for you
Hope this helps,
> I am unable to open them in grass/qgis (I may have not tried all the
> options.. but almost all!).
> Any hint ? Which grid format is it ? Am I missing some library ? I tried to
> use google but unfortunately "r" word is too small, and it ends to refer
> always to the r.* commands in grass...
> This is the content of the .grd file:
> creator=R package 'raster'
> created= 2013-12-14 15:44:30
> nrows= 134
> ncols= 143
> xmin= 56000
> ymin= 1613000
> xmax= 1200000
> ymax= 2685000
> projection= NA
> datatype= FLT8S
> byteorder= little
> nbands= 5
> bandorder= BIL
> minvalue= 0:0:0:0:0
> maxvalue= 0.945:1:1:1:1
> nodatavalue= -1.7e+308
> layername= Value:Twin:Psum:pH:CN
> Thank you,
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)
Centre of Excellence for Invasion Biology
Tel : +33 - (0)9 53 10 27 44
Cell: +33 - (0)6 85 62 59 98
Fax : +33 - (0)9 58 10 27 44
Fax (D): +49 - (0)3 21 21 25 22 44
email: Rainer at krugs.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 494 bytes
Desc: not available
More information about the grass-user