<div dir="ltr">Hi I have this plot as show below and I want to do the following modification<div><br></div><div><img src="cid:ii_j2r74psx0_15c1002ee95244ba" width="363" height="406"><br><br></div><div>Also I want to make the “Output from Geogrid 3.8.1…. EW…Dis” Thicker and place it in the lower left corner.</div><div><br></div><div>This is the code I am using</div><div><br></div><div>=======================================================================================</div><div><div><br></div><div><br></div><div><br></div><div>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"</div><div>load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl"</div><div>;load "./WRFUserARW.ncl"</div><div><br></div><div>begin</div><div>;</div><div>; The WRF ARW input file. </div><div>; This needs to have a ".nc" appended, so just do it.</div><div> a = addfile("<a href="http://geo.nc">geo.nc</a>","r")</div><div><br></div><div>info = (/ " 1 Urban", \ ; n=0</div><div> " 2 Dryland Cropland & Pasture ", \</div><div> " 3 Irrigated Cropland & Pasture", \</div><div> " 5 Cropland/Grassland Mosaic ", \</div><div> " 6 Cropland/Woodland Mosaic ", \</div><div> " 7 Grassland ", \</div><div> " 11 Deciduoud Broadleaf ", \</div><div> " 13 Evergreen Broadleaf ", \</div><div> " 15 Mixed Forest ", \</div><div> "16 Water Bodies ", \</div><div> "19 Parks and Cemeteries ", \</div><div> "31 Low Intensity Residential ", \</div><div> "32 High Instensity Residential ", \</div><div> "33 Commercial and Industrial " /) ; n = 14 </div><div> ninfo = dimsizes(info)</div><div><br></div><div><br></div><div>; We generate plots, but what kind do we prefer?</div><div> ;type = "x11"</div><div> type = "pdf"</div><div>; type = "ps"</div><div>; type = "ncgm"</div><div> wks = gsn_open_wks(type,"LU")</div><div> color = (/ "purple" , "red", "lemonchiffon", "khaki4", "lawngreen", "coral4", "darkgreen", "darkolivegreen1", "darkolivegreen2", "maroon2",\ </div><div> "cyan1", "blue", "black", "yellow", "darkgreen"/) </div><div> </div><div>; Purple here is for the NA/0/ Missing value. No need to place it below in cnLevels ;since there are no missing values</div><div><br></div><div><br></div><div>; Set some Basic Plot options</div><div> res = True</div><div> res@MainTitle = "Land Use Index Reclassified MMEIRS"</div><div> res@Footer = True</div><div> res@tiMainPosition = "Left"</div><div> </div><div><br></div><div>pltres = True</div><div>mpres = True</div><div>res = True</div><div>res@ValidTime = False</div><div>res@InitTime = False</div><div>mpres@mpGridAndLimbOn = False</div><div>mpres@mpGeophysicalLineColor = "Black"</div><div>mpres@mpNationalLineColor = "Black"</div><div>mpres@mpUSStateLineColor = "Black"</div><div>mpres@mpGridLineColor = "Black"</div><div>mpres@mpLimbLineColor = "Black"</div><div>mpres@mpPerimLineColor = "Black"</div><div>mpres@mpGeophysicalLineThicknessF = 1</div><div>mpres@mpDataBaseVersion = "HighRes"</div><div>mpres@mpDataResolution = "FinestResolution"</div><div><br></div><div><br></div><div><br></div><div>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;</div><div>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;</div><div><br></div><div>; What times and how many time steps are in the data set?</div><div> times = wrf_user_getvar(a,"times",-1) ; get all times in the file</div><div> ntimes = dimsizes(times) ; number of times in the file</div><div><br></div><div>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;</div><div><br></div><div> res@TimeLabel = times(0) ; Set Valid time to use on plots</div><div><br></div><div>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;</div><div><br></div><div><br></div><div><br></div><div> </div><div>;For Zooming in</div><div> </div><div>lat2d = wrf_user_getvar(a,"XLAT_V",0) </div><div>lon2d = wrf_user_getvar(a,"XLONG_V",0) </div><div> </div><div> </div><div>; LANDUSE ,</div><div> </div><div> opts = res</div><div> opts@sfXArray = lon2d ; these 2 are for setting sfXArray/sfYArray</div><div> opts@sfYArray = lat2d</div><div> </div><div> opts@cnRasterModeOn = True</div><div> opts@cnFillOn = True ; color Fill </div><div> opts@cnFillMode = "RasterFill" </div><div> opts@cnLinesOn = False ; Turn off contour lines</div><div> opts@cnLevelSelectionMode = "ExplicitLevels" ; set explict contour levels</div><div> opts@cnLevels = (/1,2,3,5,6,7,11,13,15,16,19,31,32,33/) </div><div> opts@cnFillPalette = color ; distinct colors for categories</div><div> opts@gsnSpreadColors = False ; use each color sequentially</div><div><br></div><div> </div><div><br></div><div> rtxt = True</div><div> rtxt@txJust = "TopLeft"</div><div> rtxt@txFontHeightF = 0.01</div><div><br></div><div> res@vpHeightF = 0.475</div><div> res@vpWidthF = 0.475</div><div> </div><div> </div><div>nrow = 3 ; # rows</div><div> ncol = 6 ; # columns</div><div><br></div><div> n = -1 ; counter</div><div> xx = 0.012 ; iterate to get right </div><div> do nc=0,ncol-1</div><div> yy = 0.20 ; 0.065 </div><div> do nr=0,nrow-1</div><div> n = n+1</div><div> if (n.le.(ninfo-1)) then ; handle less than ninfo</div><div> gsn_text_ndc (wks,info(n),xx,yy,rtxt)</div><div> yy = yy - 2*rtxt@txFontHeightF</div><div> end if</div><div> end do</div><div> xx = xx + 0.200 ; iterate to get right </div><div> end do</div><div> </div><div> if(isfilevar(a,"LU_INDEX"))</div><div> land = wrf_user_getvar(a,"LU_INDEX",0)</div><div> contour = wrf_contour(a,wks,land,opts)</div><div> </div><div> mpres@mpLimitMode = "Corners" </div><div> mpres@mpLeftCornerLatF = 14.3 </div><div> mpres@mpLeftCornerLonF = 120.8 </div><div> mpres@mpRightCornerLatF = 14.9 </div><div> mpres@mpRightCornerLonF = 121.3</div><div> </div><div> pltres@LatLonOverlay = True</div><div> </div><div> </div><div> plot = wrf_map_overlays(a,wks,(/contour/),pltres,mpres)</div><div> end if</div><div> </div><div> </div><div> ;draw(plot) Dont draw plot just frame the WKS</div><div> frame(wks)</div><div> </div><div> </div><div> delete(opts)</div><div><br></div><div>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;</div><div><br></div><div>end</div></div><div><p style="margin:0px;font-size:13px;line-height:normal;font-family:arial;color:rgb(35,35,35)"><span style="-webkit-font-kerning: none;">=======================================================================================</span></p><p style="margin:0px;font-size:13px;line-height:normal;font-family:arial;color:rgb(35,35,35)"><span style="-webkit-font-kerning: none;"><br></span></p><p style="margin:0px;font-size:13px;line-height:normal;font-family:arial;color:rgb(35,35,35)"><span style="-webkit-font-kerning: none;"><br></span></p><p style="margin:0px;font-size:13px;line-height:normal;font-family:arial;color:rgb(35,35,35)"><span style="-webkit-font-kerning: none;">Hoping you guys could help </span></p><p style="margin:0px;font-size:13px;line-height:normal;font-family:arial;color:rgb(35,35,35)"><span style="-webkit-font-kerning: none;"><br></span></p><p style="margin:0px;font-size:13px;line-height:normal;font-family:arial;color:rgb(35,35,35)">Thanks,</p><p style="margin:0px;font-size:13px;line-height:normal;font-family:arial;color:rgb(35,35,35)">Jake</p></div></div>
<br>
<a href="http://www.dlsu.edu.ph" target="_blank"><img src="http://www.dlsu.edu.ph/offices/mco/images/email-disclaimer/dlsu-logo.jpg"></a><a href="https://www.facebook.com/DLSU.Manila.100" target="_blank"><img src="http://www.dlsu.edu.ph/offices/mco/images/email-disclaimer/dlsu-fb.jpg"></a><a href="http://instagram.com/dlsu" target="_blank"><img src="http://www.dlsu.edu.ph/offices/mco/images/email-disclaimer/dlsu-instagram.jpg"></a><a href="https://twitter.com/dlsumanila" target="_blank"><img src="http://www.dlsu.edu.ph/offices/mco/images/email-disclaimer/dlsu-twitter.jpg"></a><a href="http://dlsumanila.tumblr.com/" target="_blank"><img src="http://www.dlsu.edu.ph/offices/mco/images/email-disclaimer/dlsu-tumbler.jpg"></a><a href="http://iblog.lasalle.ph/" target="_blank"><img src="http://www.dlsu.edu.ph/offices/mco/images/email-disclaimer/dlsu-blog.jpg"></a><font color="green" face="Arial" size="2"><br><br>DISCLAIMER AND CONFIDENTIALITY NOTICE </font><div><font color="green" face="Arial" size="2">The information contained in this e-mail, including those in its attachments, is confidential and intended only for the person(s) or entity(ies) to which it is addressed. If you are not an intended recipient, you must not read, copy, store, disclose, distribute this message, or act in reliance upon the information contained in it. If you received this e-mail in error, please contact the sender and delete the material from any computer or system. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of De La Salle University. </font></div>