Pomegranate is a python application that webifies science data files. Supported formats include netcdf, hdf4, hdf5, grib and fits.
It can be installed on web servers as either WSGI or CGI applications to provide webification (w10n) services. To learn more about w10n of science data files, please visit http://w10n.org .
It can also be used as a standalone library or command line application. This greatly simplifies the retrieval of meta and data information from files in supported formats.
You can download the latest pomegranate source from here .
For installation, you'll need many open source packages including Python. You can find the installation instruction here .
Once Pomegranate is properly installed, some datasets in HDF files can be accessed using web browser. We'll use the NASA JPL's demo server for illustration. Please open the following URL in your web browser:
You'll get a list of HDF files served by the Pomegranate as shown in Figure 2 below.
Click the folder icon under Webifiable column. You'll get a tree view like Figure 3 below: Notice that URL now has '/?' after the HDF file name in your web browser.Click the down arrow icon in any of dataset of your interest. For example, if you click the down arrow next to the l3m_data, you will see several new links pops up next to the arrow in two square brackets. You can get JSON output of either attributes by clicking [meta: json] or data by clicking [data: ..., json] link. The following Figure is the data output in JSON.
To slice data, simply add an subscript like [0:179:30,0:359:60] by typing the subscript in the URL text box next to the variable name.You'll get a small subsetted data in JSON format like Figure 6 below.
For more information about Pomegranate, please visit http://pomegranate.nasa.gov/.