<div dir="ltr">Try this one.<div><br></div><div>





<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:19px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">load "$NCARG_ROOT/lib/ncarg/nclscripts/contrib/cd_string.ncl"</span></p></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 9, 2019 at 7:18 PM Dave Allured - NOAA Affiliate via ncl-talk <<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>That is not the correct load command for this function.  Time_axis_labels is loaded separately.  Please go to the documentation page for time_axis_labels, find the correct load command at the top of that page, and add it to your script.<br><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 9, 2019 at 12:27 AM Zilore Mumba <<a href="mailto:zmumba@gmail.com" target="_blank">zmumba@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Thanks Dave for the hint. i did load the contributed package. I still get the same error. The package I loaded is "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRF_contributed.ncl"</div><div>When I check this script I do not see anywhere where there is a function like "time_axis_labels".</div><div>I will continue to probe and see where am going wrong</div><div>Incidentally, example6 on <a href="https://www.ncl.ucar.edu/Document/Functions/User_contributed/time_axis_labels.shtml" target="_blank">https://www.ncl.ucar.edu/Document/Functions/User_contributed/time_axis_labels.shtml</a>, gives <br><pre><strong>time_axis_labels</strong>( data&time,  res, restick )<br></pre><pre>I assumed there was a mistake  on data&time and corrected it to <br><strong>time_axis_labels</strong>( date&time,  res, restick )<br></pre><pre>Thanks<br></pre><pre>Zilore<br></pre></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 8, 2019 at 10:00 PM Dave Allured - NOAA Affiliate <<a href="mailto:dave.allured@noaa.gov" target="_blank">dave.allured@noaa.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>This is one of the contributed functions that is not loaded automatically.  You are missing a "load" command.  NCL gave you a clue:  "possibly an undefined procedure".  Please look at the top of the function documentation page.</div><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 8, 2019 at 9:14 AM Zilore Mumba via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I am trying to plot a time series. I have converted the dates in the file to the format YYYYMMDD with the function <br></div><div>   t = f->time                            ; to get time in file<br>   cd_date = cd_calendar(t, -2)   ; print(cd_date) prints correctly, eg 19960101,...</div><div>Then to prepare the format for the x-axis label, I have:</div><div><pre> resT1  = true<br></pre><pre> some resources<br> ..............<br></pre><pre> restick = True
 restick@ttmFormat = "%d %c"
 restick@ttmAxis = "YL"
 restick@ttmMajorStride = 20
 <strong>time_axis_labels</strong>( data&time,  res, restick )<br><br></pre><pre>I am getting the error:<br>fatal:syntax error: line 57 in file two-line-plot.ncl before or near \n <br>   time_axis_labels( data&time,  resT1, restick )<br>-------------------------------------------------^<br><br>fatal:syntax error: possibly an undefined procedure<br>fatal:syntax error: line 72 in file two-line-plot.ncl before or near \n <br>   time_axis_labels(cd_date,resT1,restick)<br>------------------------------------------^<br><br>fatal:syntax error: possibly an undefined procedure<br>fatal:Syntax Error in block, block not executed<br>fatal:error at line 76 in file two-line-plot.ncl<br><br></pre><pre>Is the <br><strong>time_axis_labels function still valid, or is there an alternative function?<br></strong></pre><pre><strong>Help will be appreciated.<br></strong></pre><pre><strong>Zilore</strong></pre></div></div></blockquote></div></div></div>
</blockquote></div>
</blockquote></div></div>
_______________________________________________<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/mailman/listinfo/ncl-talk</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior Associate Scientist, Lecturer,</div><div><div><span style="color:rgb(136,136,136)">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)"></div><span style="color:rgb(136,136,136)">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Fax: (972)-25662581</span></div></div><div><span style="color:rgb(136,136,136)"><br></span></div><div>C.E.O, Weather It Is, LTD<br>Weather and Climate Focus<br><a href="http://weather-it-is.com" target="_blank">http://weather-it-is.com</a><br>Jerusalem, Israel<br>Local: 02 930 9525<br>Cell: 054 7 231 170<br>Int-IS: x972 2 930 9525<br><br></div></div></div></div></div>