<div dir="ltr"><div><div><div><div>Hi Laura,<br><br></div>I took a peek at those files, and it appears that xtime is a character array, such that if you print it, you get:<br><br>Variable: xtime (file variable)<br>Type: character<br>Total Size: 64 bytes<br> 64 values<br>Number of Dimensions: 2<br>Dimensions and sizes: [Time | 1] x [StrLen | 64]<br>Coordinates: <br>Number Of Attributes: 0<br>(0,0) 2<br>(0,1) 0<br>(0,2) 1<br>(0,3) 5<br>(0,4) -<br>(0,5) 0<br>(0,6) 5<br>(0,7) -<br>(0,8) 0<br>(0,9) 6<br>(0,10) _<br>(0,11) 0<br>(0,12) 0<br>(0,13) :<br>(0,14) 1<br>(0,15) 5<br>(0,16) :<br>(0,17) 0<br>(0,18) 0<br>(0,19) <br>(0,20) <br>(0,21) <br>(0,22) <br>...<br><br><br></div>You might try setting res2@tiMainString = tostring(xtime)<br><br></div>HTH...<br></div>Rick<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 29, 2016 at 9:08 AM, Laura Fowler <span dir="ltr"><<a href="mailto:laura@ucar.edu" target="_blank">laura@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello:<br>
<br>
I am trying to plot the same string "tiMainString", one using<br>
"res@tiMainString =" for the title of a global plot and one using<br>
"res2@tiMainString =" for the title of a regional plot centered over<br>
CONUS. At the top of my ncl script, I set res2 = res. I do not have<br>
any issue plotting the global and regional fields using<br>
res@gsnLeftString and res2@gsnLeftString, but:<br>
<br>
I am able to plot the correct main title for the global map using<br>
res@tiMainString but for the regional map using res2@tiMainString, I<br>
get a "2" for the main tile instead of the actual title. Printing<br>
res@tiMainString before calling gsn_csm_contour_map is correct, and<br>
the regional pdf file is correct as well, besides the main title? I am<br>
not sure what is going on, and why the correct "res2" title is not<br>
plotted correctly.<br>
<br>
My script is in<br>
/glade/scratch/laura/MPASprojects.2016/2016-04-26_00/plots/plots_mpas.t2m.mynn38.ncl<br>
<br>
Thanks,<br>
Laura<br>
<br>
<br>
<br>
--<br>
!-------------------------------------------------------------------------------------------------------------<br>
Laura D. Fowler<br>
Mesoscale and Microscale Meteorology Division (MMM)<br>
National Center for Atmospheric Research<br>
P.O. Box 3000, Boulder CO 80307-3000<br>
<br>
e-mail: <a href="mailto:laura@ucar.edu">laura@ucar.edu</a><br>
phone: <a href="tel:303-497-1628" value="+13034971628">303-497-1628</a><br>
<br>
!-------------------------------------------------------------------------------------------------------------<br>
_______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
</blockquote></div><br></div>