Re: [netcdfgroup] Perl netCDF-4 support?

  • To: "John D. Evans" <john.evans@xxxxxxx>
  • Subject: Re: [netcdfgroup] Perl netCDF-4 support?
  • From: Doug Hunt <dhunt@xxxxxxxx>
  • Date: Fri, 29 May 2009 16:29:33 -0600 (MDT)
Hi John:  Sorry, in haste I did not update the README.

You need a recent version of HDF5 installed when you install netcdf-4
in order to get the recent netcdf 4 capabilities.

So, what I did was download HDF5:

http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.3.tar.gz

and compile and install it in (say) /usr/local

then download netcdf-4.0:

http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-4.0.1.tar.gz

and compile and install it.  There is a configure flag you need to set:

./configure --with-hdf5=/usr/local --prefix=/usr/local

Finally, install PDL-NetCDF:

export NETCDF_EXTRALIBS='-L/usr/local/lib -lhdf5_hl -lhdf5 -lz'
export NETCDF_INCDIR=/usr/local/include
export NETCDF_LIBDIR=/usr/local/lib
perl Makefile.PL

Regards,

  Doug



dhunt@xxxxxxxx
Software Engineer
UCAR - COSMIC, Tel. (303) 497-2611

On Fri, 29 May 2009, John D. Evans wrote:

Hello Doug, Heiko,

I've tried building the recent PDL-NetCDF module using the NetCDF4 and
HDF5 libraries, but I've never gotten it to produce a true/nonzero value
for "PDL::NetCDF::isNetcdf4" ... or to read a NetCDF4 file.

It compiles cleanly, but without NetCDF4 capability.

Is there more to the build procedure than what's in the README file?

Thanks.

- John D. Evans, Ph.D <john.evans@xxxxxxx>
  Global Science & Technology, Inc.
  NASA Software Integration & Visualization Office
  Greenbelt, MD

Doug Hunt wrote:
Hi John:  I just uploaded a new version of PDL-NetCDF that supports
netcdf 4 to CPAN.  Thanks to Heiko Klein for this updated capability!

Regards,

  Doug Hunt

dhunt@xxxxxxxx
Software Engineer
UCAR - COSMIC, Tel. (303) 497-2611

On Wed, 20 May 2009, John D. Evans wrote:
Hi Doug,

You wrote on Mar. 12:
I've just received a contribution from a user of a patch to
PDL::NetCDF to add netCDF-4 support.  I've yet to test it out,
but this will probably mean basic netCDF-4 support will be
available in PDL::NetCDF within a few weeks.
I read the above with great interest. Do you have a time
estimate for releasing the PDL NetCDF-4 support?

Thanks.




  • 2009 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: