Recipe: Visualize OPeNDAP data using Panoply: Difference between revisions

Pchakrab (talk | contribs)
Created page with "Back to G5NR Data Access Guide. == Problem == By accessing the collection <code>inst01hr_3d_T_Cv</code> via the OPeNDAP server http://opendap.nccs.nasa.gov/dods/OSSE/G5..."
 
Move from http to https
 
(6 intermediate revisions by one other user not shown)
Line 4: Line 4:


By accessing the collection <code>inst01hr_3d_T_Cv</code> via the OPeNDAP server
By accessing the collection <code>inst01hr_3d_T_Cv</code> via the OPeNDAP server
  http://opendap.nccs.nasa.gov/dods/OSSE/G5NR/Ganymed/7km
  https://opendap.nccs.nasa.gov/dods/OSSE/G5NR/Ganymed/7km


we want to read the surface temperature data inside the box bound by latitudes 25<sup>o</sup>N, 50<sup>o</sup>N and longitudes -130<sup>o</sup>W, -65<sup>o</sup>W for 2006/Sep/18, 9z, compute its min/max and plot the data at the surface.
we want to plot the air temperature data at the surface for 2006/Sep/18, 9z using panoply.


== 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
  https://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 access the collection <code>inst01hr_3d_T_Cv</code> from the OPeNDAP server, we click on File -> 'Open Remote Dataset' and enter the url
https://opendap.nccs.nasa.gov:80/dods/OSSE/G5NR/Ganymed/7km/0.5000_deg/inst/inst01hr_3d_T_Cv
 
in the input box and click on 'Load'. This leads to the display
 
[[Image:Panoply_data_dap.png|500px]]
 
Here, we select our variable, <code>t</code>, from the 'Datasets' tab and click on 'Create Plot'. To plot the surface air temperature for 2006-09-18, 9z, we select that date and Altitude 72 from the 'Array(s)' tab and check the box 'Always fit to data' box in the 'Scale' tab resulting in
 
[[Image:Panoply_temperature.png|500px]]


== Discussion ==
== Discussion ==