Message-ID: <CAMLL7bknDfLL0ypNDsoNE+2wQrBbKOJ-Dcr6J4ZxkbpC8WTkNQ@mail.gmail.com>
Date: 2015-05-06T05:53:16Z
From: Oscar PerpiƱan
Subject: Problem reading a HDF5 file with readGDAL in Windows
In-Reply-To: <CANtt_hwbg9u1aqtH18d299bnrt_Qkdb=N2OwYS7av+91eFvSng@mail.gmail.com>
>
> 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]]