[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #DZU-954292]: Cannot install. Urgent:: Please respond



Hi,
 
> Thanks for the reply.
> 
> Can i have a small code or the *required functions *to use or a structure
> to build a client i.e. 1.To pass url and 2. Get datadds. I would be very
> much thankfull if you could help me out with this.

You use the same function that you would use for opening and reading from a 
local
netCDF file.  The only difference is that you provide a URL instead of a file 
name
for the "file" you are opening.  Here's an example, assuming you are using the C
interface:

   status = 
nc_open("http://nomads.ncdc.noaa.gov:80/dods/SEAWINDS/clm/uvclm95to05";, 
                    NC_NOWRITE, &ncid);

--Russ

> address@hidden> wrote:
> 
> > Hi Sricharan,
> >
> > > I have a doubt. Can i use netCDF library to write a client for data
> > > retrieval from GradsData Server. Waiting for you reply.
> >
> > Yes, the Grads Data Server is an OPeNDAP server (it uses the DAP version
> > 2 protocol).  The netCDF library has DAP client capabilities built in, so
> > you can open and read data from a remote DAP server, such as the GDS, from
> > a netCDF program.  The DAP client was added in netCDF version 4.1, so you
> > would need a version 4.1 or later.  We recommend version 4.2.1.1:
> >
> >   http://www.unidata.ucar.edu/downloads/netcdf/netcdf-4_2_1_1/
> >
> > --Russ
> >
> > > address@hidden> wrote:
> > >
> > > > Thanks for the support. I will contact you if i have any further
> > questions.
> > > >
> > > > Thanks,
> > > > Sricharan Lochan
> > > >
> > > > address@hidden> wrote:
> > > >
> > > >> > Thanks for the reply.
> > > >> >
> > > >> > So can i use
> > > >> >
> > > >> > CPPFLAGS=.... LDFLAGS=... ./configure --enable-netcdf-4
> > > >> > --prefix=/home/netCDF/local
> > > >>
> > > >> Yes, that would work.  You could also still specify
> > --prefix=/home/local,
> > > >> as long as there are no conflicts in the names of libraries, include
> > > >> files,
> > > >> or executables between HDF5 and netCDF.  I'm pretty sure that would
> > work
> > > >> also, and would have the advantage of simpler linking for
> > applications,
> > > >> becasue only one library directory would have to be specified (or
> > added
> > > >> to LD_LIBRARY_PATH).
> > > >>
> > > >> --Russ
> > > >>
> > > >> > address@hidden> wrote:
> > > >> >
> > > >> > > Hi Sricharan,
> > > >> > >
> > > >> > > > I have been trying to install netcdf-4.2 with hdf5. I have
> > installed
> > > >> > > > hdf5 in the directory "/home/local".
> > > >> > > >
> > > >> > > > These are the commands I executed
> > > >> > > >
> > > >> > > > ./configure --enable-netcdf-4 --prefix=/home/local
> > > >> > > >
> > > >> > > > i am getting an error saying cannot find hdf5
> > > >> > > >
> > > >> > > > Please let me know if i have to add any other options. Please
> > > >> respond.
> > > >> > >
> > > >> > > Yes, you need to set CPPFLAGS and LDFLAGS environment variables
> > > >> > > appropriately,
> > > >> > > to specify where the hdf5 library was installed.  The --prefix
> > option
> > > >> is
> > > >> > > intended to specify where netCDF should be installed.
> > > >> > >
> > > >> > > See instructions here:
> > > >> > >
> > > >> > >
> > http://www.unidata.ucar.edu/software/netcdf/docs/build_default.html
> > > >> > >
> > > >> > > --Russ
> > > >> > >
> > > >> > > Russ Rew                                         UCAR Unidata
> > Program
> > > >> > > address@hidden
> > > >> http://www.unidata.ucar.edu
> > > >> > >
> > > >> > >
> > > >> > >
> > > >> > > Ticket Details
> > > >> > > ===================
> > > >> > > Ticket ID: DZU-954292
> > > >> > > Department: Support netCDF
> > > >> > > Priority: Normal
> > > >> > > Status: Closed
> > > >> > >
> > > >> > >
> > > >> >
> > > >> >
> > > >> > --
> > > >> > *Regards,
> > > >> > Sricharan Lochan*
> > > >> >
> > > >> >
> > > >>
> > > >> Russ Rew                                         UCAR Unidata Program
> > > >> address@hidden
> > http://www.unidata.ucar.edu
> > > >>
> > > >>
> > > >>
> > > >> Ticket Details
> > > >> ===================
> > > >> Ticket ID: DZU-954292
> > > >> Department: Support netCDF
> > > >> Priority: Normal
> > > >> Status: Closed
> > > >>
> > > >>
> > > >
> > > >
> > > > --
> > > > *Regards,
> > > > Sricharan Lochan*
> > > >
> > > >
> > >
> > >
> > > --
> > > *Regards,
> > > Sricharan Lochan*
> > >
> > >
> > Russ Rew                                         UCAR Unidata Program
> > address@hidden                      http://www.unidata.ucar.edu
> >
> >
> >
> > Ticket Details
> > ===================
> > Ticket ID: DZU-954292
> > Department: Support netCDF
> > Priority: Normal
> > Status: Closed
> >
> >
> 
> 
> --
> *Regards,
> Sricharan Lochan*
> 
> 
Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: DZU-954292
Department: Support netCDF
Priority: Normal
Status: Closed


NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.