Project

General

Profile

OpenDAP compatibility

Added by Frederic Laliberte over 12 years ago

Hi,

I am trying to use cdo with an opendap server:

cdo sinfo http://nomad3.ncep.noaa.gov:9090/dods/reanalyses/reanalysis-2/6hr/pgb/pgb

Error (cdf_open) : http://nomad3.ncep.noaa.gov:9090/dods/reanalyses/reanalysis-2/6hr/pgb/pgb
System error message : No such file or directory

Here's my CDO version:

Climate Data Operators version 1.5.1 (http://code.zmaw.de/projects/cdo)
Compiler: gcc -std=gnu99 -g -O2
 version: gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-50)
    with: PTHREADS SZ Z JASPER PROJ.4
Compiled: by laliberte on sila.atmosp.physics.utoronto.ca (x86_64-unknown-linux-gnu) Jul 22 2011 19:06:34
     CDI library version : 1.5.1 of Jul 22 2011 19:06:29
GRIB_API library version : 1.9.9
  netCDF library version : 4.1.2 of Jul 21 2011 17:21:51 $
    HDF5 library version : 1.8.7
 SERVICE library version : 1.3.0 of Jul 22 2011 19:06:20
   EXTRA library version : 1.3.0 of Jul 22 2011 19:06:17
     IEG library version : 1.3.0 of Jul 22 2011 19:06:19
    FILE library version : 1.7.1 of Jul 22 2011 19:06:17

My nc-config:

nc-config --all

This netCDF 4.1.2 has been built with the following features: 

  --cc        -> cc
  --libs      -> -lnetcdf  -lhdf5_hl -lhdf5 -lz -lsz -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz  

  --cxx       -> c++
  --has-c++   -> no

  --fc        -> gfortran
  --fflags    -> -g -O2 
  --has-f77   -> no
  --has-f90   -> no

  --has-dap   -> yes
  --has-nc2   -> no
  --has-nc4   -> yes
  --has-hdf5  -> yes
  --has-hdf4  -> no
  --has-pnetcdf-> no
  --has-szlib -> yes

  --version   -> netCDF 4.1.2

Is CDO supposed to work with OpenDAP?

Frederic


Replies (1)

RE: OpenDAP compatibility - Added by Uwe Schulzweida over 12 years ago

Hi Frederic,

Thanks for you report!
I added the OpenDAP support some years ago. I haven't took care of it since we at our institute don't use this feature and there was no user request on it. It seems that the configure check for OpenDAP was lost during the last years. I will try to add it in the next release!
You can simple enable OpenDAP with the preprocessor directive HAVE_LIBNC_DAP:

configure ... CFLAGS="... -DHAVE_LIBNC_DAP" ...

Best regards,
Uwe

    (1-1/1)