<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi Mary,
<div><br>
</div>
<div>Thanks very much for your response please.. *sorry I took long to respond*</div>
<div>I managed to get the script working though (but in a different coding). However, I will go through the example (guide) you provided to see if I can do it the same way..</div>
<div><br>
</div>
<div>Thanks again please,</div>
<div><span style="font-size: 10pt;"><br>
</span></div>
<div><span style="font-size: 10pt;">Wiston &nbsp; &nbsp;</span></div>
<div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF50162" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>From:</b> Mary Haley [haley@ucar.edu]<br>
<b>Sent:</b> 13 February 2015 17:13<br>
<b>To:</b> Modise Wiston<br>
<b>Cc:</b> ncl-talk@ucar.edu<br>
<b>Subject:</b> Re: [ncl-talk] (no subject)<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">
<div class="gmail_default" style="font-size:small">Wiston,</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">If I understand your code correctly, then I think you need to use the special &quot;ZoomIn&quot; attribute that tells the NCL-WRF plotting scripts how to zoom in on a WRF plot.</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">It looks like you got the index locations of the lat/lon area of interest, but then you didn't do anything with this information:</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="">
<div class="gmail_default" style="font-size:small"><font face="monospace, monospace">&nbsp; &nbsp; &nbsp; &nbsp;loc &nbsp;= wrf_user_ll_to_ij(a,(/Min_Lon,Max_Lon/),(/Min_Lat,Max_Lat/),opts)</font></div>
<div style="font-size:small"><br>
</div>
<div style="font-size:small">Once you get &quot;loc&quot;, you can use this with the &quot;ZoomIn&quot; feature to tell the wrf_map_overlays procedure how to zoom in, via this code:</div>
<div style="font-size:small"><br>
</div>
<div style="">
<div style=""><font face="monospace, monospace">&nbsp; &nbsp; &nbsp; &nbsp;; loc(0,:) is west-east (x) ; loc(1,:) is south-north (y) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div>
<div style=""><font face="monospace, monospace">&nbsp; &nbsp; &nbsp; &nbsp;; subtract one since we want to use it as an index in NCL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div>
<div style=""><font face="monospace, monospace">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mpres@ZoomIn = True &nbsp; &nbsp; &nbsp; &nbsp;; set up map info for zoomed area &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</font></div>
<div style=""><font face="monospace, monospace">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mpres@Xstart = loc(0,0) - 1</font></div>
<div style=""><font face="monospace, monospace">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mpres@Xend &nbsp; = loc(0,1) - 1</font></div>
<div style=""><font face="monospace, monospace">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mpres@Ystart = loc(1,0) - 1</font></div>
<div style=""><font face="monospace, monospace">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mpres@Yend &nbsp; = loc(1,1) - 1</font></div>
</div>
<div style="font-size:small"><br>
</div>
<div style="font-size:small"><br>
</div>
<div style="font-size:small">You will also want to comment or remove this code:</div>
<div style="font-size:small"><br>
</div>
<div style="">
<div style="font-size:small"><font face="monospace, monospace">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;;; Setting plotting options &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div>
<div style="font-size:small"><font face="monospace, monospace">; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mpres@mpMaxLatF &nbsp;= Max_Lat &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</font></div>
<div style="font-size:small"><font face="monospace, monospace">; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mpres@mpMinLatF &nbsp;= Min_Lat &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</font></div>
<div style="font-size:small"><font face="monospace, monospace">; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mpres@mpMinLonF &nbsp;= Min_Lon &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div>
<div style="font-size:small"><font face="monospace, monospace">; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mpres@mpMaxLonF &nbsp;= Max_Lon
</font>&nbsp;</div>
<div style="font-size:small"><br>
</div>
<div style="font-size:small">To see a full example of using ZoomIn, go to:</div>
<div style="font-size:small"><br>
</div>
<div style=""><a href="http://www2.mmm.ucar.edu/wrf/OnLineTutorial/Graphics/NCL/Examples/SPECIAL/olr.htm" target="_blank">http://www2.mmm.ucar.edu/wrf/OnLineTutorial/Graphics/NCL/Examples/SPECIAL/olr.htm</a><br>
</div>
<div style=""><br>
</div>
<div style="">and look at the &quot;olr.ncl&quot; script.</div>
<div style=""><br>
</div>
<div style="">--Mary</div>
<div style=""><br>
</div>
</div>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Feb 11, 2015 at 11:44 AM, Modise Wiston <span dir="ltr">
&lt;<a href="mailto:modise.wiston@postgrad.manchester.ac.uk" target="_blank">modise.wiston@postgrad.manchester.ac.uk</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">Hi,<br>
<br>
I want plot data from a larger domain to compare the output [low resolution] with results from a smaller grid [high resolution] for the same location..<br>
The larger domain is the parent to the smaller domain (ratio 20:4). I want to extract data from the large grid just for the grid cells where the smaller domain is located and plot data to compare the results as if I am have results from the same grid at two
 different resolutions.<br>
<br>
I defined the coordinates for the smaller domain (on the parent grid) and I am able to have the map background around the small grid only. However, my script plots data from across the whole parent grid *Not just for the grid cells defined* in the coordinates..<br>
<br>
Any help on how I can do this please.. I want the plotted data for the small grid ONLY?<br>
(See attached code in the script please)<br>
<br>
<br>
Thank you,<br>
Wiston&nbsp; <br>
</div>
</div>
<br>
_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>