|
|
|
#1
|
|||
|
|||
|
I need the ability write HDF-EOS files from a Python code and am wondering
what the best way to go about this is. Does anybody know of any work that has been done in creating a Python interface to HDF-EOS? I 'm thinking of writing my own wrappers around the C HDF-EOS routines using Swig or something similar, but I'd be happy to hear if somebody has already done this work. What would be the recommended way of accessing the HDF-EOS library from Python? Thanks, Catherine
__________________
Catherine Moroney Jet Propulsion Laboratory MailStop 169-315 4800 Oak Grove Drive Pasadena, CA 91109-8099 ph: (818) 393-3392 fax: (818) 393-4802 email: Catherine.M.Moroney@jpl.nasa.gov |
|
#2
|
|||
|
|||
|
Hi Catherine,
As far as I know, there are no HDF-EOS5 Python Interfaces. There are a h5py python package for pure HDF5. If you want to add python interfaces for HDF-EOS5, using a swig may be a good approach. We did some investigation to use swig to generate HDF5 python interface more than 1 year ago and found the some HDF5 macros are too complicated for SWIG to handle. Things like: #define H5F_ACC_RDWR \ (H5CHECK 0x0001u) /* H5CHECK will be replaced by H5check(), */ But I think HDF-EOS5 is much easier than HDF5 so it should be straightforward for SWIG. Kent |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|