[ncl-talk] bar charts (error in the loop)

Amal Inge amalingenieur89 at gmail.com
Mon Dec 24 02:57:28 MST 2018


Dear NCL experts,

i'm trying to plot bar charts for a variable 4 dimension for 28 subareas,
and for each subarea i have 3 depths (3 ncfiles).
i had this error:
 fatal:Assignment type mismatch, right hand side can't be coerced to type
of left hand side
fatal:["Execute.c":8575]:Execute: Error occurred at or near line 587 in
file dox_gsa.ncl
i'm not sure if i did well the loop, Could you help me to correct it please?
here is the variable and the script in attachement

many thanks
amal
netcdf dox01_med_0-52_timemean {
dimensions:
lon = 670 ;
lat = 253 ;
lev = 13 ;
time = UNLIMITED ; // (1 currently)
bnds = 2 ;
variables:
float lon(lon) ;
lon:standard_name = "longitude" ;
lon:long_name = "longitude" ;
lon:units = "degrees_east" ;
lon:axis = "X" ;
float lat(lat) ;
lat:standard_name = "latitude" ;
lat:long_name = "latitude" ;
lat:units = "degrees_north" ;
lat:axis = "Y" ;
float lev(lev) ;
lev:standard_name = "depth" ;
lev:long_name = "depth" ;
lev:units = "m" ;
lev:positive = "down" ;
lev:axis = "Z" ;
lev:_CoordinateZisPositive = "down" ;
lev:_CoordinateAxisType = "Height" ;
double time(time) ;
time:standard_name = "time" ;
time:long_name = "time" ;
time:bounds = "time_bnds" ;
time:units = "seconds since 1970-01-01 00:00:00" ;
time:calendar = "standard" ;
time:axis = "T" ;
double time_bnds(time, bnds) ;
float dox(time, lev, lat, lon) ;
dox:standard_name =
"mole_concentration_of_dissolved_molecular_oxygen_in_sea_water" ;
dox:long_name = "Mole concentration of Dissolved Molecular Oxygen in sea
water" ;
dox:units = "millimol m-3" ;
dox:_FillValue = 1.e+20f ;
dox:missing_value = 1.e+20f ;
dox:_ChunkSizes = 1, 22, 84, 161 ;

// global attributes:
:CDI = "Climate Data Interface version 1.9.0 (http://mpimet.mpg.de/cdi)" ;
:Conventions = "None" ;
:history = "Thu Dec 20 13:29:55 2018: cdo timmean dox01_med_0-52.nc
dox01_med_0-52_timemean.nc" ;
:creation_date = "Tue Dec  4 23:27:50 CET 2018" ;
:source_file = "dox_med_0-52.nc" ;
:title = "NCL Efficient Approach to netCDF Creation" ;
:CDO = "Climate Data Operators version 1.9.0 (http://mpimet.mpg.de/cdo)" ;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181224/cf374d01/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dox_gsa.ncl
Type: application/octet-stream
Size: 31211 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181224/cf374d01/attachment.obj>


More information about the ncl-talk mailing list