<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I don't know about WRF specifically, but if the variables that you're using to do the contour plot have the right attributes and coordinate variables assigned they should be automatically subsetted when zooming on a region.&nbsp;<div class="">Maybe try to assign the lat2d and lon2d coordinates to the variable? Also, which routine are you specifically using to plot? How many overlays are you performing?&nbsp;</div><div class=""><br class=""></div><div class="">I had to do something similar with satellite data (same method for WRF may vary though...)</div><div class=""><br class=""></div><div class=""><div class=""><font face="Menlo" class="">ir_10p8 = short2flt(f[:]-&gt;ch9)</font></div></div><div class=""><div class=""><font face="Menlo" class="">lat2d &nbsp; = f[:]-&gt;lat</font></div><div class=""><font face="Menlo" class="">lon2d &nbsp; = f[:]-&gt;lon</font></div><div class=""><font face="Menlo" class=""><br class=""></font></div><div class=""><font face="Menlo" class="">ir_10p8@lat2d=lat2d(0,:,:)</font></div><div class=""><font face="Menlo" class="">ir_10p8@lon2d=lon2d(0,:,:)</font></div><div class=""><font face="Menlo" class=""><br class=""></font></div><div class=""><div class=""><font face="Menlo" class="">ResC@mpLimitMode = "LatLon"</font></div><div class=""><font face="Menlo" class="">ResC@mpMaxLonF &nbsp; &nbsp;= 18 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; specify the plot domain</font></div><div class=""><font face="Menlo" class="">ResC@mpMinLonF &nbsp; &nbsp;= 11 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;</font></div><div class=""><font face="Menlo" class="">ResC@mpMinLatF &nbsp; &nbsp;= 33 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;</font></div><div class=""><font face="Menlo" class="">ResC@mpMaxLatF &nbsp; &nbsp;= 39 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</font></div></div><div class=""><font face="Menlo" class=""><br class=""></font></div><div class=""><div class=""><font face="Menlo" class="">plot = gsn_csm_contour(wks,ir_10p8(i,:,:),ResC)</font></div></div><div class=""><br class=""></div><div class=""><br class=""></div></div><div class=""><div><blockquote type="cite" class=""><div class="">On 01 Jun 2017, at 13:53, Luis Cesareo Cana Cascallar &lt;<a href="mailto:luis.cana@ulpgc.es" class="">luis.cana@ulpgc.es</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class="">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">

<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Dear all,
<div class="">I’m trying to redraw a plot with maps, contours and vectors zooming in a specific area. To do so, I’ve set the following parameters:</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">; &nbsp;mpres@mpLimitMode = "Corners"&nbsp;</div>
<div class="">; &nbsp;mpres@mpLeftCornerLatF = 28.0&nbsp;</div>
<div class="">; &nbsp;mpres@mpLeftCornerLonF = -13.65&nbsp;</div>
<div class="">; &nbsp;mpres@mpRightCornerLatF = 28.8&nbsp;</div>
<div class="">; &nbsp;mpres@mpRightCornerLonF = -14.55</div>
</div>
<div class=""><br class="">
</div>
<div class="">The map looks nice, but the variables are not drawn accordingly to this new zoomed map. NCL overlay the original data over the zoomed map because because that’s what I’m telling it to do...</div>
<div class=""><br class="">
</div>
<div class="">I’ve taken a look to the NCL WRF tutorial about zooming in a plot, but they took another approach, locating (x,y) coordinates from the given corners and creating new zoomed variables. I think this method may be a bit outdated. I’ve also googled
 in ncl-talk archives about this topic and I found an old mail (Jan 9, 2011) with a similar problem&nbsp;<span style="background-color: rgb(255, 255, 255);" class="">but it required a mod to WRFUserARW.ncl</span><span style="background-color: rgb(255, 255, 255);" class="">&nbsp;in
 order to add special resources. As it’s an old mail, is still valid?&nbsp;</span></div>
<div class=""><br class="">
</div>
<div class="">Is it possible to set the above limits to the contour and vector plots just by setting the left and right corner as above? If not, which is the best approach to this problem?</div>
<div class=""><br class="">
</div>
<div class="">Best,</div>
<div class=""><br class="">
</div>
<div class="">Luis</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div class=""><span class=""><span id="cid:B00E1AE2-614B-461B-9561-42FA796CA6DF@ccbb.ulpgc.es">&lt;Luis Cesareo Cana Cascallar.gif&gt;</span></span>
</div>
<br class="">
</div>
</div>

_______________________________________________<br class="">ncl-talk mailing list<br class=""><a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class="">List instructions, subscriber options, unsubscribe:<br class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk<br class=""></div></blockquote></div><br class=""><div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class="Apple-interchange-newline">Guido Cioni</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://guidocioni.altervista" class="">http://guidocioni.altervista</a>.org</div>

</div>
<br class=""></div></body></html>