[R-sig-Geo] rgdal installation

David PINAUD pinaud at cebc.cnrs.fr
Mon Mar 17 10:10:13 CET 2008


Dear all,

I'm trying to import HDF (v4) files on R2.6.2  using the package rgdal 
and FWTools v2.1.0. I have the following message :

 > GDALinfo("T20060012006008.L3m_8D_SST_9.hdf")
Erreur dans .local(.Object, ...) :
        GDAL Error 4: `T20060012006008.L3m_8D_SST_9.hdf' not recognised 
as a supported file format.

I can load this file with FWTools without problem.
I suppose that rgdal is not able to recognize the path to the 
FWTools/bin directory:
 > library(rgdal)
Le chargement a nécessité le package : sp
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 1.5.0, released 2007/12/18
GDAL_DATA: C:/PROGRA~1/R/R-26~1.2/library/rgdal/gdal  ####### it should 
be FWTools/bin ??  #####
Loaded PROJ.4 runtime: Rel. 4.6.0, 21 Dec 2007
PROJ_LIB: C:/PROGRA~1/R/R-26~1.2/library/rgdal/proj

However I set before the PATH environment variable in Windows 
(Start>Parameters>Configuration Panel>System>Advanced>Environment 
variables : GDAL_DATA set to C:\Program Files\FWTools2.1.0\bin) as 
explained in http://rgdal.sourceforge.net/. No effect.

What's wrong ? Is there a thing that I've missed or didn't do correctly? 
Is there another way to set this directory?

Thank you for your help^.

David

-- 
***************************************************
David PINAUD
Ingénieur de Recherche "Analyses spatiales"

Centre d'Etudes Biologiques de Chizé - CNRS UPR1934
79360 Villiers-en-Bois, France 
poste 485
Tel: +33 (0)5.49.09.35.58
Fax: +33 (0)5.49.09.65.26
http://www.cebc.cnrs.fr/

***************************************************




________ Information from NOD32 ________
This message was checked by NOD32 Antivirus System for Linux Mail Servers.
http://www.eset.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pinaud.vcf
Type: text/x-vcard
Size: 324 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20080317/e7a01999/attachment.vcf>


More information about the R-sig-Geo mailing list