Start > All Programs > OpenGrADS 2.0 > Grads Prompt

Similar documents
Each of the sections has an explanation followed with the option to select the parameters.

GrADS for Beginners. Laura Mariotti

Dynamics of the Atmosphere GEMPAK Supplementary Handout

ITACS : Interactive Tool for Analysis of the Climate System

Introduction to Unix, DTDM, GrADS. AOSC115/

McIDAS-V Tutorial Displaying Gridded Data updated January 2016 (software version 1.5)

McIDAS-V Tutorial Displaying Gridded Data updated June 2015 (software version 1.5)

SES 123 Global and Regional Energy Lab Worksheet

SES 123 Global and Regional Energy Lab Procedures

PyNGL & PyNIO Geoscience Visualization & Data IO Modules

ECMWF New Users Metview Tutorial

Distributed rainfall runoff model: 1K DHM event. Demonstration and Project

Lighting: FlucsDL (daylighting)

Tutorial 01 Quick Start Tutorial

Desktop Studio: Charts. Version: 7.3

33 Exploring Report Data using Drill Mode

TCL Interface to GrADS - OpenGrads Wiki

COMPOSER User Manual

Configuring Ad hoc Reporting. Version: 16.0

Desktop Studio: Charts

METIER Course n februray Introduction to ArcView 3

How to use the open-access scanners 1. Basic instructions (pg 2) 2. How to scan a document and perform OCR (pg 3 7) 3. How to scan a document and

1 An Introduction to GrADS Software

Acquiring and Processing NREL Wind Prospector Data. Steven Wallace, Old Saw Consulting, 27 Sep 2016

Visualization with ParaView

Open a new Excel workbook and look for the Standard Toolbar.

Prerequisites: This tutorial assumes that you are familiar with the menu structure in FLUENT, and that you have solved Tutorial 1.

You will create some icons yourself, but some are supplied for you. If you are at ECMWF then you can copy the icons from the command line like this:

ISF Watchkeeper 3 Getting Started Users Guide

ECDL Module 6 REFERENCE MANUAL

ENVI Tutorial: Interactive Display Functions

Doc #: IDI06-11F Rev: 1.3 Issued: 22/02/18. Well Seeker PRO How To Guide Rev 1.3. Page 1 of 26

The viewer makes it easy to view and collaborate on virtually any file, including Microsoft Office documents, PDFs, CAD drawings, and image files.

NEVADA CLIMATE CHANGE PORTAL WORKSHOP

Natural Light in Design: IAP 2009

Microsoft Word 2007 on Windows

Full Search Map Tab. This map is the result of selecting the Map tab within Full Search.

This guide will show you how to create a basic multi-media PowerPoint presentation containing text, graphics, charts, and audio/video elements.

Basic Tasks in ArcGIS 10.3.x

All textures produced with Texture Maker. Not Applicable. Beginner.

A Step-by-step guide to creating a Professional PowerPoint Presentation

Getting Started With the Cisco PAM Desktop Software

EcoGEnIE: A practical course in global ocean ecosystem modelling

JASCO CANVAS PROGRAM OPERATION MANUAL

Microsoft Office Access Learn how to use the Query window in Design view. Tutorial 3b Querying a Database

Week 5 Creating a Calendar. About Tables. Making a Calendar From a Table Template. Week 5 Word 2010

EnSight 10 Basic Training Exercises

Appendix B: Creating and Analyzing a Simple Model in Abaqus/CAE

This user guide covers select features of the desktop site. These include:

Chapter 2 Surfer Tutorial

AEMLog Users Guide. Version 1.01

FlucsDL User Guide IES Virtual Environment 6.4. Lighting

GEBCO Digital Atlas Software Interface Users Guide

SyncFirst Standard. Quick Start Guide User Guide Step-By-Step Guide

Ocean Data View (ODV) Manual V1.0

HBS Training - IT Solutions. PlanWeb. Intermediate

Exercise 1: Introduction to MapInfo

SaVi - satellite constellation visualization INTRODUCTION AND INSTRUCTIONS FOR USE

Metview 4 ECMWF s latest generation meteorological workstation

Touring the Universe through Binoculars Atlas Help File

Excel Core Certification

Terrain Modeling with ArcView GIS from ArcUser magazine

Good Practice Guide No 8. An Introduction to Spreadsheets for Finance

SunCast - User Guide. IES Virtual Environment 2013

ENVI Classic Tutorial: Interactive Display Functions 2

Advanced GIS Using GRASS to create SVF and LRM

Areacomp 2010 Land Area Calculating Converting and Drawing Software For Windows operating systems up to and including Vista and Windows 7

Quick Start: GeoDAS-LT with Single Beam Echo Sounder

GeoTide Predictor User Guide

MLEP Intermediate GPS Workshop Exercise Two Using Maps

Getting Started with DADiSP

Metview 4 ECMWF s latest generation meteorological workstation

Introduction to Fitting ASCII Data with Errors: Single Component Source Models

DragNet (Fixed WiMAX) d Manual version 1.1

Distributed flow routing model: 1K FRM event. Demonstration and Project

HBS Training - IT Solutions. PlanWeb. Introduction

