Go Back   HDF-EOS Forums > Library > Others

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-02-2010, 11:39 AM
moroney moroney is offline
Junior Member
 
Join Date: Feb 2003
Posts: 5
Question Python and HDF-EOS

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
Reply With Quote
  #2  
Old 02-02-2010, 02:01 PM
kyang kyang is offline
Member
 
Join Date: Nov 2009
Posts: 37
Default

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
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 01:20 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
About Us | Contact Info | Archive Info | Disclaimer
Sponsored by NASA Cooperative Agreement Grant Number NNX08AO77A / Maintained by The HDF Group