<div dir="ltr">Dear Rick,<div>Many thanks for your help. it is working now. However, I noticed when I plot the data for two different dates ( <span style="background-color:rgb(180,167,214)">1979-2015</span> & <span style="background-color:rgb(180,167,214)">2000-2015</span>), I get the same result. What is my mistake? Would you please advise me in this regard?</div><div>Best wishes,</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 4, 2019 at 5:55 PM Rick Brownrigg <<a href="mailto:brownrig@ucar.edu">brownrig@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>Hi,</div><div><br></div><div>Docs for clmMonTLL says that the input variable can be of type float or "numeric", but it really must be either float or double. Notice that your variable "u" is of type short, and that further there are "add_offset" and "scale_factor" attributes that must be applied to the data to get the actual values. "short2flt()" is exactly the function you want; I think this will do it:<br></div><div><br></div><div> uClm = clmMonTLL (short2flt(u))<br> vClm = clmMonTLL (short2flt(v)) <br></div><div><br></div><div> <a href="http://ncl.ucar.edu/Document/Functions/Contributed/short2flt.shtml" target="_blank">http://ncl.ucar.edu/Document/Functions/Contributed/short2flt.shtml</a></div><div><br></div><div>There are numerous examples of how to write NetCDF file at the following link. I recommend the "inefficient" way. Its much easier and not that inefficient unless you are dealing with lots of really big variables or are writing files on a production basis.</div><div><br></div><div> <a href="http://ncl.ucar.edu/Applications/write_netcdf.shtml" target="_blank">http://ncl.ucar.edu/Applications/write_netcdf.shtml</a></div><div><br></div><div>Hope that helps...</div><div>Rick</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 4, 2019 at 5:42 AM zoe jacobs 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">Dear All,<div>I attempted to plot climatological wind speed during 1979-2015. But I faced an error and have no idea from where this problem arose. ( I checked the NCL website but was not enough: <a href="https://www.ncl.ucar.edu/Document/Language/error_messages.shtml#AssignMismatch" target="_blank">https://www.ncl.ucar.edu/Document/Language/error_messages.shtml#AssignMismatch</a> ).Please have a look at the attached script, error message, and data file. I also have another question, after having climatological wind, how can I have the result as nc file?</div><div>I am waiting for your helpful suggestions.</div><div>Many thanks in advance.</div><div></div><div class="gmail_chip gmail_drive_chip" style="width:396px;height:18px;max-height:18px;background-color:rgb(245,245,245);padding:5px;font-family:arial;font-weight:bold;font-size:13px;border:1px solid rgb(221,221,221);line-height:1"><a href="https://drive.google.com/file/d/1DAUj5O8_HRB80p6f2ieiubdjqGlUokTL/view?usp=drive_web" style="display:inline-block;max-width:366px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration-line:none;padding:1px 0px;border:medium none" target="_blank"><img style="vertical-align: bottom; border: medium none;" src="https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png"> <span dir="ltr" style="vertical-align:bottom;text-decoration:none">adaptor.mars.internal-1572848815.075499-2543-15...</span></a><img style="opacity: 0.55; float: right; display: none;"></div><div>, </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>
</blockquote></div>