Dear Elin, I had the same problem. I could not install pyhdf via pip. The only way to install pyhdf is downloading its source here (http://pysclint.sourceforge.net/pyhdf/). If your files are in HDF5 format, just run ‘pip install h5py’.
Personally, I recommend HDF4 to netcdf conversion tool (http://hdfeos.org/software/h4cflib.php). This works well with most of NASA’s satellite HDF4 files. After the conversion, you can use netCDF4 library in Python to load data. Please feel free to send me email if you have any questions. Cheers, Kyo On Jul 24, 2014, at 8:51 PM, Mattmann, Chris A (3980) <[email protected]<mailto:[email protected]>> wrote: Dear Elin, Thank you for your question! The links on that guide are a bit old, try this updated link: ftp://ftp.hdfgroup.org/HDF/HDF_Current/src/HDF4.2r4.tar.gz Cheers, Chris ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Chris Mattmann, Ph.D. Chief Architect Instrument Software and Science Data Systems Section (398) NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA Office: 168-519, Mailstop: 168-527 Email: [email protected] WWW: http://sunset.usc.edu/~mattmann/ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Adjunct Associate Professor, Computer Science Department University of Southern California, Los Angeles, CA 90089 USA ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -----Original Message----- From: Chris Mattmann <[email protected]> Date: Friday, June 6, 2014 10:04 AM To: Chris Mattmann <[email protected]> Subject: Problem Accessing HDF Data from Python on Mac OS X Hello, I am trying to follow the step by step instructions for downloading pyhdf (found on page: http://cdx.jpl.nasa.gov/documents/technical-design/accessing-hdf-data-from -python-on-mac-os-x). On step 2 under Installing HDF4 for Python, it has me enter the following into the command line: curl ftp://ftp.hdfgroup.org/HDF/HDF_Current/src/HDF4.2r4.tar.gz | tar xzf - This does not actually download anything, and I can't proceed in the installation. Is there a problem with the ftp address or something? Many thanks for any guidance you can provide! Regards, Elin -- CDX Site Admin You are receiving this mail because Elin McIlhattan [email protected] is sending feedback about the site you administer at http://cdx.jpl.nasa.gov.
