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
begin:vcard
fn:David Pinaud
n:Pinaud;David
adr;quoted-printable:;;Centre d'Etudes Biologiques de Chiz=C3=A9;Villiers-en-Bois;;79360;France
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Ing=C3=A9nieur de Recherche
tel;work:05.49.09.35.58
tel;fax:05.49.09.65.26
url:http://www.cebc.cnrs.fr/
version:2.1
end:vcard

_______________________________________________
R-sig-Geo mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Reply via email to