# [ncl-talk] representing all domains on a terrain plot

Karin Meier-Fleischer meier-fleischer at dkrz.de
Tue Mar 24 03:12:03 MDT 2015

the lines are resulting from the gsn_polyline_ndc call, where all given
line points were connected. What you want are three single boxes, so you
have to define three boxes like below.

xbox1 = (/ lon2(0,0),lon2(0,nx2),lon2(ny2,nx2),lon2(ny2,0),lon2(0,0) /)
xbox2 = (/ lon3(0,0),lon3(0,nx3),lon3(ny3,nx3),lon3(ny3,0),lon3(0,0) /)
xbox2 = (/ lon4(0,0),lon4(0,nx4),lon4(ny4,nx4),lon4(ny4,0),lon4(0,0) /)

ybox1 = (/ lat2(0,0),lat2(0,nx2),lat2(ny2,nx2),lat2(ny2,0),lat2(0,0) /)
ybox2 = (/ lat3(0,0),lat3(0,nx3),lat3(ny3,nx3),lat3(ny3,0),lat3(0,0) /)
ybox3 = (/ lat4(0,0),lat4(0,nx4),lat4(ny4,nx4),lat4(ny4,0),lat4(0,0) /)

datatondc(map, xbox1, ybox1, xbox_out1, ybox_out1)
datatondc(map, xbox2, ybox2, xbox_out2, ybox_out2)
datatondc(map, xbox3, ybox3, xbox_out3, ybox_out3)

gsn_polyline_ndc(wks, xbox_out1, ybox_out1, lnres)
gsn_polyline_ndc(wks, xbox_out2, ybox_out2, lnres)
gsn_polyline_ndc(wks, xbox_out3, ybox_out3, lnres)

Bye,
Karin

Am 24.03.15 um 09:48 schrieb Muhammad Omer Mughal:
>
> Hi
>
>
> I am trying to plot all wrf nested domains on a single plot like the
> one used in plotgrids.ncl.The only difference is that I am using the
> topgraphic map as my base plot .The problem is tha there is a line
> appearing in the plot and I want to get rid of it .Also I want to add
> text and at designated position in the map .The script and ouptut are
> attahed and I would appreciate if some one can help.
>
>
> *
> *
> MSc BSc Mechanical Engineering
> PhD  Research Scholar
> Remote Sensing and Satellite Research Group
> Department of Imaging and Applied Physics
> Curtin University
>
> Curtin University
> Tel |+61 8 9266 7962
> Fax |+61 8 9266 2377
> Mobile |0470 237 525
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

--
Dipl. Geophys. Karin Meier-Fleischer
Visualization
Application Support

Deutsches Klimarechenzentrum GmbH (DKRZ)
Bundesstrasse 45a - D20146 Hamburg - Germany

Phone:    +49 (0)40 460094 126
Fax:      +49 (0)40 460094 270
E-Mail:   meier-fleischer at dkrz.de
URL:      www.dkrz.de

Geschäftsführer: Prof. Dr. Thomas Ludwig
Sitz der Gesellschaft: Hamburg
Amtsgericht Hamburg HRB 39784

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150324/4a4e68e1/attachment.html