Recipe: Visualize OPeNDAP data using Panoply: Difference between revisions

From GEOS-5
Jump to navigation Jump to search
Pchakrab (talk | contribs)
Pchakrab (talk | contribs)
Line 9: Line 9:


== Solution ==
== Solution ==
IDL version 8.2 and later has native openDAP support. The following code has been tested with IDL version 8.3.
Panoply (v 4.0.5) is a cross-platform application that plots geo-gridded and other arrays from NetCDF, HDF, GRIB, and other datasets. For more information, please see


The metadata for the collection <code>inst01hr_3d_T_Cv</code> is available at
  http://www.giss.nasa.gov/tools/panoply/
  http://opendap.nccs.nasa.gov/dods/OSSE/G5NR/Ganymed/7km/0.5000_deg/inst/inst01hr_3d_T_Cv.info


==== Code ====
Once <code>panoply</code> is installed, it can be launched from the command line via
This code accesses the collection <code>inst01hr_3d_T_Cv</code> from the OPeNDAP server and reads a subset of the temperature data (all levels inside the bounding box specified above) and computes its max/min. It then plots the data at the surface (level=72).
> panoply.sh
 
assuming that the shell script <code>panoply.sh</code> is in the user's path.
 
Once launched, the following window is presented
 
[[Image:Panoply_main.png|500px]]
 
To load the downloaded data file click on File -> Open... and from the file browser we choose the file. Opening the file leads to the display
 
[[Image:Panoply_data.png|500px]]
 
Here, we select our variable, <code>T</code>, from the 'Datasets' tab and click on 'Create Plot'. In the new window that appears, we select the first option 'Create geogridded Longitude-Latitude plot' and click on 'Create'. To plot the air temperature at the surface (level=72), in the 'Array(s)' Tab we set the 'Vertical level:' to 72 and check the 'Always fit to data' box in the 'Scale' tab resulting in
 
[[Image:Panoply_temperature.png|500px]]


== Discussion ==
== Discussion ==

Revision as of 13:21, 20 November 2014

Back to G5NR Data Access Guide.

Problem

By accessing the collection inst01hr_3d_T_Cv via the OPeNDAP server

http://opendap.nccs.nasa.gov/dods/OSSE/G5NR/Ganymed/7km

we want to plot the air temperature data at the surface for 2006/Sep/18, 9z using panoply.

Solution

Panoply (v 4.0.5) is a cross-platform application that plots geo-gridded and other arrays from NetCDF, HDF, GRIB, and other datasets. For more information, please see

http://www.giss.nasa.gov/tools/panoply/

Once panoply is installed, it can be launched from the command line via

> panoply.sh

assuming that the shell script panoply.sh is in the user's path.

Once launched, the following window is presented

To load the downloaded data file click on File -> Open... and from the file browser we choose the file. Opening the file leads to the display

Here, we select our variable, T, from the 'Datasets' tab and click on 'Create Plot'. In the new window that appears, we select the first option 'Create geogridded Longitude-Latitude plot' and click on 'Create'. To plot the air temperature at the surface (level=72), in the 'Array(s)' Tab we set the 'Vertical level:' to 72 and check the 'Always fit to data' box in the 'Scale' tab resulting in

Discussion

See Also

  1. File Spec: File:G5NR-Ganymed-7km FileSpec-ON6-V1.0.pdf
  2. Recipe: Fortran program to read data from downloaded file

No Warranty

Copyright