<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>