[R-sig-Geo] Problem reading a HDF5 file with readGDAL in Windows

Oscar Perpiñan oscar.perpinan at gmail.com
Wed May 6 07:53:16 CEST 2015


>
> Even better (renaming not necessary):
>
> x <-
> raster("E:/downloads/OMI.L2.CloudOMCLDO2Strip200kmAlongCloudSat.2015.05.05.020752Z.v003.he5",
> var='Data Fields/ChiSquaredOfFit', ncdf=TRUE)
> >> Not a remedy, but the following might be a workable alternative...
> >>
> >>
> ncdf4::nc_open("OMI.L2.CloudOMCLDO2Strip200kmAlongCloudSat.2015.05.05.020752Z.v003.he5")$var$`Data
> >> Fields/ChiSquaredOfFit`
>

Thanks. It works with the file of the example. But it fails with this one
(even on a Linux machine):
https://www.dropbox.com/s/3zmhbtcpf7ly4nw/201407291200

> x <- raster('201407291200', var = 'DSSF', ncdf = TRUE)
Error in R_nc4_open: NetCDF: Can't open HDF5 attribute
....
> x <- raster('201407291200', var = '//DSSF', ncdf = TRUE)
Error in R_nc4_open: NetCDF: Can't open HDF5 attribute
....

However, I can open this file in Linux with:

x <- readGDAL('HDF5:201407291200://DSSF')

Best,

Oscar.

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list