<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small">Borja,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I think what is happening is that when you use wrf_user_ll_to_ij to select the region of interest for plotting, you are only getting an approximation of that region, because this function looks for the closest lat/lon coordinate associated with your data. In order to do an exact match, it would have to interpolate, which is not what this function was meant for.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you want to see the zoomed data in the exact area that you've specified, then please look at our "WRF plotting - zooming in on maps" examples page, and in particular, look at example wrf_zoom_3.ncl:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/wrfzoom.shtml#ex3">http://www.ncl.ucar.edu/Applications/wrfzoom.shtml#ex3</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">This requires that you not use the gsn_csm_xxxx_map plotting functions, but I think you might find that you have more flexibility with the plots if you use these functions.</div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Dec 21, 2018 at 1:40 AM Borja Sas González <<a href="mailto:saszalez@gmail.com">saszalez@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Dear Mary.<div><br></div><div>Thanks for your answer.<br></div><div><br></div><div>You're right, I have an error in the units. Still, that does not solve the error when ncl draw the map with zoom.<br></div><div><br></div><div>I explain it, and I attach images.<br></div><div><br></div><div>The first plott is of the complete domain. That plott is correct and corresponds to the "Full domain" image.<br></div><div><br></div><div>In the second plott I try to zoom. I indicate in the script the following:<br></div><div><br></div><div><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font color="#0000ff">;--- Establecimiento de variables</font></span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;background-color:rgba(0,0,0,0);min-height:16px"><font color="#0000ff"><span style="font-variant-ligatures:no-common-ligatures"></span><br></font></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font color="#0000ff">  time = 12</font></span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;background-color:rgba(0,0,0,0);min-height:16px"><font color="#0000ff"><span style="font-variant-ligatures:no-common-ligatures"></span><br></font></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font color="#0000ff">  minlat = 28.10</font></span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font color="#0000ff">  maxlat = 28.30</font></span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font color="#0000ff">  minlon = -16.40</font></span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font color="#0000ff">  maxlon = -16.15</font></span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;background-color:rgba(0,0,0,0);min-height:16px"><font color="#0000ff"><span style="font-variant-ligatures:no-common-ligatures"></span><br></font></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font color="#0000ff">  loc = wrf_user_ll_to_ij(a,(/minlon,maxlon/),(/minlat,maxlat/),True)</font></span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;background-color:rgba(0,0,0,0);min-height:16px"><font color="#0000ff"><span style="font-variant-ligatures:no-common-ligatures"></span><br></font></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font color="#0000ff">  x_start = loc(0,0) - 1</font></span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font color="#0000ff">  x_end   = loc(0,1) - 1</font></span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font color="#0000ff">  y_start = loc(1,0) - 1</font></span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font color="#0000ff">  y_end   = loc(1,1) - 1</font></span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font color="#0000ff"><br></font></span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font color="#0000ff">;--- Creación de los gráficos para el dominio zoom</font></span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font color="#0000ff"><br></font></span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font color="#0000ff">  mpres@ZoomIn = True        ; set up map info for zoomed area</font></span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font color="#0000ff">  mpres@Xstart = x_start</font></span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font color="#0000ff">  mpres@Ystart = y_start</font></span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font color="#0000ff">  mpres@Xend = x_end</font></span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font color="#0000ff">  mpres@Yend = y_end</font></span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;background-color:rgba(0,0,0,0);min-height:16px"><font color="#0000ff"><span style="font-variant-ligatures:no-common-ligatures"></span><br></font></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font color="#0000ff">






