<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Jake,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The wrf_xxxx plotting scripts are really meant to be used in a &quot;black box&quot; sense, in that they specifically put text in locations such that you get an image that roughly covers an 8.5 x 11  page.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you want to place custom strings around the plot, I suggest using gsn_text_ndc, where you use NDC coordinates (0.0 to 1.0) to specify the location of the text strings.  You can use the drawNDCGrid(wks) procedure to help you determine what NDC coordinates to use.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">See example text_20.ncl at:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/text.shtml#ex20">http://www.ncl.ucar.edu/Applications/text.shtml#ex20</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 16, 2017 at 12:50 AM, Jacob Alberto Garcia <span dir="ltr">&lt;<a href="mailto:jacob_garcia@dlsu.edu.ph" target="_blank">jacob_garcia@dlsu.edu.ph</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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>==============================<wbr>==============================<wbr>===========================</div><div><div><br></div><div><br></div><div><br></div><div>load &quot;$NCARG_ROOT/lib/ncarg/<wbr>nclscripts/csm/gsn_code.ncl&quot;</div><div>load &quot;$NCARG_ROOT/lib/ncarg/<wbr>nclscripts/wrf/WRFUserARW.ncl&quot;</div><div>;load &quot;./WRFUserARW.ncl&quot;</div><div><br></div><div>begin</div><div>;</div><div>; The WRF ARW input file.  </div><div>; This needs to have a &quot;.nc&quot; appended, so just do it.</div><div>  a = addfile(&quot;<a href="http://geo.nc" target="_blank">geo.nc</a>&quot;,&quot;r&quot;)</div><div><br></div><div>info     = (/ &quot; 1  Urban&quot;,                             \  ; n=0</div><div>                &quot; 2  Dryland Cropland &amp; Pasture &quot;,     \</div><div>                &quot; 3  Irrigated Cropland &amp; Pasture&quot;,    \</div><div>                &quot; 5  Cropland/Grassland Mosaic &quot;,      \</div><div>                &quot; 6 Cropland/Woodland Mosaic       &quot;,  \</div><div>                &quot; 7  Grassland   &quot;,                    \</div><div>                &quot; 11  Deciduoud Broadleaf    &quot;,        \</div><div>                &quot; 13  Evergreen Broadleaf      &quot;,      \</div><div>                &quot; 15  Mixed Forest          &quot;,         \</div><div>                &quot;16 Water Bodies          &quot;,           \</div><div>                &quot;19 Parks and Cemeteries  &quot;,           \</div><div>                &quot;31  Low Intensity Residential          &quot;, \</div><div>                &quot;32  High Instensity Residential  &quot;, \</div><div>                &quot;33  Commercial and Industrial    &quot; /) ; 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 = &quot;x11&quot;</div><div> type = &quot;pdf&quot;</div><div>; type = &quot;ps&quot;</div><div>; type = &quot;ncgm&quot;</div><div>  wks = gsn_open_wks(type,&quot;LU&quot;)</div><div>   color = (/ &quot;purple&quot; , &quot;red&quot;, &quot;lemonchiffon&quot;, &quot;khaki4&quot;, &quot;lawngreen&quot;, &quot;coral4&quot;, &quot;darkgreen&quot;, &quot;darkolivegreen1&quot;, &quot;darkolivegreen2&quot;, &quot;maroon2&quot;,\  </div><div>             &quot;cyan1&quot;, &quot;blue&quot;, &quot;black&quot;, &quot;yellow&quot;, &quot;darkgreen&quot;/)  </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                   = &quot;Land Use Index Reclassified MMEIRS&quot;</div><div>  res@Footer = True</div><div>  res@tiMainPosition = &quot;Left&quot;</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      = &quot;Black&quot;</div><div>mpres@mpNationalLineColor         = &quot;Black&quot;</div><div>mpres@mpUSStateLineColor          = &quot;Black&quot;</div><div>mpres@mpGridLineColor             = &quot;Black&quot;</div><div>mpres@mpLimbLineColor             = &quot;Black&quot;</div><div>mpres@mpPerimLineColor            = &quot;Black&quot;</div><div>mpres@<wbr>mpGeophysicalLineThicknessF = 1</div><div>mpres@mpDataBaseVersion           = &quot;HighRes&quot;</div><div>mpres@mpDataResolution            = &quot;FinestResolution&quot;</div><div><br></div><div><br></div><div><br></div><div>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<wbr>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<wbr>;;;;</div><div>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<wbr>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<wbr>;;;;</div><div><br></div><div>; What times and how many time steps are in the data set?</div><div>  times = wrf_user_getvar(a,&quot;times&quot;,-1)  ; get all times in the file</div><div>  ntimes = dimsizes(times)         ; number of times in the file</div><div><br></div><div>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<wbr>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<wbr>;;;;</div><div><br></div><div>    res@TimeLabel = times(0)    ; Set Valid time to use on plots</div><div><br></div><div>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<wbr>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<wbr>;;;;</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,&quot;XLAT_V&quot;,0) </div><div>lon2d = wrf_user_getvar(a,&quot;XLONG_V&quot;,0)<wbr> </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       = &quot;RasterFill&quot; </div><div>  opts@cnLinesOn        =  False             ; Turn off contour lines</div><div>  opts@cnLevelSelectionMode = &quot;ExplicitLevels&quot; ; set explict contour levels</div><div>  opts@cnLevels         =  (/1,2,3,5,6,7,11,13,15,16,19,<wbr>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        = &quot;TopLeft&quot;</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,&quot;LU_INDEX&quot;))</div><div>        land = wrf_user_getvar(a,&quot;LU_INDEX&quot;,<wbr>0)</div><div>        contour = wrf_contour(a,wks,land,opts)</div><div>        </div><div>        mpres@mpLimitMode = &quot;Corners&quot; </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,(/<wbr>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>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<wbr>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<wbr>;;;;</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>==============================<wbr>==============================<wbr>===========================</span></p><p style="margin:0px;font-size:13px;line-height:normal;font-family:arial;color:rgb(35,35,35)"><span><br></span></p><p style="margin:0px;font-size:13px;line-height:normal;font-family:arial;color:rgb(35,35,35)"><span><br></span></p><p style="margin:0px;font-size:13px;line-height:normal;font-family:arial;color:rgb(35,35,35)"><span>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><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><br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>