<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Sebastian,</div><div><br></div><div>Try adding pltres@FramePlot = False</div><div><br></div><div>I think it is still framing the plot before you add the annotations, gsnDraw and gsnFrame are more related to the plot than the map. See the link below for where the information comes from. I think this is the only change you need in your script.</div><div><br></div><div><a href="https://www.ncl.ucar.edu/Document/Functions/WRF_arw/wrf_map_overlays.shtml">https://www.ncl.ucar.edu/Document/Functions/WRF_arw/wrf_map_overlays.shtml</a></div><div><br></div><div><br></div><div>Hope that helps,</div><div>-Alex</div><div><br></div><div><br><br><br></div><div><br>On Apr 29, 2015, at 7:21 PM, Sebastian Otarola-Bustos <<a href="mailto:Sebastian.F.Otarola-Bustos.1@nd.edu">Sebastian.F.Otarola-Bustos.1@nd.edu</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div><br></div><div>Hi all, </div><div><br></div><div>I'm trying to add the location of a city and it's name in the same plot of a contour-terrain heights drawn over a map.</div><div><br></div><div>I'm editing the <b style="font-style:italic">wrf_wps_ter6.ncl </b>example script. And it works fine plotting the map and the topography, but it doesn't shows me the polymarker and the name of the city. </div><div><br></div><div>If someone see my mistake, I would really aprecciate his help.<br><br>Best regards,<br>Sebastián. </div><div><br><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"<br>load "$NCARG_ROOT<i>/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl"</i><br>begin<br> a=addfile("/afs/<a href="http://crc.nd.edu/user/s/sotarola/WRF/Santiago/Sim/1/geo_em.d01.nc">crc.nd.edu/user/s/sotarola/WRF/Santiago/Sim/1/geo_em.d01.nc</a>","r")<br><br> type = "pdf"<br> wks = gsn_open_wks(type,"Norte") ; Create a plot workstation<br><br> opts = True ; Set some Basic Plot options<br> opts@MainTitle = "GEOGRID FIELDS"<br> opts@InitTime = False ; Do not plot time or footers<br> opts@Footer = False<br> ter = wrf_user_getvar(a,"HGT_M",0) ; Read the variable to memory<br> lat = wrf_user_getvar(a,"lat",-1)<br> lon = wrf_user_getvar(a,"lon",-1)<br> opt = True<br> loc1 = wrf_user_ll_to_ij(a,-70.63929,-33.35079,opt) ; Chanaral<br> loc1 = loc1-1;<br> res = opts <br> res@cnFillOn = True ; Create a color fill plot<br> res@ContourParameters = (/ 0., 5000., 50. /) ; Set the levels<br> <br> contour = wrf_contour(a,wks,ter,res)<br> pltres = True<br> pltres@PanelPlot = True ; Set plot options<br> mpres = True ; Set map options<br> mpres@mpGeophysicalLineColor = "Black" ; Overwrite basic map settings<br> mpres@mpGridLineColor = "Black"<br> mpres@mpLimbLineColor = "Black"<br> mpres@mpNationalLineColor = "Black"<br> mpres@mpPerimLineColor = "Black"<br> mpres@mpUSStateLineColor = "Black"<br> mpres@gsnDraw = False<br> mpres@gsnFrame =False<br> plot = wrf_map_overlays(a,wks,(/contour/),pltres,mpres) ; Plot field over map background<br> ; Poly res desired<br> resp = True<br> resp@gsMarkerColor = "Black"<br> resp@gsMarkerIndex = 16 ; black dot<br> resp@gsMarkerSizeF = 0.01<br> gsn_polymarker(wks,plot,lon(0,loc1(1),loc1(0)),lat(0,loc1(1),loc1(0)),resp) ;<br>; Add the name of the station<br> txres= True<br> txres@txFontHeightF = 0.015 ; text font height<br> gsn_text(wks,plot,"Chanaral",lon(0,loc1(1),loc1(0)),lat(0,loc1(1),loc1(0)),txres)<br> draw(plot)<br> frame(wks)<br>end<br> </blockquote></div></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>ncl-talk mailing list</span><br><span>List instructions, subscriber options, unsubscribe:</span><br><span><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></span><br></div></blockquote></body></html>