[ncl-talk] Someway to change the title Rsource?

Barry Lynn barry.h.lynn at gmail.com
Tue May 4 13:48:27 MDT 2021


Hi:

I am doing a loop where I overlay one plot on top of another.

I'd like each xy plot to display its own title, in particular with it's own
radius.

However, I am only able to see on each plot the radius of the first plot
(called plot), rather than the radius that should appear in the MainTitle
each loop.

Any suggestions?

Thank you

  do kr = 4,nkr
  delete (res at tiMainString)
  radius = sprintf("%6.1f", xrr(kr-1))
  print("radius = " + radius)
  res at tiMainString      = "Raindrops on Window "  + radius
  print("res at tiMainString  = " + res at tiMainString )
  ff_name = "ff"+sprinti("%0.2i", kr)
  ff1_name = "ff1i"+sprinti("%0.2i", kr)
  print("ff_name = " + ff_name)
  print("ff1_name = " + ff1_name)
  data :=wrf_user_getvar(o,ff1_name,time)
  data_1d  = ndtooned(data(0,:,:))
  printVarSummary(data_1d)
  unf_1d = ndtooned(unf)
  printVarSummary(unf_1d)
  data_1d = where(data_1d.le.1.E-5,-999,data_1d)
  max_data = max(data_1d)
  data_1d = where(data_1d.ne.-999,data_1d/max_data,data_1d)
; print(cmap)
  res at xyMarkerColor     = cmap(kr*3,:)               ; Marker color
  res at xyMarkerSizeF     = 0.1*xr(kr-1)
  plot_name := "plot_"+sprinti("%0.2i", kr)
  print("plot_name = " + plot_name)
  plot_name  := gsn_csm_xy (wks,unf_1d,data_1d,res)                    ;
create plot
  overlay(plot,plot_name)
  draw(plot)
  frame(wks)
  end do

-- 
Guest Editor of Special Issue “Extreme Hydroclimatic Events and Prediction”
LINK:
https://www.mdpi.com/journal/water/special_issues/Extreme_Hydroclimatic_Events

Barry H. Lynn, Ph.D
Senior Associate Scientist, Lecturer,
The Institute of the Earth Science,
The Hebrew University of Jerusalem,
Givat Ram, Jerusalem 91904, Israel
Tel: 972 547 231 170
Fax: (972)-25662581

C.E.O, Weather It Is, LTD
Weather and Climate Focus
http://weather-it-is.com
Jerusalem, Israel
Local: 02 930 9525
Cell: 054 7 231 170
Int-IS: x972 2 930 9525
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20210504/0898c98a/attachment.html>


More information about the ncl-talk mailing list