IDL
is a solution for data visualization and it can visualize a remote
HDF-EOS
file through
OPeNDAP
. This is possible because OPeNDAP provides the OPeNDAP IDL Client. In this example, we assume that you have both IDL software and the OPeNDAP IDL Client installed on your system. The IDL is a commercial software that requires a purchase of license. You can download the OPeNDAP IDL Client from
here for free.
The first step is to create a URL variable. Define an OPeNDAP URL variable that serves an HDF-EOS file. You can download the file in this example here.
Call the OPENDAP_GET function. This function is provided by the OPeNDAP IDL client library. If IDL failed to retrieve the data specified in URL, you'll see an error message failed to retrieve OPeNDAP data. Also, the return value of stat will be 0. You can view the contents of the data by typing help, /str, data.
From the contents, you'll see that OPeNDAP Grid is represented as an IDL STRUCT variable.
Grid as follows.
levels will be used later to generate a contour map.
Now we're ready to draw the dataset defined above. The following code prepares a window with 12 colors and grid map. The CONTOUR command fills the grid map with HDF-EOS data(e.g., data.TOPOGRAPHY.TOPOGRAPHY.TOPOGRAPHY).
As you can see from the Figure 6, the color filled contour can hide the original map grid and continents because the dataset covers the world. Thus, we want to draw the outlines of the continent again. The following codes will add the grid lines and world maps on top of the color-filled contour map.