<html><body><div style="color:#000; background-color:#fff, font-family:garamond, new york, times, serif;font-size:14pt"><span>Hi Sujata, <br><br>I have not been able to mask-out or blank a particular boundary (country or state) so that the contour or&nbsp; shading does not spill out of the boundary country boundary. <br>I had earlier&nbsp; posted this query to Grads Users forum but did&nbsp; not get a response.&nbsp; I hope this time there will be a response from the Grads Gurus</span><span>.<br class="yui-cursor"></span><div>&nbsp;</div><div id="RTEContent"><div><div><b><em>===================================================</em></b></div><div><b><em><font color="#007f40" face="lucida console, sans-serif">ZABLONE OWITI</font><font face="garamond, new york, times, serif"></font></em></b></div><br></div></div><div style="font-family: inherit; font-size: 14pt;"><br><div style="font-family: inherit; font-size: 12pt;"><font face="Arial" size="2"><div
 style="border: 1px solid rgb(204, 204, 204); line-height: 0pt; font-size: 0pt; margin: 5px 0px; padding: 0pt;" readonly="true" class="hr" contenteditable="false"></div><b><span style="font-weight: bold;">From:</span></b> Sujata Pattanayak &lt;sujata05@gmail.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> Zablone Owiti &lt;zablonowiti@yahoo.com&gt;<br><b><span style="font-weight: bold;">Cc:</span></b> <br><b><span style="font-weight: bold;">Sent:</span></b> Monday, 7 March 2011 8:22 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [gradsusr] [BULK] Re: opening text file data<br></font><br> <div id="yiv2147304650">Hi Zablone,<br>&nbsp;&nbsp;&nbsp; I am attaching my model domain. I want to plot certain model variables in a particular state (i.e ORISSA) as mentioned in the plot. Can I plot on a particular state (like Orissa) and mask the other area.<br>
<br>regards,<br>Sujata<br><br><div class="yiv2147304650gmail_quote">On Mon, Mar 7, 2011 at 5:14 PM, Sujata Pattanayak <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:sujata05@gmail.com" target="_blank" href="mailto:sujata05@gmail.com">sujata05@gmail.com</a>&gt;</span> wrote:<br><blockquote class="yiv2147304650gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Zablone,<br>&nbsp;&nbsp;&nbsp; Thank you very much for your kind help.<br><br>Regards,<br><font color="#888888">Sujata</font><div><div></div><div class="yiv2147304650h5"><br><br><div class="yiv2147304650gmail_quote">On Mon, Mar 7, 2011 at 4:32 PM, Zablone Owiti <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:zablonowiti@yahoo.com" target="_blank" href="mailto:zablonowiti@yahoo.com">zablonowiti@yahoo.com</a>&gt;</span> wrote:<br>

<blockquote class="yiv2147304650gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div style="color: rgb(0, 0, 0); font-size: 14pt;"><div><span>Hi Sujata,</span></div><div style="color: rgb(0, 0, 0); font-size: 18.6667px; font-family: inherit; background-color: transparent; font-style: normal;">

<br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 18.6667px; font-family: inherit; background-color: transparent; font-style: normal;"><span>You can use the shapefiles (admin98) in Grads to generate State boundaries after you display something.</span></div>

<div style="color: rgb(0, 0, 0); font-size: 18.6667px; font-family: inherit; background-color: transparent; font-style: normal;"><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 18.6667px; font-family: inherit; background-color: transparent; font-style: normal;">

<span>The command is:</span></div><div style="color: rgb(0, 0, 0); font-size: 18.6667px; font-family: inherit; background-color: transparent; font-style: normal;"><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 18.6667px; font-family: inherit; background-color: transparent; font-style: normal;">

<span>&gt; draw shp admin98<br></span></div><div>&nbsp;This command is available with Grads V. 2.0.a8 or later. You can get more details here: <a rel="nofollow" target="_blank" href="http://opengrads.org/doc/udxt/shape/shape.html">http://opengrads.org/doc/udxt/shape/shape.html</a><br>

