<div dir="ltr">Thanks, Mary and Adam, <div><br></div><div>I tried the create a newlist and push the data into the list using a loop. But Mary's suggestions works well and much easier.</div><div><br></div><div>Thanks again! </div><div><br></div><div>Jiashu </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 30, 2018 at 10:11 AM, Adam Phillips <span dir="ltr"><<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</a>></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 Jiashu,<div>If you setting the following:</div><div>res@tmXBMode = "Explicit"<br></div><div>res@tmXBValues = ispan(0,ntimes-1,1)<br></div><div>you generally want to tell NCL what labels to use by setting tmXBLabels:</div><div>res@tmXBLabels = date_list<br></div><div>I see you have the tmXBLabels line in your script (commented out) but I do not see a date_list array initialized anywhere. <br></div><div><br></div><div>Furthermore, you have this line:</div><div>res@lbLabelStrings = date_list<br></div><div>(Again, date_list is not initialized prior to this line.) In order to explicitly set the lbLabelStrings for a contour plot you also have to set cnExplicitLegendLabelsOn = True. </div><div>See documentation here:</div><div><a href="http://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnExplicitLabelBarLabelsOn" target="_blank">http://www.ncl.ucar.edu/<wbr>Document/Graphics/Resources/<wbr>cn.shtml#<wbr>cnExplicitLabelBarLabelsOn</a><br></div><div><br></div><div>Hope that helps. If not, or if you have any further questions please respond to the ncl-talk email list.</div><div>Adam</div></div><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Thu, Apr 26, 2018 at 7:42 PM, Ying Song <span dir="ltr"><<a href="mailto:ying.song@sjsu.edu" target="_blank">ying.song@sjsu.edu</a>></span> wrote:<br></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi, NCL helper,<div><br></div><div>I have a questions self defined labelbar want extract date info from a list of ascii files. The filenames are following these pattern: (th1001_<b>2015_05_07</b>_18.l100)</div><div><br></div><div>I created a new list(date_list) and use it to label my plot. I tried:</div><div> res@tmXBLabels = date_list</div><div><br></div><div> </div><div>Received the err: </div><div><div>warning:attsetvalues: the value associated with (lbLabelStrings) does not have</div><div>warning:The value associated with (lbLabelStrings) does not have an HLU representation. </div></div><div><br></div><div>Any thoughts or suggestions about this error? Thank you very much!</div><div><br></div><div>Jiashu</div></div>
<br></div></div><span class="">______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">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/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div class="m_-1765367502596025051gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist, </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/<wbr>asphilli/</a> </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>
</font></span></div>
</blockquote></div><br></div>