<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>When you open more than one file, you'll need to address the
variables in subsequent files explicitly, e.g., 'd t.1', 'd t.2',
etc. Try check out</p>
<p><a class="moz-txt-link-freetext" href="http://gradsaddict.blogspot.com/2013/06/tutorial-tips-on-handeling-more-than-1.html">http://gradsaddict.blogspot.com/2013/06/tutorial-tips-on-handeling-more-than-1.html</a></p>
<p><a class="moz-txt-link-freetext" href="https://stackoverflow.com/questions/42464138/opening-multiple-file-in-grads">https://stackoverflow.com/questions/42464138/opening-multiple-file-in-grads</a></p>
<p><a class="moz-txt-link-freetext" href="http://www.jamstec.go.jp/frsgc/research/iprc/nona/GrADS/use-two-files.html">http://www.jamstec.go.jp/frsgc/research/iprc/nona/GrADS/use-two-files.html</a></p>
<p>Jim<br>
</p>
<div class="moz-cite-prefix">On 3/7/19 8:34 AM, Yazeed Alsubhi
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAAgw0v1oHg+y4c7Tcov9ODE_5V22RgZnQuw_7qrw5wqHhUxhkg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div>Hello James,</div>
<div><br>
</div>
<div>I have tried you suggestions and still have problems
with this script. Please see the following script as well
as the figure produced by this script, the figure is 2 by
2 but these plots are the same and the same time series.</div>
<div>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
size="3" face="Calibri" color="#000000">'reinit'</font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
size="3" face="Calibri" color="#000000">rc =
gsfallow("on")</font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
size="3" face="Calibri" color="#000000">nrows=2</font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
size="3" face="Calibri" color="#000000">ncols=2</font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
size="3" face="Calibri" color="#000000">args=nrows%'
'%ncols</font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
size="3" face="Calibri" color="#000000">*'sdfopen
<a href="http://air.2008.nc" target="_blank"
moz-do-not-send="true">air.2008.nc</a>'</font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
size="3" face="Calibri" color="#000000">'set mproj
scaled'</font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
size="3" face="Calibri" color="#000000">panels(args)</font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
size="3" face="Calibri" color="#000000">*p is the
panels number, p=1 means the first panel</font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
size="3" face="Calibri" color="#000000">p = 1</font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
size="3" face="Calibri" color="#000000">i = 1</font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
size="3" face="Calibri" color="#000000">*ptot
indicates the total number of panels (or virtual
pages)</font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
size="3" face="Calibri" color="#000000">ptot = nrows *
ncols</font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
size="3" face="Calibri" color="#000000">while (p <=
ptot)</font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>while (i <=
4)</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
size="3" face="Calibri" color="#000000">*here is the
loop, draw panel one by one</font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
size="3" face="Calibri" color="#000000">*_vpg.p</font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>_vpg.p</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>if ( i = 1 )</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>'sdfopen
C:\Users\yalsubhi\Desktop\EraInterim\cases\Case1\<a
href="http://ggap200806090000.nc"
target="_blank" moz-do-not-send="true">ggap200806090000.nc</a>'</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>else</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>'q time'</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>res=subwrd(result,3)</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>hh=substr(res,1,3)</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>dd=substr(res,4,2)</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>mm=substr(res,6,3)</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>yy=substr(res,9,4)</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>endif</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>if ( i = 2 )</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>'sdfopen
C:\Users\yalsubhi\Desktop\EraInterim\cases\Case1\<a
href="http://ggap200806090600.nc"
target="_blank" moz-do-not-send="true">ggap200806090600.nc</a>'
</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>else</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>'q time'</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>res=subwrd(result,3)</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>hh=substr(res,1,3)</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>dd=substr(res,4,2)</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>mm=substr(res,6,3)</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>yy=substr(res,9,4)
</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>endif</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>if ( i = 3 )</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>'sdfopen
C:\Users\yalsubhi\Desktop\EraInterim\cases\Case1\<a
href="http://ggap200806091200.nc"
target="_blank" moz-do-not-send="true">ggap200806091200.nc</a>'</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>else</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>'q time'</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>res=subwrd(result,3)</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>hh=substr(res,1,3)</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>dd=substr(res,4,2)</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>mm=substr(res,6,3)</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>yy=substr(res,9,4)
</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>endif</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>if ( i = 4 )</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>'sdfopen
C:\Users\yalsubhi\Desktop\EraInterim\cases\Case1\<a
href="http://ggap200806091800.nc"
target="_blank" moz-do-not-send="true">ggap200806091800.nc</a>'
</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>else</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>'q time'</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>res=subwrd(result,3)</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>hh=substr(res,1,3)</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>dd=substr(res,4,2)</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>mm=substr(res,6,3)</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>yy=substr(res,9,4)
</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>endif</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>'set parea 1 9.8
1 7.5'</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>'set grads off'</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>'set mpdset
hires'</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>'set lat 10 45'</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>'set lon -60 65'</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>'set lev 850' </font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>'set gxout
shaded'</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>'set cint 2' </font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>'d t'</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>'run cbar'</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>'set font 0'</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>'set strsiz 0.15
0.15'</font></font></font></p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000">'draw
title ('hh' 'dd'/'mm'/'yy')'</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
size="3" face="Calibri" color="#000000">p = p + 1</font></p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>i =
i + 1</font></font></font></p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000">endwhile</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
size="3" face="Calibri" color="#000000">endwhile</font></p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
face="Calibri"><font size="3"><font color="#000000"><span
style="margin:0px"> </span>'set vpage off'</font></font></font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
size="3" face="Calibri" color="#000000">'set strsiz
0.15'</font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
size="3" face="Calibri" color="#000000">'draw string
5.3 8.3 Air Temperature'</font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
size="3" face="Calibri" color="#000000">'printim
AirTemperature.png x800 y600 white'</font></p>
<p style="margin:0px 0px 10.66px">
</p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
size="3" face="Calibri" color="#000000">'c'</font></p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
size="3" face="Calibri" color="#000000"><br>
</font></p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
size="3" face="Calibri" color="#000000">Thanks,</font></p>
<p style="margin:0px 0px
10.66px;text-align:justify;line-height:normal"><font
size="3" face="Calibri" color="#000000">Yazeed</font></p>
<p style="margin:0px 0px 10.66px">
<br>
</p>
</div>
</div>
</div>
<div
id="m_-8694312034916634210DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top:1px solid #d3d4de">
<tbody>
<tr>
<td style="width:55px;padding-top:13px"><a
href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail"
target="_blank" moz-do-not-send="true"><img
src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png"
alt="" style="width:46px;height:29px"
moz-do-not-send="true" width="46" height="29"></a></td>
<td
style="width:470px;padding-top:12px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Virus-free.
<a
href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail"
style="color:#4453ea" target="_blank"
moz-do-not-send="true">www.avg.com</a> </td>
</tr>
</tbody>
</table>
</div>
<br>
<div class="gmail_quote">
<div class="gmail_attr" dir="ltr">On Wed, Mar 6, 2019 at 7:02
PM Yazeed Alsubhi <<a
href="mailto:yalsubhi@nevada.unr.edu" target="_blank"
moz-do-not-send="true">yalsubhi@nevada.unr.edu</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">
<div dir="ltr">Ok, I'll try that. <br>
<div><br>
</div>
<div>Thanks,</div>
<div>Yazeed</div>
</div>
<br>
<div class="gmail_quote">
<div class="gmail_attr" dir="ltr">On Wed, Mar 6, 2019 at
7:00 PM James T. Potemra <<a
href="mailto:jimp@hawaii.edu" target="_blank"
moz-do-not-send="true">jimp@hawaii.edu</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">
<div bgcolor="#FFFFFF">
<p>If you want to plot all the panels for one time,
then do the same thing for the next time, the "i
loop" should be outside the "p loop". Alternately
if you want all the time plots in each panel, put
the "i loop" within the "p loop". Either way you
want two nested while loops.<br>
</p>
<div
class="m_-8694312034916634210gmail-m_-1221957975258364213gmail-m_9016144884527337235moz-cite-prefix">On
3/6/19 4:46 PM, Yazeed Alsubhi wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi Jim,
<div><br>
</div>
<div>Should I add this new loop in the same loop
for the panel plots (while(p<=ptot)? Thanks
for your help</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Yazeed</div>
</div>
<br>
<div class="gmail_quote">
<div class="gmail_attr" dir="ltr">On Wed, Mar 6,
2019 at 6:40 PM James T. Potemra <<a
href="mailto:jimp@hawaii.edu" target="_blank"
moz-do-not-send="true">jimp@hawaii.edu</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px
0px 0px
0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">
<div bgcolor="#FFFFFF">
<p>Hi Yazeed,</p>
<p>You have two problems. First, you have a
single while loop (while (p <= ptot)),
presumably for the different panels. You
will need another while loop over "i"
(forecast time?).</p>
<p>Second, the file names have 4-character
strings (0000, 0600, 1200, and 1800). Your
variable "i" is an integer, so it will be 0,
6, 12 and 18. In other words, the script
will be looking for files of the form <a
href="http://ggap200806080.nc"
target="_blank" moz-do-not-send="true">ggap200806080.nc</a>
<a href="http://ggap200806086.nc"
target="_blank" moz-do-not-send="true">ggap200806086.nc</a>
<a href="http://ggap2008060812.nc"
target="_blank" moz-do-not-send="true">ggap2008060812.nc</a>
and <a href="http://ggap200806081800.nc"
target="_blank" moz-do-not-send="true">ggap200806081800.nc</a>.
You can either pad this out, or just
explicitly give the file name:</p>
i = 1<br>
while ( i <=4 )<br>
if ( i = 1 ); 'sdfopen
C:\Users\yalsubhi\Desktop
\EraInterim\cases\Case1\<a
href="http://ggap200806080000.nc"
target="_blank" moz-do-not-send="true">ggap200806080000.nc</a>';
endif<br>
if ( i = 2 ); 'sdfopen
C:\Users\yalsubhi\Desktop
\EraInterim\cases\Case1\<a
href="http://ggap200806080600.nc"
target="_blank" moz-do-not-send="true">ggap200806080600.nc</a>';
endif<br>
if ( i = 3 ); 'sdfopen
C:\Users\yalsubhi\Desktop
\EraInterim\cases\Case1\<a
href="http://ggap200806081200.nc"
target="_blank" moz-do-not-send="true">ggap200806081200.nc</a>';
endif<br>
if ( i = 4 ); 'sdfopen
C:\Users\yalsubhi\Desktop
\EraInterim\cases\Case1\<a
href="http://ggap200806081800.nc"
target="_blank" moz-do-not-send="true">ggap200806081800.nc</a>';
endif<br>
i = i + 1<br>
endwhile
<p>or,</p>
i = 1<br>
while ( i <= 18 )<br>
infile = 'ggap200806080'i'<a
href="http://00.nc" target="_blank"
moz-do-not-send="true">00.nc</a>'<br>
if ( i > 9 ); infile = 'ggap20080608'i'<a
href="http://00.nc" target="_blank"
moz-do-not-send="true">00.nc</a>'; endif<br>
'sdfopen C:\Users\yalsubhi\Desktop
\EraInterim\cases\Case1\'infile<br>
i = i + 6<br>
endwhile<br>
<p><br>
</p>
<p>Jim<br>
</p>
<div
class="m_-8694312034916634210gmail-m_-1221957975258364213gmail-m_9016144884527337235gmail-m_1023475974744866841moz-cite-prefix">On
3/6/19 11:14 AM, Yazeed Alsubhi wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<p class="MsoNormal" style="margin:0in 0in
0pt;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt"><span
style="background-position:initial;background-image:initial;font-family:Arial,sans-serif;font-size:12pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial">Hello
James,</span><span></span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt"> </span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt">I am struggling with
my GrADS scripts and I really need
your help. I have tried to draw
multi-panel plots using GrADS and I
got the correct script, as following:</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt">'reinit'</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt">rc = gsfallow("on")</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt">nrows=2</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt">ncols=2</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt">args=nrows%' '%ncols</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt">'sdfopen <a
href="http://air.2008.nc/"
target="_blank"
moz-do-not-send="true">air.2008.nc</a>'</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt">'set mproj scaled'</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt">panels(args)</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt">*p is the panels
number, p=1 means the first panel</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt">p = 1</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt">*ptot indicates the
total number of panels (or virtual
pages)</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt">ptot = nrows * ncols</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt">*here is the loop,
draw panel one by one</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt">while (p <= ptot)</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt">*_vpg.p</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt"> _vpg.p</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt"> 'set parea 1
9.8 1 7.5'</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt"> 'set t 'p</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt"> 'set grads off'</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt"> 'set mpdset
hires'</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt"> 'set lat 10 45'</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt"> 'set lon -60
65'</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt"> 'set lev 850'</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt"> 'set gxout
shaded'</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt"> 'set cint 2' </span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt"> 'd air'</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt"> 'q time'</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt">
res=subwrd(result,3)</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt">
hh=substr(res,1,3)</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt">
dd=substr(res,4,2)</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt">
mm=substr(res,6,3)</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt">
yy=substr(res,9,4)</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt"> 'run cbar'</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt"> 'set font 0'</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt"> 'set strsiz
0.15 0.15'</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt"> 'draw title
('hh' 'dd'/'mm'/'yy')' </span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt">p = p + 1</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt">endwhile</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt"> 'set vpage off'</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt">'set strsiz 0.15'</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt">'draw string 5.3 8.3
Air Temperature'</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt">'printim
AirTemperature.png x800 y600 white'</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt"> </span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt">And the problem is
that I am trying to do this for more
than on files in the same folder. And
I am trying to implement a while loop
that will automatically insert each
file (0000, 0600, 1200, and 1800) and
the names of these files are: <a
href="http://ggap200806080000.nc/"
target="_blank"
moz-do-not-send="true">ggap200806080000.nc</a> <a
href="http://ggap200806080600.nc/"
target="_blank"
moz-do-not-send="true">ggap200806080600.nc</a> <a
href="http://ggap200806081200.nc/"
target="_blank"
moz-do-not-send="true">ggap200806081200.nc</a> and <a
href="http://ggap200806081800.nc/"
target="_blank"
moz-do-not-send="true">ggap200806081800.nc</a></span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt">So I tried the same
code but I added some lines:</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt">'reinit'<br>
rc = gsfallow("on")<br>
nrows=2<br>
ncols=2<br>
args=nrows%' '%ncols</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt">*This is the
direction of these netcdf files:<br>
*'sdfopen C:\Users\yalsubhi\Desktop
\EraInterim\cases\Case1\<a
href="http://ggap200806080000.nc/"
target="_blank"
moz-do-not-send="true">ggap200806080000.nc</a>'<br>
*'sdfopen C:\Users\yalsubhi\Desktop
\EraInterim\cases\Case1\<a
href="http://ggap200806080600.nc/"
target="_blank"
moz-do-not-send="true">ggap200806080600.nc</a>'<br>
*'sdfopen C:\Users\yalsubhi\Desktop
\EraInterim\cases\Case1\<a
href="http://ggap200806081200.nc/"
target="_blank"
moz-do-not-send="true">ggap200806081200.nc</a>'<br>
*'sdfopen C:\Users\yalsubhi\Desktop
\EraInterim\cases\Case1\<a
href="http://ggap200806081800.nc/"
target="_blank"
moz-do-not-send="true">ggap200806081800.nc</a>'</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt">'set mproj scaled'<br>
panels(args)<br>
*p is the panels number, p=1 means the
first panel<br>
p = 1<br>
i = 0000<br>
*ptot indicates the total number of
panels (or virtual pages)<br>
ptot = nrows * ncols<br>
*here is the loop, draw panel one by
one<br>
while (p <= ptot)<br>
*_vpg.p<br>
_vpg.p<br>
'set parea 1 9.8 1 7.5'<br>
'set t 'p<br>
'set grads off'<br>
'set mpdset hires'<br>
'set lat 10 45'<br>
'set lon -60 65'<br>
'set lev 850'<br>
'set gxout shaded'<br>
'set cint 2' <br>
'sdfopen
C:\Users\yalsubhi\Desktop
\EraInterim\cases\Case1\ggap20080608'i'.nc'<br>
'd t'<br>
'q time'<br>
res=subwrd(result,3)<br>
hh=substr(res,1,3)<br>
dd=substr(res,4,2)<br>
mm=substr(res,6,3)<br>
yy=substr(res,9,4)<br>
'run cbar'<br>
'set font 0'<br>
'set strsiz 0.15 0.15'<br>
'draw title ('hh'
'dd'/'mm'/'yy')' <br>
'reinit' <br>
i = i + 0600<br>
p = p + 1<br>
endwhile<br>
'set vpage off'<br>
'set strsiz 0.15'<br>
'draw string 5.3 8.3 Air Temperature'<br>
'printim AirTemperature.png x800 y600
white'</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt"> </span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt">Thanks in advance
for your time and cooperation on this
matter</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt"> </span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt"> </span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt">Thanks,</span></p>
<p class="MsoNormal"
style="background-position:initial;margin:0in
0in
0pt;background-image:initial;line-height:normal;font-family:Calibri,sans-serif;font-size:11pt;background-repeat:initial;background-clip:initial;background-origin:initial;background-size:initial"><span
style="font-family:Arial,sans-serif;font-size:12pt">Yazeed</span></p>
<p class="MsoNormal" style="margin:0in 0in
8pt;line-height:107%;font-family:Calibri,sans-serif;font-size:11pt"> </p>
</div>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
</div>
<div
id="m_-8694312034916634210DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top:1px solid #d3d4de">
<tbody>
<tr>
<td style="width:55px;padding-top:13px"><a
href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail"
target="_blank" moz-do-not-send="true"><img
src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png"
alt="" style="width:46px;height:29px"
moz-do-not-send="true" width="46" height="29"></a></td>
<td
style="width:470px;padding-top:12px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Virus-free.
<a
href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail"
style="color:#4453ea" target="_blank"
moz-do-not-send="true">www.avg.com</a> </td>
</tr>
</tbody>
</table>
</div>
</div>
</blockquote>
</body>
</html>