</font></span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font color="#0000ff">  plot = wrf_map_overlays(a,wks,(/vectorz/),pltres,mpres)</font></span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p>As you can see in the zoom image, the latitude and longitude do not correspond with what I have indicated (minlat, maxlat, minlon, maxlon).</div><div><br></div><div>Best regards.</div></div></div></div></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">El jue., 20 dic. 2018 a las 23:45, Mary Haley (<<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-size:small">Dear Borja,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Can you be more specific on what you mean by "it does not draw the latitude and longitude indicated in the script."?  It helps if you can provide an image and then indicate exactly what is wrong with the image.<br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">One thing that is not correct with your code is that u10 and v10 are getting multiplied twice by 1.94386.  You first have it here:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><p style="background-color:rgba(0,0,0,0);margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">;--- Establecimiento de las variables de viento</span></p><p style="background-color:rgba(0,0,0,0);margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  u10       = wrf_user_getvar(a,"U10",time)    </span></p><p style="background-color:rgba(0,0,0,0);margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  v10       = wrf_user_getvar(a,"V10",time)   </span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0)"><span style="background-color:rgb(255,255,0)"><span style="font-variant-ligatures:no-common-ligatures">  u10       = u10*1.94386             </span><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures">      </span></span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span style="background-color:rgb(255,255,0)">  v10       = v10*1.94386              </span>       </span></p><p style="background-color:rgba(0,0,0,0);margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  u10@units = "kts"                            </span></p><p style="background-color:rgba(0,0,0,0);margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  v10@units = "kts" </span></p></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">and then it is done again here:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><p style="background-color:rgba(0,0,0,0);margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">;--- Establecimiento de las variables de viento para zoom</span></p><p style="background-color:rgba(0,0,0,0);margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  u10z      = u10(y_start:y_end,x_start:x_end) ; u a 10 m con zoom</span></p><p style="background-color:rgba(0,0,0,0);margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  v10z      = v10(y_start:y_end,x_start:x_end) ; v a 10 m con zoom</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0)"><b style="background-color:rgb(255,255,0)"><span style="font-variant-ligatures:no-common-ligatures">  u10       = u10*1.94386         </span><span style="font-variant-ligatures:no-common-ligatures"><--------- u10 and v10 have already been multiplied by 1.94386</span><span style="font-variant-ligatures:no-common-ligatures"> </span></b></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0)"><b><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,0)">  v10       = v10*1.94386           </span></b></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,0)">  u10@units = "kts"               <--------- u10 and v10 already have the units applied</span></p><p style="background-color:rgba(0,0,0,0);margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  v10@units = "kts" </span></p><p style="background-color:rgba(0,0,0,0);margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p></div><div class="gmail_default" style="font-size:small">Note that u10z and v10z should already have the 1.94386 scale factor applied, but their units are not correct. You set the u10 and v10 units to "kts" twice.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I'm not sure if this is going to affect the lat/lon issue, but if you still have the lat/lon issue after fixing the above, then provide an image if you can. It would help to include the non-zoomed image as well.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Thanks,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Dec 19, 2018 at 3:28 PM Borja Sas González <<a href="mailto:saszalez@gmail.com" target="_blank">saszalez@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>Dear NCL users.</div><div><br></div><div>I have created a simple script, in which the wind vectors are drawn at 10 m. Also, I try to zoom the domain, but it does not draw the latitude and longitude indicated in the script. The latitude and longitude that is drawn is random.</div><div><br></div><div>Can someone help me find the error?</div><div><br></div><div>Thank you very much to all.</div><div><br></div><div><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl"</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0);min-height:16px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">begin</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">;--- Open WRF output file</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  a = addfile("wrfout_d03_2018-12-19_00:00:<a href="http://00.nc" target="_blank">00.nc</a>","r")</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0);min-height:16px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">;--- Start the graphics</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  wks = gsn_open_wks("x11","Puertito")</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0);min-height:16px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">;--- Set some basic plot options</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  res = True</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  res@MainTitle = "Kitersurf Wind"</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0);min-height:16px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">;--- Establecimiento de variables</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0);min-height:16px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  time = 12</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0);min-height:16px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  minlat = 28.10</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  maxlat = 28.30</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  minlon = -16.40</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  maxlon = -16.15</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0);min-height:16px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  loc = wrf_user_ll_to_ij(a,(/minlon,maxlon/),(/minlat,maxlat/),True)</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0);min-height:16px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  x_start = loc(0,0) - 1</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  x_end   = loc(0,1) - 1</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  y_start = loc(1,0) - 1</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  y_end   = loc(1,1) - 1</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0);min-height:16px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">;--- Establecimiento de las variables de viento</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  u10       = wrf_user_getvar(a,"U10",time)    </span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  v10       = wrf_user_getvar(a,"V10",time)   </span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  u10       = u10*1.94386                      </span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  v10       = v10*1.94386                      </span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  u10@units = "kts"                            </span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  v10@units = "kts"                            </span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0);min-height:16px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">;--- Establecimiento de las variables de viento para zoom</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  u10z      = u10(y_start:y_end,x_start:x_end) ; u a 10 m con zoom</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  v10z      = v10(y_start:y_end,x_start:x_end) ; v a 10 m con zoom</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  u10       = u10*1.94386                      ; vector uz en knots</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  v10       = v10*1.94386                      ; vector vz en knots</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  u10@units = "kts"                            ; unidad del vector uz</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  v10@units = "kts"                            ; unidad del vector vz</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0);min-height:16px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">;--- Opciones de plotting de los vectores de viento</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0);min-height:16px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  opts = res</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  opts@FieldTitle = "Viento"     </span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  opts@NumVectors = 47           </span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  vector  = wrf_vector(a,wks,u10,v10,opts)</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  vectorz = wrf_vector(a,wks,u10z,v10z,opts)</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  delete(opts)</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0);min-height:16px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  pltres = True</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0);min-height:16px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  mpres = True</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0);min-height:16px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">;--- Variables del mapa de terreno</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  mpres@mpGeophysicalLineColor = "Black"</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  mpres@mpNationalLineColor = "Black"</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  mpres@mpGridAndLimbOn = False                  </span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  mpres@mpDataBaseVersion = "HighRes"         </span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  mpres@mpDataSetName = "Earth..4"              </span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  mpres@mpGeophysicalLineThicknessF = 5         </span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  mpres@mpNationalLineThicknessF = 3             </span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  mpres@mpShapeMode = "FreeAspect"</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  mpres@vpKeepAspect = True</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  ;mpres@vpWidthF = 0.9</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  ;mpres@vpHeightF = 0.6</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0);min-height:16px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">;--- Creación de los gráficos para el dominio completo</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  plot = wrf_map_overlays(a,wks,(/vector/),pltres,mpres)</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0);min-height:16px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">;--- Creación de los gráficos para el dominio zoom</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  mpres@ZoomIn = True        </span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  mpres@Xstart = x_start</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  mpres@Ystart = y_start</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  mpres@Xend = x_end</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  mpres@Yend = y_end</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0);min-height:16px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">  plot = wrf_map_overlays(a,wks,(/vectorz/),pltres,mpres)</span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0);min-height:16px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">end</span></p></div></div></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_8150840259352004046gmail_signature">Borja Sas González</div>
</blockquote></div>