3 Selecting the standard map and area of interest

AOS 452 Lab 9 Handout Automated Plot Generation

+ Make it from the satellite images in sale, (Easier & Faster, but not always available) (It does cost much. An astronomical number!

Introduction to GIS 2011

The American University in Cairo. Academic Computing Services. Excel prepared by. Maha Amer

Getting Started With VERIS 6.0

PROFESSIONAL TUTORIAL. Trinity Innovations 2010 All Rights Reserved.

Intro to GMT Part 1. Beth Meyers Matt Herman

ViewONE User Manual !"##$$$

GeoGebra 4. Calculus - Differentiation

Introduction to GMT (Part 1)

Overview: Printing MFworks Documents

IT Services Financial Services. IT Services Financial Services.

ClipArt and Image Files

Tutorial 1: Standard usage

Getting Started. What is SAS/SPECTRAVIEW Software? CHAPTER 1

Section 8. 8 Format Editor

Tutorial 3 Sets, Planes and Queries

Exercise (3.1) Question 1: How will you describe the position of a table lamp on your study table to another person?

N2KExtractor. Maretron Data Extraction Software User s Manual

Ariel Dynamics, Inc. TRIM MODULE. Revision 1.0. Ariel Dynamics, Inc. C3D TRANSFORM MODULE

Geology Interpretation Project Big Injun Sand & Trenton-Black River plays, Central Appalachian Basin, WV

Interpolation. Computer User Training Course Paul Dando. User Support. ECMWF 25 February 2016

Contents. Table of Contents. Table of Contents... iii Preface... xvii. Getting Started iii

Transcription:

1. GrADS TUTORIAL This document presents a brief tutorial for Brian Doty's Grid Analysis and Display System (GrADS). The following sample session will give you a feeling for how to use the basic capabilities of GrADS. This sample session takes about 30 minutes to run through. 1.1 Starting and quitting GrADS To start up GrADS, click on: Start > All Programs > OpenGrADS 2.0 > Grads Prompt A (black) command window (see figure below) appears. After the prompt: Landscape mode? ( n for portrait): Type: yes (or y) At this point a second (black) graphics output window is opened on your monitor. You will be entering GrADS commands from the command window and the graphics output will appear in the graphics window. Note: on some computers it may take a while before anything happens after you issued the y(es) command, just have patience! The command window usually needs some relocation (click and drag the frame). If you really wish, you may also do some resizing of the window, but after this operation it may take quite a while before the prompt will be visible again! In the window you should now see a prompt: ga->. You will be entering GrADS commands at this prompt and see the results appear in the black graphics window. To leave GrADS at any time enter: 1

quit The next command you will enter is one of the following: sdfopen d:/atd/month/month1990.nc (if you are using the January 1990 data) sdfopen d:/atd/month/month2002.nc (if you are using the October 2002 data) sdfopen d:/atd/month/month2007.nc (if you are using the January 2007 data) You may want to see what sort of data is actually stored in this file, so enter: q file q is short for query. The data file contains monthly mean values for 1990, 2002 or 2007 of a limited number of variables. One of the available variables is called air, for air temperature. We can display this variable by entering: d air d is short for display. You will note that the graphics output is displayed in the graphics window. If you want to the display before typing the display command, enter: By default, GrADS will display an X, Y plot at the first time and at the lowest level in the data set. 1.2 Changing GrADS environment settings Now you will enter commands to alter the dimension environment. The display command (and implicitly, the access, operation, and output of the data) will do things with respect to the current dimension environment. You control the dimension environment with the set command: c set lon -90 set lat 40 set lev 500 set t 1 (s the display) (sets longitude to 90 degrees West; positive longitude for deg. East) (sets latitude to 40 degrees North; negative latitude for deg. South) (sets level to 500 mb = 50 kpa) (sets time to first time step) (displays the variable 'hgt i.e. geopotential height) In the above sequence of commands, we have set all four GrADS dimensions to a single value. When we set a dimension to a single value, we say that dimension is "fixed". Since all the dimensions are fixed, when we display a variable we get a single value, in this case the value at the location 90W, 40N, 500mb, and the 1st time in the data set. If we now enter: set lon -90 90 (X is now a varying dimension) We have set the X dimension, or longitude, to vary. We have done this by entering two values on the set command. We now have one varying dimension (the other dimensions are still fixed), and when we display a variable we get a line graph, in this case a graph of 500mb Heights at 40N. 2

Now enter: set lat 0 90 We now have two varying dimensions, so by default we get a contour plot. If we have 3 varying dimensions: c set t 1 5 we get an animation sequence, in this case through time. Now enter: set lon -90 set lat -90 90 set lev 1000 100 set t 1 d air d uwnd In this case we have set the Y (latitude) and Z (level) dimensions to vary, so we get a vertical cross section. We have also displayed two variables, which simply overlay each other. You may display as many items as you desire overlaid before you enter the command. Another example, in this case with X and T varying (Hovmöller plot): c set lon -90 90 set lat 40 set lev 500 set t 1 5 1.3 Operations on the data Now that you know how to select the portion of the data set to view, we will move on to the topic of operations on the data. First, set the dimension environment to a Z-Y varying one: set lon -180 0 set lat 0 90 set lev 500 set t 1 Now let s say that we want to see the temperature in Kelvin instead of degrees Celcius. We can do the conversion by entering: display air+273.16 3

Any expression may be entered that involves the standard operators of +, -, *, and /, and which involves operands which may be constants, variables, or functions. An example involving functions: d sqrt(uwnd*uwnd+vwnd*vwnd) to calculate the magnitude of the wind. A function is provided to do this calculation directly: d mag(uwnd,vwnd) Another built-in function is the averaging function: d ave(hgt,t=1,t=5) In this case we calculate the mean over 5 months. We can also remove the mean from the current field: - ave(hgt,t=1,t=5) We can also take means over longitude to remove the zonal mean: -ave(hgt,x=1,x=144) We can also perform time differencing: (t=2)-hgt(t=1) This computes the change between the two fields over 1 month. We could have also done this calculation using an offset from the current time: (t+1) - hgt The complete specification of a variable name is: name.file(dim + - = value,...) If we had two files open, perhaps one with model output, the other with analyses, we could take the difference between the two fields by entering: display hgt.2 - hgt.1 Another built-in function calculates horizontal relative vorticity via finite differencing: d hcurl(uwnd,vwnd) 1.4 Controlling GrADS graphics Now we will move on to the topic of controlling the graphics output. So far, we have allowed GrADS to choose a default contour interval. We can override this by: 4

set cint 30 We can also control the contour color by: set ccolor 3 We can select alternate ways of displaying the data: set gxout shaded d hcurl(uwnd,vwnd) This will not display interval values. To obtain a color scale use: run cbar.gs We can apply a cubic smoother by entering: set csmooth on d hcurl(uwnd,vwnd) We can overlay different graphics types: set gxout contour set ccolor 0 set cint 30 and we can annotate: draw title 500mb Heights and Vorticity We can view wind vectors: set gxout vector d uwnd;vwnd Here we are displaying two expressions, the first for the U component of the vector; the 2nd the V component of the vector. We can also colorize the vectors by specifying a 3rd field: or maybe: d uwnd;vwnd;air d uwnd;vwnd;hcurl(uwnd,vwnd) You may display pseudo vectors by displaying any field you want: 5

d mag(uwnd,vwnd) ; air Here the U component is the wind speed; the V component is temperature. We can also view streamlines (and colorize them): set gxout stream d uwnd;vwnd;hcurl(uwnd,vwnd) Or we can display actual grid point values: set gxout grid d uwnd We may wish to alter the map background resolution: set lon -110-70 set lat 30 45 set mpdset hires set digsize 0.2 set dignum 1 d uwnd To alter the projection: set lon -140-40 set lat 15 80 set mpvals -120-75 25 65 set mproj nps set gxout contour set cint 30 In this case, we have told grads to access and operate on data from longitude 140W to 40W, and latitude 15N to 80N. But we have told it to display a polar stereographic plot that contains the region bounded by 120W to 75W and 25N to 65N. The extra plotting area is clipped by the map projection routine. 1.5 Producing hardcopy output At this point we may wish to produce output for printing or incorporating graphics in a text file. GrADS is able to produce output files in two different ways. Simple output When you have a graphic displayed that you want to print, enter the command printim d:/filename.gif gif white This will produce a gif-file with black and white colours reversed (this is the best option for printing). Choosing black instead of white will produce an image that looks like what you have on screen (i.e. with a black background, requires much toner!!). Advanced output 6

If you image contains colours that you want to transform into shades of grey, then use the following procedure. Produce a file with the extension.gmf, which stands for GrADS Meta File. Do this by entering the command enable print d:/filename.gmf This enables the print command, and directs print command output to the file given. Any existing contents of this file will be lost (i.e. it will be overwritten). When you have a graphic displayed that you want to print, enter the command print This will copy the vector instructions used to create the current display into the output file in a GrADS metacode format. You must close the output file either by quitting GrADS (quit command) or the reinit command or by entering: disable print At this point a.gmf-file has been produced and is available in the d:/ directory. The PC version of GrADS contains a viewer for these file types. Double clicking the selected.gmf-file opens this file in the GrADS metafile viewer. The viewer shows the selected file with black and white colures reversed. Now the coloured graphic can be turned into a grey graphic by clicking the appropriate icon in the toolbar at the top. Next, then result can (1) be printed directly from the viewer or (2) be saved as a.wmf-file (a Windows meta file). Windows meta files can be read by most graphical packages and can also be inserted directly in most word processors (e.g. Microsoft Word). GrADS also provides utilities which create postscript files from.gmf-files. These utilities will not be discussed here. 1.6 More GrADS capabilities This concludes the sample session. At this point, you may wish to examine the data set further, or you may want to go through the GrADS documentation and try out the other options described. The GrADS documentation can be found on your computer in the form of a number of html-files describing all possibilities of this visualization tool. One of the most important possibilities not described in this tutorial is the GrADS scripting language, which is of great help in reducing the amount of tedious typing of commands. See the module for reference and exercises. 7