<br>Hope this will help you<br><br><br></div><div><div><div><b><i>===================================================</i></b></div><div><b><i><font color="#007f40" face="lucida console, sans-serif">ZABLONE OWITI<br></font><font face="garamond, new york, times, serif"><div>

GRADUATE STUDENT<br>Nanjing University of Information, Science and Technology<br></div>College of Atmospheric Science<div><br>Add: 219 Ning Liu Rd, Nanjing,
 Jiangsu, 21004, P.R. China<br></div></font></i></b><div><font color="#333333" face="garamond, new york, times, serif">Tel: +86-25-58731402<br>Fax: +86-25-58731456</font></div></div><div><div><b><i><font face="garamond, new york, times, serif">Mob. 15077895632</font></i></b></div>

<div><b><i>Website: <a rel="nofollow" target="_blank" href="http://www.nuist.edu.cn/">www.nuist.edu.cn</a><br></i></b><i><b>====================================================<br></b><span style="font-style: italic; font-family: inherit;"><div class="yiv2147304650MsoNormal">

<i><span style="color: rgb(227, 108, 10); font-size: 12pt;">"The real art of conversation is not only to say the right thing at the right time, but also to leave unsaid the wrong thing at the tempting moment."</span></i><i><span style="color: rgb(227, 108, 10); font-size: 12pt;"></span></i></div>

<div class="yiv2147304650MsoNormal">&nbsp;</div></span></i><br></div></div></div></div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div style="font-family: inherit; font-size: 14pt;">

<div style="font-family: inherit; font-size: 12pt;"><font face="Arial" size="2"><div style="border: 1px solid rgb(204, 204, 204); line-height: 0pt; font-size: 0pt; margin: 5px 0px; padding: 0pt;" readonly="true" class="hr" contenteditable="false"></div><b><span style="font-weight: bold;">From:</span></b> Sujata Pattanayak &lt;<a rel="nofollow" ymailto="mailto:sujata05@gmail.com" target="_blank" href="mailto:sujata05@gmail.com">sujata05@gmail.com</a>&gt;<br>

<b><span style="font-weight: bold;">To:</span></b> Zablone Owiti &lt;<a rel="nofollow" ymailto="mailto:zablonowiti@yahoo.com" target="_blank" href="mailto:zablonowiti@yahoo.com">zablonowiti@yahoo.com</a>&gt;; GrADS Users Forum &lt;<a rel="nofollow" ymailto="mailto:gradsusr@gradsusr.org" target="_blank" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>&gt;<br>

<b><span style="font-weight: bold;">Sent:</span></b> Monday, 7 March 2011 1:13 PM<div><div></div><div><br><b><span style="font-weight: bold;">Subject:</span></b> Re: [gradsusr] [BULK] Re: opening text file data<br>
</div></div></font><div><div></div><div><br> <div>Hi Zablone,<br>&nbsp;&nbsp;&nbsp; How do you get the state boundaries with GrADS? When I am plotting through grads, it just
 display the country boundary.<br>Can you please help me in this regard??<br><br>Regards,<br>Sujata<br><br><div>
On Wed, Feb 9, 2011 at 10:39 AM, Zablone Owiti <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:zablonowiti@yahoo.com" target="_blank" href="mailto:zablonowiti@yahoo.com">zablonowiti@yahoo.com</a>&gt;</span> wrote:<br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


<div><div style="color: rgb(0, 0, 0); font-size: 14pt;">Dear Ramaphane, <br>As Muhammad has indicated, the script runs. BUT your Objective is to plot the station Locations on the map, with station names. If that is the <br>


