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

Felix Andrews felix at nfrac.org
Wed Aug 8 06:10:26 CEST 2007


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 <felix at nfrac.org> wrote:
> 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 GDAL/rgdal use the ENVI driver.
> Suggestions would be appreciated.
>
> The .hdr file contains:
> NCOLS      200
> NROWS      200
> XLLCORNER    148.50000000000
> YLLCORNER   -37.002500000000
> CELLSIZE    0.10000000000000E-01
> NODATA_VALUE   -9999.000
> BYTEORDER LSBFIRST
>
>
> > sessionInfo()
> R version 2.5.1 (2007-06-27)
> i386-pc-mingw32
>
> locale:
> LC_COLLATE=English_Australia.1252;LC_CTYPE=English_Australia.1252;LC_MONETARY=English_Australia.1252;LC_NUMERIC=C;LC_TIME=English_Australia.1252
>
> attached base packages:
> [1] "stats"     "graphics"  "grDevices" "utils"     "datasets"
> "methods"   "base"
>
> other attached packages:
>          rgdal       RArcInfo       maptools        foreign
>  sp    hydrosanity
>       "0.5-14"        "0.4-7"       "0.6-14"       "0.8-20"
> "0.9-14"       "0.8.57"
> plotAndPlayGTK    cairoDevice          RGtk2        lattice
>       "0.8.55"          "2.3"      "2.10.13"       "0.16-2"
>
>
> --
> Felix Andrews / 安福立
> PhD candidate
> Integrated Catchment Assessment and Management Centre
> The Fenner School of Environment and Society
> The Australian National University (Building 48A), ACT 0200
> Beijing Bag, Locked Bag 40, Kingston ACT 2604
> http://www.neurofractal.org/felix/
> voice:+86_1051404394 (in China)
> mobile:+86_13522529265 (in China)
> mobile:+61_410400963 (in Australia)
> xmpp:foolish.android at gmail.com
> 3358 543D AAC6 22C2 D336  80D9 360B 72DD 3E4C F5D8
>


-- 
Felix Andrews / 安福立
PhD candidate
Integrated Catchment Assessment and Management Centre
The Fenner School of Environment and Society
The Australian National University (Building 48A), ACT 0200
Beijing Bag, Locked Bag 40, Kingston ACT 2604
http://www.neurofractal.org/felix/
voice:+86_1051404394 (in China)
mobile:+86_13522529265 (in China)
mobile:+61_410400963 (in Australia)
xmpp:foolish.android at gmail.com
3358 543D AAC6 22C2 D336  80D9 360B 72DD 3E4C F5D8




More information about the R-sig-Geo mailing list