[gdal-dev] reading hdf4 files in R

Lucia Rueda Ramirez lucia.rueda at ba.ieo.es
Mon Nov 25 00:16:22 PST 2013


Hi,

 

I am trying to read hdf4 files in R. I have tried to install the gdal
package from http://trac.osgeo.org/gdal/wiki/DownloadSource
<http://trac.osgeo.org/gdal/wiki/DownloadSource>  but I get an error
message saying that the description file is missing (Error: Does not
appear to be an R package (no DESCRIPTION)).

 

I have also tried to load the hdf4 files using the modis library and the
code 

 

sds <- getSds("C:/mypath/T20011612001168.L3m_8D_CHL_chlor_a_4km.hdf") 

 

But I get the following errors:

 

'FWTools/OSGeo4W' installation not found or path not set.

If you don't have installed one of them you can get it from
'http://fwtools.maptools.org/' or 'http://trac.osgeo.org/osgeo4w/'

(recommanded)

Trying to autodetect path to 'FWTools/OSGeo4W' (this may takes some
time, you can interupt this process and set it manually, see 'gdalPath'
argument in '?MODISoptions':

 

Found 'FWTools' version: '1.7.0b2' to enalbe this run:

 MODISoptions(gdalPath='c:/Archivos de programa/FWTools2.4.7/bin') Found
'OSgeo4W' version: '1:' in 'c:/OSGeo4W/bin' but without HDF4
support...strange, try to remove and re-install 'OSgeo4W'!

Error in getSds("C:/Documents and Settings/lucia.rueda/Mis

documentos/MEDITS/tema_clorofila/T20011612001168.L3m_8D_CHL_chlor_a_4km.
hdf")

: 

  Method GDAL does not work. Is GDAL installed properly on your system?
Run:

'checkTools()' to check out which metods should work on your system!

 

I have already installed the FWTools/OSGeo4W from the recommended url
above though I got installation errors as well...

 

Anyone with the same problem?? Any help would be apreciated. I have gone
through most forums but can't figure out how to solve this.

 

Thanks a lot

 

Lucia

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20131125/2d0a161c/attachment.html>


More information about the gdal-dev mailing list