[gdal-dev] reading hdf4 files in R

Etienne Tourigny etourigny.dev at gmail.com
Mon Nov 25 10:25:18 PST 2013


fwtool is really old so you should not use it and uninstall it.

You may want to use the R package Rgdal, but I have not used iit under
windows.

http://cran.r-project.org/web/packages/rgdal/index.html


On Mon, Nov 25, 2013 at 6:16 AM, Lucia Rueda Ramirez
<lucia.rueda at ba.ieo.es>wrote:

>  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 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
>
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20131125/1ff2cfac/attachment.html>


More information about the gdal-dev mailing list