Problem reading a HDF5 file with readGDAL in Windows
Are you sure you have the HDF5 driver in Windows? Do you build yourself against your own GDAL or against OSGeo4W? (It's not in the CRAN windows-build). This is the error the CRAN build gives (though it's actually not recognizing the driver): "... does not exist in the file system, and is not recognised as a supported dataset name." (gdalinfo works fine with your subdataset string here on my Windows8 with OSGeo4W. ) Cheers, Mike.
On Tue, 5 May 2015 at 21:35 Oscar Perpi?an <oscar.perpinan at gmail.com> wrote:
Hello,
I am trying to read a HDF5 file whose variable name contains '//'. I have
no
problem in a Linux machine, but 'readGDAL' throws an error in Windows. If I
am not wrong, it is because the initialize method of the
'GDALReadOnlyDataset'
class includes a call to 'normalizePath'.
For example, the next code works in Linux but fails in Windows (it uses
this
file
ftp://atrain.sci.gsfc.nasa.gov/data/s4pa//OMI/OMCLDO2_CPR.003/2015/125/OMI.L2.CloudOMCLDO2Strip200kmAlongCloudSat.2015.05.05.020752Z.v003.he5
)
x <- readGDAL("HDF5:OMI.L2.CloudOMCLDO2Strip200kmAlongClo
udSat.2015.05.05.020752Z.v003.he5://HDFEOS/SWATHS/
CloudFractionAndPressure/Data_Fields/ChiSquaredOfFit")
Is there any way to circumvent this problem?
Thanks in advance.
Oscar.
-----------------------------------------------------------------
Oscar Perpi??n Lamigueiro
Dpto. Ing. El?ctrica, Electr?nica, Autom?tica y F?sica Aplicada
(ETSIDI-UPM)
Grupo de Sistemas Fotovoltaicos (IES-UPM)
URL: http://oscarperpinan.github.io
[[alternative HTML version deleted]]
_______________________________________________ R-sig-Geo mailing list R-sig-Geo at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo