Re: [R-sig-Geo] get rgdal to read ENVI raster?

2007-08-07 Thread Felix Andrews
Thanks Michael The extension is "flt" (float type). This resulted in a sensible image: foo <- readBin("G:/Projects/Tuross/surface_files/rainfall_surface/year2000/rainGrid_20001.flt", "double", n=200*200, size=4, endian="little") foo[foo==-] <- NA range(foo, finite=T) # 18.83187 80.23850 imag

Re: [R-sig-Geo] get rgdal to read ENVI raster?

2007-08-07 Thread Felix Andrews
Sorry, I just realised that it is not an ENVI raster after all. Looks like it is a "ESRI binary raster format" described at http://coastwatch.noaa.gov/cw_form_br.html and there does not seem to be a GDAL driver for it. On 8/8/07, Felix Andrews <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to u

[R-sig-Geo] get rgdal to read ENVI raster?

2007-08-07 Thread Felix Andrews
Hi, I am trying to use rgdal to read in an "ENVI .hdr labelled raster" --see http://www.gdal.org/frmt_various.html#ENVI but GDAL uses the wrong driver, "ESRI .hdr labelled" --see http://www.gdal.org/frmt_various.html#EHdr So the imported grid data is just noise. I can not figure out how to make G