<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">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">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>