case, you need to open&nbsp; a file (eg. open model.ctl) to set the environment (<span style="font-weight: bold;">so that you don't get the error massage of No scaling environment)</span> and display a variable. The trick I normally use so that I get a blank map is to set cmin a value higher than the maximum value of the variable (<span style="font-weight: bold;">there could be a better way of doing this, I hope somebody will point it out</span>). For example I set cmin 10 before diplaying pr variable in model.ctl.<br>


You also need to zoom in your domain using set lat and set lon. <br>See attached map(city.png) I have done with the script.<br>&nbsp;Hope this will help.<br><span></span><div>&nbsp;</div><div><div><div><b><i>===================================================</i></b></div>


<div><b><i><font color="#007f40" face="lucida console, sans-serif">ZABLONE OWITI<br></font><font face="garamond, new york, times, serif">GRADUATE STUDENT<br>Nanjing University of Information, Science and Technology<br>College of International Education<br>


Add: 219 Ning Liu Rd, Nanjing, Jiangsu, 21004, P.R. China<br></font></i></b><font color="#333333" face="garamond, new york, times, serif">Tel: +86-25-58731402<br>Fax: +86-25-58731456</font></div><div><b><i><font face="garamond, new york, times, serif">Mob. 15077895632</font></i></b></div>


<div><b><i>Website: <a rel="nofollow" target="_blank" href="http://www.nuist.edu.cn/">www.nuist.edu.cn</a><br></i></b><i><b>====================================================<br></b><span style="font-style: italic; font-family: inherit;"><div>


<i><span style="color: rgb(227, 108, 10); font-size: 12pt;">"The real art of conversation is not only to say the right thing at the right time, but also to leave unsaid the wrong thing at the tempting moment."</span></i><i><span style="color: rgb(227, 108, 10); font-size: 12pt;"></span></i></div>


<div>&nbsp;</div></span></i><br></div></div></div><div style="font-family: inherit; font-size: 14pt;"><br><div style="font-family: inherit; font-size: 12pt;"><font face="Arial" size="2"><div style="border: 1px solid rgb(204, 204, 204); margin: 5px 0px; padding: 0pt; line-height: 0pt; font-size: 0pt;">


</div><b><span style="font-weight: bold;">From:</span></b> Muhammad Rahiz &lt;<a rel="nofollow" ymailto="mailto:muhammad.rahiz@ouce.ox.ac.uk" target="_blank" href="mailto:muhammad.rahiz@ouce.ox.ac.uk">muhammad.rahiz@ouce.ox.ac.uk</a>&gt;<br><b><span style="font-weight: bold;">To:</span></b> GrADS Users Forum &lt;<a rel="nofollow" ymailto="mailto:gradsusr@gradsusr.org" target="_blank" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>&gt;<br>


<b><span style="font-weight: bold;">Cc:</span></b> <br><b><span style="font-weight: bold;">Sent:</span></b> Tuesday, 8 February 2011 11:23 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [gradsusr] [BULK]  Re:  opening text file data<br>


</font><div><div></div><div><br> I am able to run the script. See results below<br><br>lat is -18.38 lon is 21.85 and the city is Shakawe<br>start is 1<br>lat is -17.82 lon is 25.15 and the city is Kasane<br>start is 2<br>


lat is -19.98 lon is 23.42 and the city is Maun<br>start is 3<br>lat is -18.55 lon is 25.63 and the city is Pandamatenga<br>start is 4<br>lat is -20.52 lon is 26.10 and the city is Sua_Pan<br>start is 5<br>lat is -21.42 lon is 25.62 and the city is Letlhakane<br>


start is 6<br>lat is -21.17 lon is 27.52 and the city is Francistown<br>start is 7<br>lat is -21.97 lon is 27.83 and the city is Selibe_Phikwe<br>start is 8<br>lat is -23.12 lon is 26.83 and the city is Mahalapye<br>start is 9<br>


lat is -24.67 lon is 25.92 and the city is
 SSKA<br>start is 10<br>lat is -24.58 lon is 24.80 and the city is Jwaneng<br>start is 11<br>lat is -25.47 lon is 25.43 and the city is Good_Hope<br>start is 12<br>lat is -26.22 lon is 22.40 and the city is Tsabong<br>start is 13<br>


lat is -24.02 lon is 21.88 and the city is Tshane<br>start is 14<br>lat is -25.27 lon is 23.25 and the city is Werda<br>start is 15<br>lat is -21.68 lon is 21.63 and the city is Gantsi<br>start is 16<br>lat is -22.38 lon is 26.72 and the city is Serowe<br>


start is 17<br>lat is -24.38 lon is 25.50 and the city is Molepolole<br>start is 18<br>lat is -25.75 lon is 28.20 and the city is Pretoria<br>start is 19<br>lat is -33.92 lon is 18.45 and the city is Cape_Town<br>start is 20<br>


lat is -22.57 lon is 17.10 and the city is Windhoek<br>start is 21<br>lat is -17.83 lon is 31.05 and the city is Harare<br>start is 22<br>lat is -29.32 lon is 27.48 and the city is Maseru<br>start is 23<br>lat is -26.33 lon is 31.13 and the city is
 Manzini<br>start is 24<br>lat is -25.97 lon is 32.58 and the city is Maputo<br>start is 25<br>last city is 24<br>No scaling environment<br><br>This means x is environment and y is<br>DRAW error: Syntax is DRAW MARK marktype x y size<br>


Non-numeric args to numeric operation<br>&nbsp;  Error occurred on line 53<br>&nbsp;  In file <a rel="nofollow" target="_blank" href="http://city_plot.gs">city_plot.gs</a><br><br><br>-- <br>Muhammad Rahiz<br>Researcher &amp; DPhil Candidate (Climate Systems &amp; Policy)<br>


School of Geography &amp; the Environment<br>University of Oxford<br><br>On Tue, 8 Feb 2011, Galebonwe Ramaphane wrote:<br><br>&gt; Muhammad,<br>&gt;<br>&gt; I'm also running GrADS on linux. I have gone over the code several times. It's one of those annoying problems. I'll attach the sample script and the text file for your inspection.<br>


&gt;<br>&gt; Galebonwe Ramaphane<br>&gt; Department of Meteorological Services<br>&gt; P.O. BOX 10100<br>&gt; Gaborone<br>&gt; Botswana<br>&gt; Tel: +267 3612200<br>&gt;
 &nbsp;Mobile: +267 74435261<br>&gt;<br>&gt;<br>&gt; -----Original Message-----<br>&gt; From: <a rel="nofollow" ymailto="mailto:gradsusr-bounces@gradsusr.org" target="_blank" href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a> [mailto:<a rel="nofollow" ymailto="mailto:gradsusr-bounces@gradsusr.org" target="_blank" href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a>] On Behalf Of Muhammad Rahiz<br>


&gt; Sent: Tuesday, February 08, 2011 10:36 AM<br>&gt; To: GrADS Users Forum<br>&gt; Subject: [BULK] Re: [gradsusr] opening text file data<br>&gt; Importance: Low<br>&gt;<br>&gt; Galebonwe,<br>&gt;<br>&gt; I'm using GrADS on linux and as far as I know, if your text file is in the same directory as your script, you don't have to put in the full path.<br>


&gt; I'm not sure if it's different on Windows although I doubt so. I presume you've checked your code?<br>&gt;<br>&gt; Muhammad Rahiz<br>&gt; Researcher &amp; DPhil Candidate (Climate Systems &amp; Policy) School of
 Geography &amp; the Environment University of Oxford<br>&gt;<br>&gt; On Tue, 8 Feb 2011, Galebonwe Ramaphane wrote:<br>&gt;<br>&gt;&gt; I have a similar but minor problem. My calling script does not see the text file. I tried putting the text file in the same directory as the calling script. I still failed to read the text file. Do I include the full path of the text file?<br>


&gt;&gt;<br>&gt;&gt; Galebonwe Ramaphane<br>&gt;&gt; Department of Meteorological Services<br>&gt;&gt; P.O. BOX 10100<br>&gt;&gt; Gaborone<br>&gt;&gt; Botswana<br>&gt;&gt; Tel: +267 3612200<br>&gt;&gt; &nbsp;Mobile: +267 74435261<br>


&gt;&gt;<br>&gt;&gt; -----Original Message-----<br>&gt;&gt; From: <a rel="nofollow" ymailto="mailto:gradsusr-bounces@gradsusr.org" target="_blank" href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a><br>&gt;&gt; [mailto:<a rel="nofollow" ymailto="mailto:gradsusr-bounces@gradsusr.org" target="_blank" href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a>] On Behalf Of
 Muhammad Rahiz<br>&gt;&gt; Sent: Monday, February 07, 2011 6:32 PM<br>&gt;&gt; To: GrADS Users Forum<br>&gt;&gt; Subject: Re: [gradsusr] opening text file data<br>&gt;&gt;<br>&gt;&gt; James, you can try the following.<br>


&gt;&gt;<br>&gt;&gt; *****<br>&gt;&gt;<br>&gt;&gt; 'sdfopen <a rel="nofollow" target="_blank" href="http://ifile.nc">ifile.nc</a>'<br>&gt;&gt;<br>&gt;&gt; * ttot = number of lines in text file<br>&gt;&gt; ttot = 755<br>

&gt;&gt; tx = 1<br>
&gt;&gt; while(tx&lt;=ttot)<br>&gt;&gt; fname ='7hA01.out.txt'<br>&gt;&gt;&nbsp; rec = read(fname)<br>&gt;&gt;&nbsp; IO = sublin(rec,1)<br>&gt;&gt;&nbsp;  if(IO = 1)<br>&gt;&gt;&nbsp; &nbsp; say fname' &gt; File open error'<br>&gt;&gt;&nbsp; &nbsp; 'quit'<br>


&gt;&gt;&nbsp;  endif<br>&gt;&gt;&nbsp; if(IO = 0)<br>&gt;&gt;&nbsp; &nbsp; t1 = subwrd(rec,2)<br>&gt;&gt;&nbsp; &nbsp; t2 = subwrd(rec,3)<br>&gt;&gt;&nbsp;  endif<br>&gt;&gt; say ''t1' 't2''<br>&gt;&gt;<br>&gt;&gt; tx = tx +1<br>&gt;&gt; endwhile<br>


&gt;&gt;<br>&gt;&gt; *****<br>&gt;&gt;<br>&gt;&gt;
 --<br>&gt;&gt; Muhammad Rahiz<br>&gt;&gt; Researcher &amp; DPhil Candidate (Climate Systems &amp; Policy) School of<br>&gt;&gt; Geography &amp; the Environment University of Oxford<br>&gt;&gt;<br>&gt;&gt; On Mon, 7 Feb 2011, James Ciarlo` wrote:<br>


&gt;&gt;<br>&gt;&gt;&gt; Hi,<br>&gt;&gt;&gt; I have several text files such as the one I attached and I need to<br>&gt;&gt;&gt; open them which GrADS but I cannot understand how to do so. Can<br>&gt;&gt;&gt; someone help me please?<br>


&gt;&gt;&gt;<br>&gt;&gt;&gt; James<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt; _______________________________________________<br>&gt;&gt; gradsusr mailing list<br>&gt;&gt; <a rel="nofollow" ymailto="mailto:gradsusr@gradsusr.org" target="_blank" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>


&gt;&gt; <a rel="nofollow" target="_blank" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>&gt;&gt;<br>&gt;&gt;
 _______________________________________________<br>&gt;&gt; gradsusr mailing list<br>&gt;&gt; <a rel="nofollow" ymailto="mailto:gradsusr@gradsusr.org" target="_blank" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>&gt;&gt; <a rel="nofollow" target="_blank" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>


&gt;&gt;<br>&gt;<br><br></div></div></div></div></div><br></div><br>_______________________________________________<br>
gradsusr mailing list<br>
<a rel="nofollow" ymailto="mailto:gradsusr@gradsusr.org" target="_blank" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a rel="nofollow" target="_blank" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><input type="hidden"><input type="hidden"><div></div>
</div><br><br></div></div></div></div></blockquote></div></div><br></div></blockquote></div><br><input type="hidden"><input type="hidden"><div></div>
</div></div></blockquote></div><br><input id="yiv2147304650gwProxy" type="hidden"><input id="yiv2147304650jsProxy" type="hidden"><div id="yiv2147304650refHTML"></div>
</div><br><br></div></div></div><br></body></html>