; This example code illustrates how to access and visualize GES DISC ; AIRS Grid HDF-EOS2 file in IDL via OPeNDAP. ; ; If you have any questions, suggestions, comments on this example, ; please use the HDF-EOS Forum (http://hdfeos.org/forums). ; ; Tested under: IDL 8.0 & idl-client-3.6.1 & ocapi-1.4.3 & curl-7.14.0 ; Last updated: 2012-04-25 ; Open remote file. url = 'http://eosdap.hdfgroup.uiuc.edu:8080/opendap/data/NASAFILES/hdf4/AIRS.2008.10.27.L3.RetStd001.v5.2.2.0.G08303124144.hdf' stat = OPENDAP_GET(url, data, mode='data') PRINT, stat ; Print variable names available from the remote file. HELP, /str, data dataset = data.TOPOGRAPHYU274.TOPOGRAPHYU274 lat = data.LATITUDEU271.LATITUDEU271 lon = data.LONGITUDEU272.LONGITUDEU272 levels = 12 DEVICE, DECOMPOSED=0 LOADCT, 33, NCOLORS=12, BOTTOM=3 WINDOW, 0, TITLE='AIRS.2008.10.27.L3 Topography', XSIZE=600, YSIZE=400 MAP_SET, /GRID, /CONTINENT CONTOUR, dataset, lon, lat, /OVERPLOT, /FILL, C_COLORS=Indgen(levels)+3, BACKGROUND=1, NLEVELS=levels MAP_GRID, /LABEL, COLOR=255 MAP_CONTINENTS, COLOR=255