<div dir="ltr">Please look at the documentation for clmMonTLL<br><br>The clmMonTLL is prototyped as accepting 'float or double' .... not short !<br><br><pre>function clmMonTLL (
                x [*][*][*] : float or double
        )<br><br>====<br></pre><pre>Your data is type 'short'. You wrote<br><br>SO the e output is:<br><br>Type: short<br><br>Dimensions and sizes: [time | 264] x [latitude | 64] x [longitude | 78]<br>Coordinates: <br> time: [693216..885336]<br> latitude: [64..32.5]<br> longitude: [30..68.5]<br>Number Of Attributes: 6<br><span class="m_4808018491554635139gmail-im"><br></span> add_offset : -0.01280028930916859<br> scale_factor : 4.884610965422988e-07<br> _FillValue : -32767 <br><br>=======<br><br></pre><pre>*You* must unpack prior to input<br><br></pre><pre> e := short2flt(e) ; := syntax allows over-write<br></pre></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 13, 2017 at 8:23 AM, Sri Nandini <span dir="ltr"><<a href="mailto:snandini@marum.de" target="_blank">snandini@marum.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>THank you.<br><br>The cdo function calculates the monthly values.<br> yrStrt = 1970<br> yrLast = 2000<span class=""><br><br>; ==============================<wbr>==============================<wbr>==<br>; Open the file: Read only the user specified period first observations then model<br>; ==============================<wbr>==============================<wbr>==<br></span>f = addfile("ERAIOBS_monthly.nc", "r") ;<br>TIME = f->time<br>YYYY = cd_calendar(TIME,-1)/100 <wbr> ; entire file<br>iYYYY = ind(YYYY.ge.yrStrt .and. YYYY.le.yrLast)<br>e = f->e(iYYYY,:,:)<br>printVarSummary(e) <br><br>SO the e output is:<br><br>Type: short<br>Total Size: 2635776 bytes<br> 1317888 values<br>Number of Dimensions: 3<br>Dimensions and sizes: [time | 264] x [latitude | 64] x [longitude | 78]<br>Coordinates: <br> time: [693216..885336]<br> latitude: [64..32.5]<br> longitude: [30..68.5]<br>Number Of Attributes: 6<br> long_name : Evaporation<br> standard_name : lwe_thickness_of_water_<wbr>evaporation_amount<span class=""><br> units : m of water equivalent<br></span> add_offset : -0.01280028930916859<br> scale_factor : 4.884610965422988e-07<br> _FillValue : -32767<br><br><br>BUT: <br><br>;=============================<wbr>======================<br>; compute desired global annual or monthly climatology (12,nlat,mlon) <br>; ==============================<wbr>==============================<wbr>==<br> Tann=clmMonTLL(e) <br> printVarSummary(Tann) <br><br>The output is:<br><br>fatal:Type Mismatch: The type of missing value could not be converted to type of variable (e)<br>fatal:Assignment type mismatch, right hand side can't be coerced to type of left hand side<br><br><br>Is it wrong to do clmMonTLL on the monthly data output from cdo?<br><br></div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>