HDF-EOS APIs


The HDF-EOS library provides APIs and associated callable routines for all the three main data types supported by HDF-EOS. As mentioned in Volume 1 of the HDF-EOS Library Users Guide, the routines fro these APIs can be broken down into seceral categories:

  1. Access - Initializing, opening, closing and terminating.
  2. Definition - Sets or defines important features such as dimensions.
  3. Input/Output - Reading and writing.
  4. Index Input/Output - Reading and writing information which links data sets in the PT API.
  5. Inquiry - Queries about the data and metadata.
  6. Subsetting - Reads or writes from selected/defined geographical regions.

Complete detail of the various interfaces or APIs and their associated commands is provided in the HDF-EOS Users Guide, but some initial information for each API is provided below. Both the C and the FORTRAN (in parentheses) preface are given for each interface.

The above summaries provided an overview of the various HDF-EOS APIs and some of the most important information needed by an individual researcher and/or non-expert HDF/HDF-EOS user. The user is directed to the HDF-EOS Users Guide, Volume 1: Overview and Example and HDF-EOS Users Guide, Volume 2: Reference Guide for complete documentation on the HDF-EOS APIs and all possible commands and operations. A good source that provides links to these documents is the HDF-EOS Information Resources page.


Previous Main Topic

Next Main Topic

Return to Main Topics

Grid API

The Grid API or data model is most often used to read or write data on an ordered (i.e., latitude vs longitude) grid using an identified map projection selected by the data producer. An example of this might be meteorological output (temperature, as an example) from a global forecast model and represented on a geographic projection.

Similar to the SW API, th Grid API is also made up of several components with the main distinction being that the geolocation information for all points in a grid data set are provided by the definition of all projection parameters and a set of projection equations for the map projection.

The three main components of a Grid data set are:

Projections supported by HDF-EOS include the Geographic, Interrupted Goode's Homolosine, Polar Stereographic, UTM, Space Oblique, Albers Equal Area Conic, Mercator and Lambert Equal Area. Detailed inforamtion on the projections and HDF-EOS projection codes is provided in Ch. 6 of Volume 1 of the HDF-EOS User's Guide.

As mentioned previously, the routines within the GR API (and all HDF-EOS APIs) can be used to access the GR interface and GR data sets, define the data and metadata, read and write the data and metadata, subset the data, and obtain inforamtion on existing GR data sets. A listing of all the possible GR API commands is provided in Volume 1, Ch. 6 and Volume 2 of the HDF-EOS Users Guide. Presented below are just a few of the possible commands with both the C and FORTRAN (in paranthese) versions given:


Examples of how to use many of the GD commands is provided in later sections.

Return to top

 

Swath API

The Swath API or data model is mainly used to put satellite swath data from such instruments platforms as TRMM, Terra (e.g., MODIS) etc. in the form of scans (cross-track or along track ) into HDF-EOS. The data to be read/written in the Swath API has several components that are taken care of by differnt commands:

As mentioned previously, the routines within the SW API (and all HDF-EOS APIs) can be used to access the SW interface and SW data sets, define the data and metadata, read and write the data and metadata, subset the data, and obtain inforamtion on existing SW data sets. A listing of all the possible SW API commands is provided in Volume 1, Ch. 5 and Volume 2 of the HDF-EOS Users Guide. Presented below are just a few of the possible commands with both the C and FORTRAN (in paranthese) versions given:


Examples of how to use many of the SW commands is provided in later sections.

Return to top

 

Point API

The Point API or Point data model is most commonly used for data or data records with no ordered spatial or temporal organization. A simple example of this would be meteorological observations (i.e., temperature, winds, etc.) from weather stations across the United States or ship/buoy reports over the oceans. In the example below for Alaskan surfaceweather reports, the scientific data would be the value for the wind speed, while the geolocation data might be latitude or longitude.


Station Latitude Longitude Wind Speed (m/s)
Barrow 71.18 156.47 10.2
Juneau 58.22 134.35 7.3
Nome 64.30 165.26 8.3
Seward 60.07 149.27 5.5

As mentioned previously, the routines within the PT API (and all HDF-EOS APIs) can be used to access the PT interface and PT data sets, define the data and metadata, read and write the data and metadata, subset the data, and obtain inforamtion on existing PT data sets. A listing of all the possible PT API commands is provided in Volume 1, Ch. 4 and Volume 2 of the HDF-EOS Users Guide. Presented below are just a few of the possible commands with both the C and FORTRAN (in paranthese) versions given:


Return to top