Heiko: Thank you very much! It will take me a while to install netCDF4 and test this all out, I'll let you know how it goes.
Regards, Doug [email protected] Software Engineer IV UCAR - COSMIC, Tel. (303) 497-2611 On Tue, 10 Mar 2009, Heiko Klein wrote: > Hi Doug, > > I added now netcdf4 support to PDL::NetCDF. It requires compilation to the > netcdf4 libraries, and in addition linking to the hdf5 libraries, i.e. > > NETCDF_EXTRALIBS='-L/disk1/heiko/local/hdf5_1.8/lib -lhdf5_hl -lhdf5 -lz' > NETCDF_INCDIR=/disk1/heiko/local/netcdf-4.0/include > NETCDF_LIBDIR=/disk1/heiko/local/netcdf-4.0/lib/ perl Makefile.PL > > With that, it is possible to read netcdf4 files without any modifications to > existing code. > > There are now some extra function to create/investigate netcdf4 features: > isNetcdf4 - detect netcdf4 support > defaultFormat - set the default format when writing files (NC3,NC-64b,NC4) > getFormat - read the format of the file > getDeflateShuffle - get gzip deflation, shuffle filter of variable > > extra options > put, puttext, putslice : {DEFLATE => GZIPCompressionLevel, SHUFFLE => 0/1} > new: {NC_FORMAT => PDL::NetCDF::NC_FORMAT_NETCDF4} > > > There is even more functionality in netcdf4, i.e. grouping of variable, which > I never used and which shouldn't be used without good reason according to the > netcdf documentation. They might be included at a later stage. > > > I reorganized the tests, so that I can have tests for netcdf3 and netcdf4 in > different files. I moved the version to 4.01 since I believe, that the 0.x is > unfair for such a mature module (it's 6-7 years in production already), and > to show the netcdf4 support. > > > I managed to compile and test the module successfully against netcdf 3.6.2 > and 4.0.1. > > > I hope you like and use it. Best wishes, > > Heiko > > -- > Dr. Heiko Klein Tel. + 47 22 96 32 58 > Development Section / IT Department Fax. + 47 22 69 63 55 > Norwegian Meteorological Institute http://www.met.no > P.O. Box 43 Blindern 0313 Oslo NORWAY > _______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
