<div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Hi</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">I'm running an NCL script which utilizes the time_axes_labels function on two different machines. Since it is a contributed function, it needs to be loaded manually in the preamble. The script runs smoothly on one of the machines but fails on the other.</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">I use these two lines in the beginning of my script:</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">load "$NCARG_ROOT/lib/ncarg/nclscripts/contrib/time_axis_labels.ncl"<br>load "$NCARG_ROOT/lib/ncarg/nclscripts/contrib/cd_string.ncl"<br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">and the code snippet where I use the function is here:</div><div class="gmail_default" style=""><font face="arial, sans-serif" color="#0000ff">;--------------------------------------------------<br>; The time_axis_label function adds additional<br>; resources to "res" to produce nicely-formatted<br>; time labels on X axis. This function only works<br>; if you have a time "units" recognized by the<br>; cd_calendar function.<br>;--------------------------------------------------<br>  restick           = True<br>  restick@ttmFormat = "%Y"<br>  restick@ttmMajorStride= 12<br>  restick@ttmMinorStride= 1<br>  timearr = ispan (1,228,1)<br>  timearr@units = "months since 2000-01-01 00:00:00"<br>  time_axis_labels(timearr,res,restick)         ; this is line no. 154<br>  res@trXMaxF=max(timearr)<br></font></div><div class="gmail_default" style=""><font face="arial, sans-serif" color="#0000ff"><br></font></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">I get the following error on one of the machines:</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><font color="#ff0000">fatal:["NclAtt.c":262]:Attribute assignment type mismatch.<br><br>fatal:["Execute.c":8637]:Execute: Error occurred at or near line 214 in file $NCARG_ROOT/lib/ncarg/nclscripts/contrib/time_axis_labels.ncl<br><br>fatal:["Execute.c":8637]:Execute: Error occurred at or near line 154 in file noxtagging-stackedcontributions.ncl<br></font></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Please let me know if you can spot something obviously wrong here. I'm running NCL 6.6.2 on both machines.</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Thanks.</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">kind regards,</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Tabish</div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><font face="trebuchet ms, sans-serif" color="#666666">--------------------------------------------------------------------------------------<br><span style="background-color:rgb(255,255,255)">Dr Tabish Ansari</span></font></div><div><font face="trebuchet ms, sans-serif" color="#666666">Research Associate </font></div><div><font face="trebuchet ms, sans-serif" color="#666666">Air Quality Modelling Group</font></div><div><span style="background-color:rgb(255,255,255)"><span style="font-weight:normal"><font face="trebuchet ms, sans-serif" color="#666666">Research Institute for Sustainability (RIFS) - Helmholtz Centre Potsdam </font></span></span></div><div><font face="trebuchet ms, sans-serif" color="#666666">Potsdam, Germany</font></div></div></div></div></div>