Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

netCDF4 snapshot and HDF4 support #23

Closed
dopplershift opened this issue Feb 26, 2014 · 1 comment
Closed

netCDF4 snapshot and HDF4 support #23

dopplershift opened this issue Feb 26, 2014 · 1 comment

Comments

@dopplershift
Copy link
Member

From denis.na...@gmail.com on September 11, 2009 14:38:24

Thought that this could be useful information.
I am pretty happy about it!

Compile netcdf-4.1-beta2-snapshot2009081900 with HDF4.

./configure --with-hdf5=/software/supports/ --enable-netcdf-4
--disable-f90 -enable-hdf4 --enable-hdf4-file-tests --enable-c-only
--with-hdf4=/software/supports/

Change setup.py to add some libraries and that's it!!!!!

--- setup.py 2009-08-18 14:52:22.000000000 -0400
+++ setupHDF4.py 2009-09-11 15:52:13.844746239 -0400
@@ -80,6 +80,14 @@
lib_dirs.append(os.path.join(szip_dir,'lib'))
inc_dirs.append(os.path.join(szip_dir,'include'))
libs.append('sz')
+# add hdf4 to link if desired.
+hdf4_dir = os.environ.get('HDF4_DIR')
+if hdf4_dir is not None:

  • lib_dirs.append(os.path.join(hdf4_dir,'lib'))
  • inc_dirs.append(os.path.join(hdf4_dir,'include'))
  • libs.append('mfhdf')
  • libs.append('df')
  • libs.append('jpeg')
    extensions =
    [Extension("netCDF4",["netCDF4.c"],libraries=libs,library_dirs=lib_dirs,include_dirs=inc_dirs,runtime_library_dirs=lib_dirs)]

Denis

Original issue: http://code.google.com/p/netcdf4-python/issues/detail?id=23

@dopplershift
Copy link
Member Author

From whitaker.jeffrey@gmail.com on February 25, 2014 18:04:09

Status: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant