<div dir="ltr">Hello:<div><br></div><div>What line causes your error?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 18, 2019 at 2:52 PM Nkese Mc Shine <<a href="mailto:Nkese.McShine@sta.uwi.edu">Nkese.McShine@sta.uwi.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>
<div style="direction:ltr;font-family:Tahoma;color:rgb(0,0,0);font-size:10pt">Good morning,<br>
<br>
I have 6 hourly wind data and I am trying to get the daily averages however I am getting and error when I use calculate_daily_values. I have ncl 6.6.2 installed, can anyone help me? Below is the script used and the output.<br>
<br>
Script:<br>
fil1           = addfile("/media/wind/NCEP-DOE_Reanalysis_2/<a href="http://uwnd.10m.gauss.1979.nc" target="_blank">uwnd.10m.gauss.1979.nc</a>","r")<br>
uwnd_practice  = short2flt(fil1->uwnd)<br>
<br>
<br>
printVarSummary(uwnd_practice)<br>
printMinMax(uwnd_practice, True)<br>
<br>
opt           = True<br>
opt@nval_crit = 4<br>
<br>
uwnd_daily    = calculate_daily_values(uwnd_practice, "avg", 0, opt)<br>
printVarSummary(uwnd_daily)<br>
printMinMax(uwnd_daily, True)<br>
<br>
<br>
Output:<br>
Variable: uwnd_practice<br>
Type: float<br>
Total Size: 105400320 bytes<br>
            26350080 values<br>
Number of Dimensions: 4<br>
Dimensions and sizes:    [time | 1460] x [level | 1] x [lat | 94] x [lon | 192]<br>
Coordinates: <br>
            time: [1569072..1577826]<br>
            level: [10..10]<br>
            lat: [88.542..-88.542]<br>
            lon: [ 0..358.125]<br>
Number Of Attributes: 19<br>
  long_name :    6-Hourly Forecast of U-wind at 10 m<br>
  unpacked_valid_range :    ( -120, 120 )<br>
  actual_range :    ( -38.15, 46.84 )<br>
  units :    m/s<br>
  precision :    2<br>
  least_significant_digit :    1<br>
  GRIB_id :    33<br>
  GRIB_name :    U GRD<br>
  var_desc :    u-wind<br>
  dataset :    NCEP/DOE AMIP-II Reanalysis (Reanalysis-2)<br>
  level_desc :    10 m<br>
  statistic :    Individual Obs<br>
  parent_stat :    Other<br>
  standard_name :    eastward_wind<br>
  _FillValue_original :    -32767<br>
  _FillValue :    -32767<br>
  missing_value_original :    32766<br>
  valid_range :    ( -120, 120 )<br>
  missing_value :    -32767<br>
(0)     <br>
(0)    6-Hourly Forecast of U-wind at 10 m (m/s) : min=-38.15   max=46.84<br>
<br>
fatal:["NclVar.c":1390]:Assignment type mismatch, right hand side can't be coerced to type of left hand side<br>
fatal:["NclAtt.c":262]:Attribute assignment type mismatch.<br>
<br>
fatal:["Execute.c":8637]:Execute: Error occurred at or near line 19034 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl<br>
<br>
fatal:["Execute.c":8637]:Execute: Error occurred at or near line 35 in file dailyaverages2.ncl<br>
<br>
<br>
Regards,<br>
Nkese.<br>
</div>
CONFIDENTIALITY: This email (including any attachments) may contain confidential, proprietary and/or privileged information. Any duplication, copying, distribution, dissemination, transmission, disclosure or use in any manner of this email (including any attachments)
 without the authorisation of the sender is strictly prohibited. If you receive this email (including any attachments) in error, please notify the sender and delete this email (including any attachments) from your system. Thank you.
</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><br>
</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>