[ncl-talk] Daily averages from 6 hourly data
Nkese Mc Shine
Nkese.McShine at sta.uwi.edu
Thu Apr 18 05:52:19 MDT 2019
Good morning,
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.
Script:
fil1 = addfile("/media/wind/NCEP-DOE_Reanalysis_2/uwnd.10m.gauss.1979.nc","r")
uwnd_practice = short2flt(fil1->uwnd)
printVarSummary(uwnd_practice)
printMinMax(uwnd_practice, True)
opt = True
opt at nval_crit = 4
uwnd_daily = calculate_daily_values(uwnd_practice, "avg", 0, opt)
printVarSummary(uwnd_daily)
printMinMax(uwnd_daily, True)
Output:
Variable: uwnd_practice
Type: float
Total Size: 105400320 bytes
26350080 values
Number of Dimensions: 4
Dimensions and sizes: [time | 1460] x [level | 1] x [lat | 94] x [lon | 192]
Coordinates:
time: [1569072..1577826]
level: [10..10]
lat: [88.542..-88.542]
lon: [ 0..358.125]
Number Of Attributes: 19
long_name : 6-Hourly Forecast of U-wind at 10 m
unpacked_valid_range : ( -120, 120 )
actual_range : ( -38.15, 46.84 )
units : m/s
precision : 2
least_significant_digit : 1
GRIB_id : 33
GRIB_name : U GRD
var_desc : u-wind
dataset : NCEP/DOE AMIP-II Reanalysis (Reanalysis-2)
level_desc : 10 m
statistic : Individual Obs
parent_stat : Other
standard_name : eastward_wind
_FillValue_original : -32767
_FillValue : -32767
missing_value_original : 32766
valid_range : ( -120, 120 )
missing_value : -32767
(0)
(0) 6-Hourly Forecast of U-wind at 10 m (m/s) : min=-38.15 max=46.84
fatal:["NclVar.c":1390]:Assignment type mismatch, right hand side can't be coerced to type of left hand side
fatal:["NclAtt.c":262]:Attribute assignment type mismatch.
fatal:["Execute.c":8637]:Execute: Error occurred at or near line 19034 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl
fatal:["Execute.c":8637]:Execute: Error occurred at or near line 35 in file dailyaverages2.ncl
Regards,
Nkese.
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190418/be4f2f32/attachment.html>
More information about the ncl-talk
mailing list