Accessing Remote HDF Data using Pomegranate

Pomegranate external 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 external.

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.

Download

You can download the latest pomegranate source from here external .

Installation

For installation, you'll need many open source packages including Python. You can find the installation instruction here external.

Usage

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:

http://podaac-w10n.jpl.nasa.gov/w10n/allData/aquarius/L3/mapped/V2/daily/SCI/2014/031/
Figure 1. Type an example Pomegranate URL

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.
http://podaac-w10n.jpl.nasa.gov/w10n/allData/aquarius/L3/mapped/V2/daily/SCI/2014/031/Q2014031.L3m_DAY_SCI_V2.0_SSS_1deg.bz2/l3m_data[0:179:30,0:359:60]?output=json
Figure 5. Slicing Data by Changing URL in Pomegranate Webification

You'll get a small subsetted data in JSON format like Figure 6 below.

See Also

For more information about Pomegranate, please visit http://pomegranate.nasa.gov/.


Last modified: 06/02/2017
About Us | Contact Info | Archive Info | Disclaimer
Sponsored by Subcontract number 4400528183 under Raytheon Contract number NNG15HZ39C, funded by NASA / Maintained by The HDF Group