can't seem to get netCDF4 support added

Help
ripley
2012-01-05
2013-10-17
  • ripley
    ripley
    2012-01-05

    I've successfully built the NCO utilites and configured with:
    CPPFLAGS='-DHAVE_NETCDF4_H -I/usr/local/include' LDFLAGS='-L/usr/local/lib' ./configure -prefix='/usr/local' -enable-ncap2 -enable-netcdf4

    The resulting executables can read netCDF4 (HDF5), but cannot write netCDF4.  See below, ncks -r shows that netCDF4/HDF5 is not active.  Is there something i'm missing in order to get the support added??

    thanks-tom

    $ ncks -r
    NCO netCDF Operators version "4.0.8" last modified 2011/04/26 built Jan  5 2012 on ute by tpruitt
    ncks version 4.0.8
    Linked to netCDF library version 4.1.3, compiled Jan  4 2012 08:58:05
    Copyright (C) 1995-2011 Charlie Zender
    NCO is free software and comes with A BIG FAT KISS and ABOLUTELY NO WARRANTY
    License: GNU General Public License (GPL) Version 3
    Homepage: http://nco.sf.net
    User's Guide: http://nco.sf.net/nco.html
    Configuration Option:   Active? Meaning or Reference:
    Check _FillValue        Yes     http://nco.sf.net/nco.html#mss_val
    Check missing_value     No      http://nco.sf.net/nco.html#mss_val
    Compressed netCDF3      No      http://nco.sf.net/nco.html#znetcdf (pre-alpha)
    DAP clients (libdap)    No      http://nco.sf.net/nco.html#dap
    DAP clients (libnetcdf) No      http://nco.sf.net/nco.html#dap
    Debugging: Custom       No      Pedantic, bounds checking (slowest execution)
    Debugging: Symbols      No      Produce symbols for debuggers (e.g., dbx, gdb)
    GNU Scientific Library  Yes     http://nco.sf.net/nco.html#gsl
    Internationalization    No      http://nco.sf.net/nco.html#i18n (pre-alpha)
    MPI parallelization     No      http://nco.sf.net/nco.html#mpi (beta)
    netCDF3 64-bit files    Yes     http://nco.sf.net/nco.html#lfs
    netCDF4/HDF5            No      http://nco.sf.net/nco.html#nco4
    OpenMP SMP threading    No      http://nco.sf.net/nco.html#omp
    Optimization: run-time  No      Fastest execution possible (slowest compilation)
    Parallel netCDF3        No      http://nco.sf.net/nco.html#pnetcdf (pre-alpha)
    Shared libraries built  Yes     Small, dynamically linked executables
    Static libraries built  Yes     Large executables with private namespaces
    UDUnits conversions     Yes     http://nco.sf.net/nco.html#udunits
    UDUnits2 conversions    Yes     http://nco.sf.net/nco.html#udunits
    Wildcarding (regex)     Yes     http://nco.sf.net/nco.html#rx

    Configuration Parameters:
    AR_FLAGS…………. cru
    CC………………. gcc -std=gnu99
    CFLAGS…………… -g -O2 -std=c99 -D_BSD_SOURCE -D_POSIX_SOURCE
    CPP……………… gcc -E
    CPPFLAGS…………. -I/usr/local/include -I/usr/local/include -DHAVE_NETCDF4_H -I/usr/local/include
    CXX……………… g++
    CXXFLAGS…………. -g -O2
    ENABLE_DAP_NETCDF…. no
    ENABLE_DAP_OPENDAP… no
    ENABLE_DAP……….. no
    ENABLE_GSL……….. no
    ENABLE_MPI………..
    ENABLE_NETCDF4……. yes
    ENABLE_UDUNITS……. no
    ENABLE_UDUNITS2…… yes
    GSL_ROOT………….
    HAVE_NETCDF4_H…….
    HOST…………….. ute
    host…………….. x86_64-unknown-linux-gnu
    HOSTNAME…………. ute
    LDFLAGS………….. -L/usr/local/lib -lnetcdf -L/usr/local/lib
    LIBS…………….. -ludunits2 -lm  -ludunits2
    NETCDF4_ROOT………

     
  • ripley
    ripley
    2012-01-09

    Found problem in the configure script…netcdf4 support added now.

     
  • Charlie Zender
    Charlie Zender
    2012-01-09

    Was unable to respond earlier. Glad you found and fixed the problem. Is there something that needs to be changed in the default NCO configure.in script?

     
  • gali-29
    gali-29
    2013-04-15

    Yes,

    you need to change the variable name NETCDF_ROOT to NETCDF4_ROOT.

    Cheers.

    gg