[osgeo4w-dev] [Qgis-user] QGIS cannot read .nc files on my Windows7 64 Bits

Etienne Tourigny etourigny.dev at gmail.com
Sun Jun 10 07:51:45 PDT 2012


Hi,

The hdf5 version in osgeo4w is quite old - 1.6.5 was released in 2005
- and latest release is 1.8.9.
Netcdf version is also old - 3.6.1 which was released in 2006 - and
latest release is 4.2.0

Could  osgeo4w maintainers consider installing a more recent version
of netcdf-4 (at least 4.1.1) and hdf5 (at least 1.8.3)?
Without this netcdf-4 files cannot be read by gdal nor anything that
relies on it.

There are pre-compiled binaries at
ftp://ftp.unidata.ucar.edu/pub/netcdf/contrib/win32/netcdf-4.1.1-win32-bin.zip
http://www.hdfgroup.org/HDF5/release/obtain5.html

For building netcdf see also
http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-install.html#Building-on-Windows
Although it seems quite difficult to build netcdf since 4.1.2


This mail was forwarded to the osgeo4w-dev list as it seems that it is
related to osgeo4w installation of netcdf+hdf5 and not gdal not qgis.

Matt:

It seems that the HDF5 driver is picking up the file - this file is a
netcdf-4 file with hdf5 storage.  It should be picked up by the netcdf
driver, but it isn't.

For now your only options are
1- use linux
2- try the gdal builds by Tamas Szekeres : http://www.gisinternals.com/sdk/
3- ask your provider to give you netcdf-3 files
4- convert them to netcdf-3 using tools like nco or cdo

Regards,
Etienne

On Sun, Jun 10, 2012 at 7:14 AM, MattJack <mathieu at yadusurf.com> wrote:
> Dear all,
>
> I'm back with my "I can't open my .nc file with gdalinfo"!
>
> Etienne, I could install a more "up-to-date" gdal version, by re-running
> osgeo4w setup.
>
> so now Gdal version is "GDAL 1.9.1, released 2012/05/15"
> which sounds good.
>
> About supported formats it looks good too:
>     GMT (rw): GMT NetCDF Grid Format
>    netCDF (rw+): Network Common Data Format
>    HDF4 (ro): Hierarchical Data Format Release 4
>    HDF4Image (rw+): HDF4 Dataset
>    HDF5 (ro): Hierarchical Data Format Release 5
>    HDF5Image (ro): HDF5 Dataset
>
> But I still can't open "Norgas.nc" file on my system, inspute of this file
> is certified "OK" by the producer.
>
> I get this error :
> C:\>gdalinfo norgas.nc
> HDF5-DIAG: Error detected in HDF5 library version: 1.6.5 thread 0.  Back
> trace follows.
>  #000: \fangguo\uptodate_test\hdf516_release\hdf5-Net\hdf5\src\H5F.c line
> 2048
> in H5Fopen(): unable to open file
>    major(04): File interface
>    minor(17): Unable to open file
>  #001: \fangguo\uptodate_test\hdf516_release\hdf5-Net\hdf5\src\H5F.c line
> 1828
> in H5F_open(): unable to read superblock
>    major(04): File interface
>    minor(24): Read failed
>  #002: \fangguo\uptodate_test\hdf516_release\hdf5-Net\hdf5\src\H5Fsuper.c
> line
> 124 in H5F_read_superblock(): bad superblock version number
>    major(04): File interface
>    minor(05): Bad value
> ERROR 4: `norgas.nc' not recognised as a supported file format.
> gdalinfo failed - unable to open 'norgas.nc'.
>
>
> => So could someone try to open this file (on a Windows system if possible)?
> Maybe my GDAL version is still not good?
> I have uploaded the file here :
> www.yadusurf.com/norgas.nc
>
> Thanks!
> Mathieu
>
>
> --
> View this message in context: http://osgeo-org.1560.n6.nabble.com/QGIS-cannot-read-nc-files-on-my-Windows7-64-Bits-tp4975239p4980221.html
> Sent from the Quantum GIS - User mailing list archive at Nabble.com.
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user


More information about the osgeo4w-dev mailing list