<html><body><div style="color:#000; background-color:#fff, font-family:garamond, new york, times, serif;font-size:14pt"><div><span>Hi Yaqiang,</span></div><div style="color: rgb(0, 0, 0); font-size: 18.6667px; font-family: garamond,new york,times,serif; background-color: transparent; font-style: normal;"><span>Thanks for the response, but the masking (Blanking) we meant here cannot be handled by the function you&nbsp; suggested.</span></div><div style="color: rgb(0, 0, 0); font-size: 18.6667px; font-family: garamond,new york,times,serif; background-color: transparent; font-style: normal;"><span>The objective is to have the contours or shading&nbsp; restricted within a country or state boundary and NOT to mask out certain values, land or ocean areas. <br></span></div><div style="color: rgb(0, 0, 0); font-size: 18.6667px; font-family: garamond,new york,times,serif; background-color: transparent; font-style: normal;"><span>The question is how to generate a
 blanking file in grads for a given boundary (polygon).<br></span></div><div>&nbsp;</div><div id="RTEContent"><div><br></div></div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div style="font-family: garamond,new york,times,serif; font-size: 14pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Arial" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Yaqiang Wang &lt;yaqiang.wang@gmail.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> Zablone Owiti &lt;zablonowiti@yahoo.com&gt;; GrADS Users Forum &lt;gradsusr@gradsusr.org&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Monday, 7 March 2011 9:55 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [gradsusr] [BULK] Re: Masking Domain in Grads<br></font><br> maskout function could be used to solve your problem.<br><a
 href="http://www.iges.org/grads/gadoc/gradfuncmaskout.html" target="_blank">http://www.iges.org/grads/gadoc/gradfuncmaskout.html</a><br><br>On Mon, Mar 7, 2011 at 9:21 PM, Zablone Owiti &lt;<a ymailto="mailto:zablonowiti@yahoo.com" href="mailto:zablonowiti@yahoo.com">zablonowiti@yahoo.com</a>&gt; wrote:<br>&gt; Hi Sujata,<br>&gt;<br>&gt; I have not been able to mask-out or blank a particular boundary (country or<br>&gt; state) so that the contour or&nbsp; shading does not spill out of the boundary<br>&gt; country boundary.<br>&gt; I had earlier&nbsp; posted this query to Grads Users forum but did&nbsp; not get a<br>&gt; response.&nbsp; I hope this time there will be a response from the Grads Gurus.<br>&gt;<br>&gt; ===================================================<br>&gt; ZABLONE OWITI<br>&gt;<br>&gt; From: Sujata Pattanayak &lt;<a ymailto="mailto:sujata05@gmail.com" href="mailto:sujata05@gmail.com">sujata05@gmail.com</a>&gt;<br>&gt; To: Zablone Owiti
 &lt;<a ymailto="mailto:zablonowiti@yahoo.com" href="mailto:zablonowiti@yahoo.com">zablonowiti@yahoo.com</a>&gt;<br>&gt; Cc:<br>&gt; Sent: Monday, 7 March 2011 8:22 PM<br>&gt; Subject: Re: [gradsusr] [BULK] Re: opening text file data<br>&gt;<br>&gt; Hi Zablone,<br>&gt; &nbsp;&nbsp;&nbsp; I am attaching my model domain. I want to plot certain model variables<br>&gt; in a particular state (i.e ORISSA) as mentioned in the plot. Can I plot on a<br>&gt; particular state (like Orissa) and mask the other area.<br>&gt;<br>&gt; regards,<br>&gt; Sujata<br>&gt;<br>&gt; On Mon, Mar 7, 2011 at 5:14 PM, Sujata Pattanayak &lt;<a ymailto="mailto:sujata05@gmail.com" href="mailto:sujata05@gmail.com">sujata05@gmail.com</a>&gt;<br>&gt; wrote:<br>&gt;<br>&gt; Hi Zablone,<br>&gt; &nbsp;&nbsp;&nbsp; Thank you very much for your kind help.<br>&gt;<br>&gt; Regards,<br>&gt; Sujata<br>&gt;<br>&gt; On Mon, Mar 7, 2011 at 4:32 PM, Zablone Owiti &lt;<a
 ymailto="mailto:zablonowiti@yahoo.com" href="mailto:zablonowiti@yahoo.com">zablonowiti@yahoo.com</a>&gt; wrote:<br>&gt;<br>&gt; Hi Sujata,<br>&gt; You can use the shapefiles (admin98) in Grads to generate State boundaries<br>&gt; after you display something.<br>&gt; The command is:<br>&gt;&gt; draw shp admin98<br>&gt; &nbsp;This command is available with Grads V. 2.0.a8 or later. You can get more<br>&gt; details here: <a href="http://opengrads.org/doc/udxt/shape/shape.html" target="_blank">http://opengrads.org/doc/udxt/shape/shape.html</a><br>&gt;<br>&gt; Hope this will help you<br>&gt;<br>&gt;<br>&gt; ===================================================<br>&gt; ZABLONE OWITI<br>&gt; GRADUATE STUDENT<br>&gt; Nanjing University of Information, Science and Technology<br>&gt; College of Atmospheric Science<br>&gt; Add: 219 Ning Liu Rd, Nanjing, Jiangsu, 21004, P.R. China<br>&gt; Tel: +86-25-58731402<br>&gt; Fax: +86-25-58731456<br>&gt; Mob.
 15077895632<br>&gt; Website: www.nuist.edu.cn<br>&gt; ====================================================<br>&gt; "The real art of conversation is not only to say the right thing at the<br>&gt; right time, but also to leave unsaid the wrong thing at the tempting<br>&gt; moment."<br>&gt;<br>&gt;<br>&gt; From: Sujata Pattanayak &lt;<a ymailto="mailto:sujata05@gmail.com" href="mailto:sujata05@gmail.com">sujata05@gmail.com</a>&gt;<br>&gt; To: Zablone Owiti &lt;<a ymailto="mailto:zablonowiti@yahoo.com" href="mailto:zablonowiti@yahoo.com">zablonowiti@yahoo.com</a>&gt;; GrADS Users Forum<br>&gt; &lt;<a ymailto="mailto:gradsusr@gradsusr.org" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>&gt;<br>&gt; Sent: Monday, 7 March 2011 1:13 PM<br>&gt; Subject: Re: [gradsusr] [BULK] Re: opening text file data<br>&gt;<br>&gt; Hi Zablone,<br>&gt; &nbsp;&nbsp;&nbsp; How do you get the state boundaries with GrADS? When I am plotting<br>&gt; through grads, it
 just display the country boundary.<br>&gt; Can you please help me in this regard??<br>&gt;<br>&gt; Regards,<br>&gt; Sujata<br>&gt;<br>&gt; On Wed, Feb 9, 2011 at 10:39 AM, Zablone Owiti &lt;<a ymailto="mailto:zablonowiti@yahoo.com" href="mailto:zablonowiti@yahoo.com">zablonowiti@yahoo.com</a>&gt;<br>&gt; wrote:<br>&gt;<br>&gt; Dear Ramaphane,<br>&gt; As Muhammad has indicated, the script runs. BUT your Objective is to plot<br>&gt; the station Locations on the map, with station names. If that is the<br>&gt; case, you need to open&nbsp; a file (eg. open model.ctl) to set the environment<br>&gt; (so that you don't get the error massage of No scaling environment) and<br>&gt; display a variable. The trick I normally use so that I get a blank map is to<br>&gt; set cmin a value higher than the maximum value of the variable (there could<br>&gt; be a better way of doing this, I hope somebody will point it out). For<br>&gt; example I set cmin 10 before diplaying
 pr variable in model.ctl.<br>&gt; You also need to zoom in your domain using set lat and set lon.<br>&gt; See attached map(city.png) I have done with the script.<br>&gt; &nbsp;Hope this will help.<br>&gt;<br>&gt; ===================================================<br>&gt; ZABLONE OWITI<br>&gt; GRADUATE STUDENT<br>&gt; Nanjing University of Information, Science and Technology<br>&gt; College of International Education<br>&gt; Add: 219 Ning Liu Rd, Nanjing, Jiangsu, 21004, P.R. China<br>&gt; Tel: +86-25-58731402<br>&gt; Fax: +86-25-58731456<br>&gt; Mob. 15077895632<br>&gt; Website: www.nuist.edu.cn<br>&gt; ====================================================<br>&gt; "The real art of conversation is not only to say the right thing at the<br>&gt; right time, but also to leave unsaid the wrong thing at the tempting<br>&gt; moment."<br>&gt;<br>&gt;<br>&gt; From: Muhammad Rahiz &lt;<a ymailto="mailto:muhammad.rahiz@ouce.ox.ac.uk"
 href="mailto:muhammad.rahiz@ouce.ox.ac.uk">muhammad.rahiz@ouce.ox.ac.uk</a>&gt;<br>&gt; To: GrADS Users Forum &lt;<a ymailto="mailto:gradsusr@gradsusr.org" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>&gt;<br>&gt; Cc:<br>&gt; Sent: Tuesday, 8 February 2011 11:23 PM<br>&gt; Subject: Re: [gradsusr] [BULK] Re: opening text file data<br>&gt;<br>&gt; I am able to run the script. See results below<br>&gt;<br>&gt; lat is -18.38 lon is 21.85 and the city is Shakawe<br>&gt; start is 1<br>&gt; lat is -17.82 lon is 25.15 and the city is Kasane<br>&gt; start is 2<br>&gt; lat is -19.98 lon is 23.42 and the city is Maun<br>&gt; start is 3<br>&gt; lat is -18.55 lon is 25.63 and the city is Pandamatenga<br>&gt; start is 4<br>&gt; lat is -20.52 lon is 26.10 and the city is Sua_Pan<br>&gt; start is 5<br>&gt; lat is -21.42 lon is 25.62 and the city is Letlhakane<br>&gt; start is 6<br>&gt; lat is -21.17 lon is 27.52 and the city is Francistown<br>&gt; start
 is 7<br>&gt; lat is -21.97 lon is 27.83 and the city is Selibe_Phikwe<br>&gt; start is 8<br>&gt; lat is -23.12 lon is 26.83 and the city is Mahalapye<br>&gt; start is 9<br>&gt; lat is -24.67 lon is 25.92 and the city is SSKA<br>&gt; start is 10<br>&gt; lat is -24.58 lon is 24.80 and the city is Jwaneng<br>&gt; start is 11<br>&gt; lat is -25.47 lon is 25.43 and the city is Good_Hope<br>&gt; start is 12<br>&gt; lat is -26.22 lon is 22.40 and the city is Tsabong<br>&gt; start is 13<br>&gt; lat is -24.02 lon is 21.88 and the city is Tshane<br>&gt; start is 14<br>&gt; lat is -25.27 lon is 23.25 and the city is Werda<br>&gt; start is 15<br>&gt; lat is -21.68 lon is 21.63 and the city is Gantsi<br>&gt; start is 16<br>&gt; lat is -22.38 lon is 26.72 and the city is Serowe<br>&gt; start is 17<br>&gt; lat is -24.38 lon is 25.50 and the city is Molepolole<br>&gt; start is 18<br>&gt; lat is -25.75 lon is 28.20 and the city is Pretoria<br>&gt; start is 19<br>&gt;
 lat is -33.92 lon is 18.45 and the city is Cape_Town<br>&gt; start is 20<br>&gt; lat is -22.57 lon is 17.10 and the city is Windhoek<br>&gt; start is 21<br>&gt; lat is -17.83 lon is 31.05 and the city is Harare<br>&gt; start is 22<br>&gt; lat is -29.32 lon is 27.48 and the city is Maseru<br>&gt; start is 23<br>&gt; lat is -26.33 lon is 31.13 and the city is Manzini<br>&gt; start is 24<br>&gt; lat is -25.97 lon is 32.58 and the city is Maputo<br>&gt; start is 25<br>&gt; last city is 24<br>&gt; No scaling environment<br>&gt;<br>&gt; This means x is environment and y is<br>&gt; DRAW error: Syntax is DRAW MARK marktype x y size<br>&gt; Non-numeric args to numeric operation<br>&gt; &nbsp; Error occurred on line 53<br>&gt; &nbsp; In file city_plot.gs<br>&gt;<br>&gt;<br>&gt; --<br>&gt; Muhammad Rahiz<br>&gt; Researcher &amp; DPhil Candidate (Climate Systems &amp; Policy)<br>&gt; School of Geography &amp; the Environment<br>&gt; University of
 Oxford<br>&gt;<br>&gt; On Tue, 8 Feb 2011, Galebonwe Ramaphane wrote:<br>&gt;<br>&gt;&gt; Muhammad,<br>&gt;&gt;<br>&gt;&gt; I'm also running GrADS on linux. I have gone over the code several times.<br>&gt;&gt; It's one of those annoying problems. I'll attach the sample script and the<br>&gt;&gt; text file for your inspection.<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;<br>&gt;&gt; -----Original Message-----<br>&gt;&gt; From: <a ymailto="mailto:gradsusr-bounces@gradsusr.org" href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a> [mailto:<a ymailto="mailto:gradsusr-bounces@gradsusr.org" href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a>]<br>&gt;&gt; On Behalf Of Muhammad Rahiz<br>&gt;&gt; Sent:
 Tuesday, February 08, 2011 10:36 AM<br>&gt;&gt; To: GrADS Users Forum<br>&gt;&gt; Subject: [BULK] Re: [gradsusr] opening text file data<br>&gt;&gt; Importance: Low<br>&gt;&gt;<br>&gt;&gt; Galebonwe,<br>&gt;&gt;<br>&gt;&gt; I'm using GrADS on linux and as far as I know, if your text file is in the<br>&gt;&gt; same directory as your script, you don't have to put in the full path.<br>&gt;&gt; I'm not sure if it's different on Windows although I doubt so. I presume<br>&gt;&gt; you've checked your code?<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 Tue, 8 Feb 2011, Galebonwe Ramaphane wrote:<br>&gt;&gt;<br>&gt;&gt;&gt; I have a similar but minor problem. My calling script does not see the<br>&gt;&gt;&gt; text file. I tried putting the text file in the same directory as the<br>&gt;&gt;&gt;
 calling script. I still failed to read the text file. Do I include the full<br>&gt;&gt;&gt; path of the text file?<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Galebonwe Ramaphane<br>&gt;&gt;&gt; Department of Meteorological Services<br>&gt;&gt;&gt; P.O. BOX 10100<br>&gt;&gt;&gt; Gaborone<br>&gt;&gt;&gt; Botswana<br>&gt;&gt;&gt; Tel: +267 3612200<br>&gt;&gt;&gt; &nbsp;Mobile: +267 74435261<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; -----Original Message-----<br>&gt;&gt;&gt; From: <a ymailto="mailto:gradsusr-bounces@gradsusr.org" href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a><br>&gt;&gt;&gt; [mailto:<a ymailto="mailto:gradsusr-bounces@gradsusr.org" href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a>] On Behalf Of Muhammad Rahiz<br>&gt;&gt;&gt; Sent: Monday, February 07, 2011 6:32 PM<br>&gt;&gt;&gt; To: GrADS Users Forum<br>&gt;&gt;&gt; Subject: Re: [gradsusr] opening text file data<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; James,
 you can try the following.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; *****<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; 'sdfopen ifile.nc'<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; * ttot = number of lines in text file<br>&gt;&gt;&gt; ttot = 755<br>&gt;&gt;&gt; tx = 1<br>&gt;&gt;&gt; while(tx&lt;=ttot)<br>&gt;&gt;&gt; fname ='7hA01.out.txt'<br>&gt;&gt;&gt;&nbsp; rec = read(fname)<br>&gt;&gt;&gt;&nbsp; IO = sublin(rec,1)<br>&gt;&gt;&gt;&nbsp; if(IO = 1)<br>&gt;&gt;&gt;&nbsp; &nbsp; say fname' &gt; File open error'<br>&gt;&gt;&gt;&nbsp; &nbsp; 'quit'<br>&gt;&gt;&gt;&nbsp; endif<br>&gt;&gt;&gt;&nbsp; if(IO = 0)<br>&gt;&gt;&gt;&nbsp; &nbsp; t1 = subwrd(rec,2)<br>&gt;&gt;&gt;&nbsp; &nbsp; t2 = subwrd(rec,3)<br>&gt;&gt;&gt;&nbsp; endif<br>&gt;&gt;&gt; say ''t1' 't2''<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; tx = tx +1<br>&gt;&gt;&gt; endwhile<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; *****<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; --<br>&gt;&gt;&gt; Muhammad Rahiz<br>&gt;&gt;&gt; Researcher &amp; DPhil Candidate
 (Climate Systems &amp; Policy) School of<br>&gt;&gt;&gt; Geography &amp; the Environment University of Oxford<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; On Mon, 7 Feb 2011, James Ciarlo` wrote:<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Hi,<br>&gt;&gt;&gt;&gt; I have several text files such as the one I attached and I need to<br>&gt;&gt;&gt;&gt; open them which GrADS but I cannot understand how to do so. Can<br>&gt;&gt;&gt;&gt; someone help me please?<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; James<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt; _______________________________________________<br>&gt;&gt;&gt; gradsusr mailing list<br>&gt;&gt;&gt; <a ymailto="mailto:gradsusr@gradsusr.org" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>&gt;&gt;&gt; <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>&gt;&gt;&gt;<br>&gt;&gt;&gt;
 _______________________________________________<br>&gt;&gt;&gt; gradsusr mailing list<br>&gt;&gt;&gt; <a ymailto="mailto:gradsusr@gradsusr.org" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>&gt;&gt;&gt; <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>&gt;&gt;&gt;<br>&gt;&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; gradsusr mailing list<br>&gt; <a ymailto="mailto:gradsusr@gradsusr.org" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>&gt; <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; gradsusr mailing list<br>&gt; <a ymailto="mailto:gradsusr@gradsusr.org"
 href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>&gt; <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>&gt;<br>&gt;<br><br><br><br>-- <br>*************************************************<br>Dr. Ya-Qiang Wang<br>Centre for Atmosphere Watch and Services (CAWAS), CMA<br>Chinese Academy of Meteorological Sciences (CAMS)<br>46, Zhong-Guan-Cun South Avenue<br>Beijing, 100081<br>China<br><br><a ymailto="mailto:yaqiang.wang@gmail.com" href="mailto:yaqiang.wang@gmail.com">yaqiang.wang@gmail.com</a><br>**************************************************<br><br><br></div></div></blockquote></div></div><br></body></html>