= NetCDF = * http://www.gdal.org/frmt_netcdf.html - format docs. == Building NetCDF == NetCDF support requires the [https://www.unidata.ucar.edu/software/netcdf/ NetCDF library]. Once it is built and installed, use the "--with-netcdf=" (e.g. /usr/local) option to configure and build GDAL. If nc-config is found in the default path or in the /bin directory, then optional support of netcdf-4 will be tested. See [http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-install/Quick-Instructions.html#Quick-Instructions NetCDF Quick Instructions] for instructions on how to build NetCDF. ./configure CC=gcc FC=gfortran F90=gfortran F77=gfortran CPPFLAGS=-DpgiFortran --with-pic --with-pic is mandatory in 64 bit systems (GDAL compatibility) make make check make install == Conflicts with HDF4 == If building GDAL with both HDF4 and NetCDF support it is necessary to build the HDF library specially or a dangerous conflict will occur. See the [wiki:HDF] topic for details. == CygWIN == Please note that with CygWIN you need to be sure that the DLLs are executable, or GDAL will not execute. Use the command {{{ chmod a+rx [NetCDF DLLs] }}}. The netCDF DLLs directory must be in your PATH. == Improvements to the NetCDF driver == The newer NetCDF-4 library offers features such as per-variable compression (using the deflate algorithm) and chunking which require the HDF5 library. To enable this, "--enable-netcdf4" (and perhaps --with-hdf5=) must be added to netcdf configure. GDAL 1.9 includes support for NetCDF-4 file format (provided that nc-config is found in the configure stage), as well as the 64-bit offset file format. HDF4 and HDF5 files are also supported, although the respective driver is used if available. The syntax "NETCDF:" forces the use of the NetCDF driver. Please look into [wiki:NetCDF_Improvements] for information regarding these and other improvements to the GDAL NetCDF driver. = Open Tickets = [[TicketQuery(status=new|assigned|reopened&keywords~=netcdf|netCDF|NETCDF|NetCDF&order=priority)]]