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

[netCDF #GZK-961458]: reading the netcdf data

Hi Elaheh,

> I would like to read the netcdf data. I use Ubuntu and ifort for compiler. 
> I download the binary format of netcdf utilities
> (http://www.unidata.ucar.edu/downloads
> /netcdf/binary/linux_2.6-x86_64/binary-netcdf-4.1.1_ifort_ifort_icpc.tar.gz) 
> and put the files (include,lib,bin and share) in the path /usr/local/lib.

I think you should have instead put the files in /usr/local .

However, we're no longer making or supporting Linux binary releases,
as there are too many variants of Fortran compilers and development
environments.  Instead, our current approach is to provide only source
releases that build easily on common platforms.  Our latest source
release is version, with directions for building from source


Thanks for pointing out that the old binary releases are still
available.  We need to either delete those or mark them as unsupported
with a README file in that directory.  It's possible that they may
work on Ubuntu, but they were built on a Linux Fedora system.

> I face a problem when run the ncdump.
> data$ ncdump -c omega.1974.nc
> The program 'ncdump' is currently not installed.  

You apparently installed it in /usr/local/lib/bin/ncdump, so you would
have needed to either put /usr/local/lib/bin in your PATH or invoked
ncdump with the absolute path name.

> and I have a problem when I run the fortran code for reading netcdf
> data. Please find the attached file for fortran code. 
> ~/data$ /opt/intel/bin/ifort convert.f -L/usr/local/lib -lnetcdf
> ld: cannot find -lnetcdf

It would have been installed in /usr/local/lib/lib according to what
you specified, so you would have either needed to use a different -L
argument or moved the netcdf libraries to /usr/local/lib .


Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu

Ticket Details
Ticket ID: GZK-961458
Department: Support netCDF
Priority: High
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.