<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 </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 "ZoomIn" 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"> loc = 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 "loc", you can use this with the "ZoomIn" 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"> ; loc(0,:) is west-east (x) ; loc(1,:) is south-north (y) </font></div>
<div style=""><font face="monospace, monospace"> ; subtract one since we want to use it as an index in NCL </font></div>
<div style=""><font face="monospace, monospace"> mpres@ZoomIn = True ; set up map info for zoomed area </font></div>
<div style=""><font face="monospace, monospace"> mpres@Xstart = loc(0,0) - 1</font></div>
<div style=""><font face="monospace, monospace"> mpres@Xend = loc(0,1) - 1</font></div>
<div style=""><font face="monospace, monospace"> mpres@Ystart = loc(1,0) - 1</font></div>
<div style=""><font face="monospace, monospace"> mpres@Yend = 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"> ;;; Setting plotting options </font></div>
<div style="font-size:small"><font face="monospace, monospace">; mpres@mpMaxLatF = Max_Lat </font></div>
<div style="font-size:small"><font face="monospace, monospace">; mpres@mpMinLatF = Min_Lat </font></div>
<div style="font-size:small"><font face="monospace, monospace">; mpres@mpMinLonF = Min_Lon </font></div>
<div style="font-size:small"><font face="monospace, monospace">; mpres@mpMaxLonF = Max_Lon
</font> </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 "olr.ncl" 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">
<<a href="mailto:modise.wiston@postgrad.manchester.ac.uk" target="_blank">modise.wiston@postgrad.manchester.ac.uk</a>></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 <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>