Recipe: Visualize OPeNDAP data using Panoply: Difference between revisions

From GEOS-5
Jump to navigation Jump to search
Pchakrab (talk | contribs)
Move from http to https
 
(4 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 plot the air temperature data at the surface for 2006/Sep/18, 9z using panoply.
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 ==

Latest revision as of 10:25, 9 April 2019

Back to G5NR Data Access Guide.

Problem

By accessing the collection inst01hr_3d_T_Cv via the OPeNDAP server

https://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

https://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 access the collection inst01hr_3d_T_Cv 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

Here, we select our variable, t, 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

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