<div dir="ltr">how to get this software ?<br><br>
<div class="gmail_quote">On Tue, Mar 8, 2011 at 12:58 PM, Yaqiang Wang <span dir="ltr"><<a href="mailto:yaqiang.wang@gmail.com">yaqiang.wang@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Its quite easy to generate a maskout file with the "Ooutput Map Data"<br>function in MeteoInfo from a polygon shape file.<br>
<div>
<div></div>
<div class="h5"><br>On Tue, Mar 8, 2011 at 11:04 AM, Arlindo da Silva <<a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a>> wrote:<br>><br>><br>> On Mon, Mar 7, 2011 at 9:28 PM, Zablone Owiti <<a href="mailto:zablonowiti@yahoo.com">zablonowiti@yahoo.com</a>> wrote:<br>
>><br>>> Hi Yaqiang,<br>>> Thanks for the response, but the masking (Blanking) we meant here cannot<br>>> be handled by the function you suggested.<br>>> The objective is to have the contours or shading restricted within a<br>
>> country or state boundary and NOT to mask out certain values, land or ocean<br>>> areas.<br>>> The question is how to generate a blanking file in grads for a given<br>>> boundary (polygon).<br>>><br>
><br>> Hmm. I've never done this but here how would go about it. Select a<br>> rectangular domain and draw contours as usual. Next, get a shapefile with<br>> polygons describing your states. Next, draw filled polygons (say, color<br>
> white) for each state that you want to mask out --- that is, exclude your<br>> state of interest. This is not a very elegant solution, but might do the<br>> trick. Read the shapefile documentation carefully. YMMV.<br>
> Arlindo<br>><br>><br>><br>><br>>><br>>> ________________________________<br>>> From: Yaqiang Wang <<a href="mailto:yaqiang.wang@gmail.com">yaqiang.wang@gmail.com</a>><br>>> To: Zablone Owiti <<a href="mailto:zablonowiti@yahoo.com">zablonowiti@yahoo.com</a>>; GrADS Users Forum<br>
>> <<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>>> Sent: Monday, 7 March 2011 9:55 PM<br>>> Subject: Re: [gradsusr] [BULK] Re: Masking Domain in Grads<br>>><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 <<a href="mailto:zablonowiti@yahoo.com">zablonowiti@yahoo.com</a>><br>
>> wrote:<br>>> > Hi Sujata,<br>>> ><br>>> > I have not been able to mask-out or blank a particular boundary (country<br>>> > or<br>>> > state) so that the contour or shading does not spill out of the<br>
>> > boundary<br>>> > country boundary.<br>>> > I had earlier posted this query to Grads Users forum but did not get a<br>>> > response. I hope this time there will be a response from the Grads<br>
>> > Gurus.<br>>> ><br>>> > ===================================================<br>>> > ZABLONE OWITI<br>>> ><br>>> > From: Sujata Pattanayak <<a href="mailto:sujata05@gmail.com">sujata05@gmail.com</a>><br>
>> > To: Zablone Owiti <<a href="mailto:zablonowiti@yahoo.com">zablonowiti@yahoo.com</a>><br>>> > Cc:<br>>> > Sent: Monday, 7 March 2011 8:22 PM<br>>> > Subject: Re: [gradsusr] [BULK] Re: opening text file data<br>
>> ><br>>> > Hi Zablone,<br>>> > I am attaching my model domain. I want to plot certain model<br>>> > variables<br>>> > in a particular state (i.e ORISSA) as mentioned in the plot. Can I plot<br>
>> > on a<br>>> > particular state (like Orissa) and mask the other area.<br>>> ><br>>> > regards,<br>>> > Sujata<br>>> ><br>>> > On Mon, Mar 7, 2011 at 5:14 PM, Sujata Pattanayak <<a href="mailto:sujata05@gmail.com">sujata05@gmail.com</a>><br>
>> > wrote:<br>>> ><br>>> > Hi Zablone,<br>>> > Thank you very much for your kind help.<br>>> ><br>>> > Regards,<br>>> > Sujata<br>>> ><br>>> > On Mon, Mar 7, 2011 at 4:32 PM, Zablone Owiti <<a href="mailto:zablonowiti@yahoo.com">zablonowiti@yahoo.com</a>><br>
>> > wrote:<br>>> ><br>>> > Hi Sujata,<br>>> > You can use the shapefiles (admin98) in Grads to generate State<br>>> > boundaries<br>>> > after you display something.<br>
>> > The command is:<br>>> >> draw shp admin98<br>>> > This command is available with Grads V. 2.0.a8 or later. You can get<br>>> > more<br>>> > details here: <a href="http://opengrads.org/doc/udxt/shape/shape.html" target="_blank">http://opengrads.org/doc/udxt/shape/shape.html</a><br>
>> ><br>>> > Hope this will help you<br>>> ><br>>> ><br>>> > ===================================================<br>>> > ZABLONE OWITI<br>>> > GRADUATE STUDENT<br>
>> > Nanjing University of Information, Science and Technology<br>>> > College of Atmospheric Science<br>>> > Add: 219 Ning Liu Rd, Nanjing, Jiangsu, 21004, P.R. China<br>>> > Tel: <a href="tel:%2B86-25-58731402">+86-25-58731402</a><br>
>> > Fax: <a href="tel:%2B86-25-58731456">+86-25-58731456</a><br>>> > Mob. 15077895632<br>>> > Website: <a href="http://www.nuist.edu.cn/" target="_blank">www.nuist.edu.cn</a><br>>> > ====================================================<br>
>> > "The real art of conversation is not only to say the right thing at the<br>>> > right time, but also to leave unsaid the wrong thing at the tempting<br>>> > moment."<br>>> ><br>
>> ><br>>> > From: Sujata Pattanayak <<a href="mailto:sujata05@gmail.com">sujata05@gmail.com</a>><br>>> > To: Zablone Owiti <<a href="mailto:zablonowiti@yahoo.com">zablonowiti@yahoo.com</a>>; GrADS Users Forum<br>
>> > <<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>>> > Sent: Monday, 7 March 2011 1:13 PM<br>>> > Subject: Re: [gradsusr] [BULK] Re: opening text file data<br>>> ><br>
>> > Hi Zablone,<br>>> > How do you get the state boundaries with GrADS? When I am plotting<br>>> > through grads, it just display the country boundary.<br>>> > Can you please help me in this regard??<br>
>> ><br>>> > Regards,<br>>> > Sujata<br>>> ><br>>> > On Wed, Feb 9, 2011 at 10:39 AM, Zablone Owiti <<a href="mailto:zablonowiti@yahoo.com">zablonowiti@yahoo.com</a>><br>
>> > wrote:<br>>> ><br>>> > Dear Ramaphane,<br>>> > As Muhammad has indicated, the script runs. BUT your Objective is to<br>>> > plot<br>>> > the station Locations on the map, with station names. If that is the<br>
>> > case, you need to open a file (eg. open model.ctl) to set the<br>>> > environment<br>>> > (so that you don't get the error massage of No scaling environment) and<br>>> > display a variable. The trick I normally use so that I get a blank map<br>
>> > is to<br>>> > set cmin a value higher than the maximum value of the variable (there<br>>> > could<br>>> > be a better way of doing this, I hope somebody will point it out). For<br>
>> > 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>
>> > Hope this will help.<br>>> ><br>>> > ===================================================<br>>> > ZABLONE OWITI<br>>> > 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>>> > Tel: <a href="tel:%2B86-25-58731402">+86-25-58731402</a><br>>> > Fax: <a href="tel:%2B86-25-58731456">+86-25-58731456</a><br>
>> > Mob. 15077895632<br>>> > Website: <a href="http://www.nuist.edu.cn/" target="_blank">www.nuist.edu.cn</a><br>>> > ====================================================<br>>> > "The real art of conversation is not only to say the right thing at the<br>
>> > right time, but also to leave unsaid the wrong thing at the tempting<br>>> > moment."<br>>> ><br>>> ><br>>> > From: Muhammad Rahiz <<a href="mailto:muhammad.rahiz@ouce.ox.ac.uk">muhammad.rahiz@ouce.ox.ac.uk</a>><br>
>> > To: GrADS Users Forum <<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>>> > Cc:<br>>> > Sent: Tuesday, 8 February 2011 11:23 PM<br>>> > Subject: Re: [gradsusr] [BULK] Re: opening text file data<br>
>> ><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>>> > Error occurred on line 53<br>>> > In file <a href="http://city_plot.gs/" target="_blank">city_plot.gs</a><br>
>> ><br>>> ><br>>> > --<br>>> > Muhammad Rahiz<br>>> > Researcher & DPhil Candidate (Climate Systems & Policy)<br>>> > School of Geography & the Environment<br>
>> > University of Oxford<br>>> ><br>>> > On Tue, 8 Feb 2011, Galebonwe Ramaphane wrote:<br>>> ><br>>> >> Muhammad,<br>>> >><br>>> >> I'm also running GrADS on linux. I have gone over the code several<br>
>> >> times.<br>>> >> It's one of those annoying problems. I'll attach the sample script and<br>>> >> the<br>>> >> text file for your inspection.<br>>> >><br>
>> >> Galebonwe Ramaphane<br>>> >> Department of Meteorological Services<br>>> >> P.O. BOX 10100<br>>> >> Gaborone<br>>> >> Botswana<br>>> >> Tel: <a href="tel:%2B267%203612200">+267 3612200</a><br>
>> >> Mobile: <a href="tel:%2B267%2074435261">+267 74435261</a><br>>> >><br>>> >><br>>> >> -----Original Message-----<br>>> >> From: <a href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a><br>
>> >> [mailto:<a href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a>]<br>>> >> On Behalf Of Muhammad Rahiz<br>>> >> Sent: Tuesday, February 08, 2011 10:36 AM<br>
>> >> To: GrADS Users Forum<br>>> >> Subject: [BULK] Re: [gradsusr] opening text file data<br>>> >> Importance: Low<br>>> >><br>>> >> Galebonwe,<br>>> >><br>
>> >> I'm using GrADS on linux and as far as I know, if your text file is in<br>>> >> the<br>>> >> same directory as your script, you don't have to put in the full path.<br>>> >> I'm not sure if it's different on Windows although I doubt so. I<br>
>> >> presume<br>>> >> you've checked your code?<br>>> >><br>>> >> Muhammad Rahiz<br>>> >> Researcher & DPhil Candidate (Climate Systems & Policy) School of<br>
>> >> Geography & the Environment University of Oxford<br>>> >><br>>> >> On Tue, 8 Feb 2011, Galebonwe Ramaphane wrote:<br>>> >><br>>> >>> I have a similar but minor problem. My calling script does not see the<br>
>> >>> text file. I tried putting the text file in the same directory as the<br>>> >>> calling script. I still failed to read the text file. Do I include the<br>>> >>> full<br>
>> >>> path of the text file?<br>>> >>><br>>> >>> Galebonwe Ramaphane<br>>> >>> Department of Meteorological Services<br>>> >>> P.O. BOX 10100<br>
>> >>> Gaborone<br>>> >>> Botswana<br>>> >>> Tel: <a href="tel:%2B267%203612200">+267 3612200</a><br>>> >>> Mobile: <a href="tel:%2B267%2074435261">+267 74435261</a><br>
>> >>><br>>> >>> -----Original Message-----<br>>> >>> From: <a href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a><br>>> >>> [mailto:<a href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a>] On Behalf Of Muhammad Rahiz<br>
>> >>> Sent: Monday, February 07, 2011 6:32 PM<br>>> >>> To: GrADS Users Forum<br>>> >>> Subject: Re: [gradsusr] opening text file data<br>>> >>><br>>> >>> James, you can try the following.<br>
>> >>><br>>> >>> *****<br>>> >>><br>>> >>> 'sdfopen <a href="http://ifile.nc/" target="_blank">ifile.nc</a>'<br>>> >>><br>>> >>> * ttot = number of lines in text file<br>
>> >>> ttot = 755<br>>> >>> tx = 1<br>>> >>> while(tx<=ttot)<br>>> >>> fname ='7hA01.out.txt'<br>>> >>> rec = read(fname)<br>>> >>> IO = sublin(rec,1)<br>
>> >>> if(IO = 1)<br>>> >>> say fname' > File open error'<br>>> >>> 'quit'<br>>> >>> endif<br>>> >>> if(IO = 0)<br>>> >>> t1 = subwrd(rec,2)<br>
>> >>> t2 = subwrd(rec,3)<br>>> >>> endif<br>>> >>> say ''t1' 't2''<br>>> >>><br>>> >>> tx = tx +1<br>>> >>> endwhile<br>
>> >>><br>>> >>> *****<br>>> >>><br>>> >>> --<br>>> >>> Muhammad Rahiz<br>>> >>> Researcher & DPhil Candidate (Climate Systems & Policy) School of<br>
>> >>> Geography & the Environment University of Oxford<br>>> >>><br>>> >>> On Mon, 7 Feb 2011, James Ciarlo` wrote:<br>>> >>><br>>> >>>> Hi,<br>
>> >>>> I have several text files such as the one I attached and I need to<br>>> >>>> open them which GrADS but I cannot understand how to do so. Can<br>>> >>>> someone help me please?<br>
>> >>>><br>>> >>>> James<br>>> >>>><br>>> >>>><br>>> >>> _______________________________________________<br>>> >>> gradsusr mailing list<br>
>> >>> <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>>> >>> <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
>> >>><br>>> >>> _______________________________________________<br>>> >>> gradsusr mailing list<br>>> >>> <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
>> >>> <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>>> >>><br>>> >><br>>> ><br>>> ><br>
>> ><br>>> > _______________________________________________<br>>> > gradsusr mailing list<br>>> > <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>>> > <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
>> ><br>>> ><br>>> ><br>>> ><br>>> ><br>>> ><br>>> ><br>>> ><br>>> ><br>>> ><br>>> ><br>>> > _______________________________________________<br>
>> > gradsusr mailing list<br>>> > <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>>> > <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
>> ><br>>> ><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 href="mailto:yaqiang.wang@gmail.com">yaqiang.wang@gmail.com</a><br>
>> **************************************************<br>>><br>>><br>>><br>>><br>>> _______________________________________________<br>>> gradsusr mailing list<br>>> <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
>> <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>>><br>><br>><br>><br>> --<br>> Arlindo da Silva<br>> <a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a><br>
><br>> _______________________________________________<br>> gradsusr mailing list<br>> <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>> <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
><br>><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 href="mailto:yaqiang.wang@gmail.com">yaqiang.wang@gmail.com</a><br>**************************************************<br></div></div><br>_______________________________________________<br>
gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br><a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br><br>
</blockquote></div><br><br clear="all"><br>-- <br>
<div>Waheed Iqbal</div>
<div>Meteorologist</div>
<div>Pakistan Meteorological Department</div>
<div>R & D Division, Islamabad,Pakistan.</div>
<div>+923334547814</div>
<div> </div>
<div> </div><br></div>