[ncl-talk] average for two variables in ncl

Ashish Sharma asharma7 at nd.edu
Thu Mar 3 12:58:49 MST 2016


Hi users,

I am trying to do a simple average. Rather than using "dim_vg_n_Wrap", I
need to do average of maximum and minimum values.

Can I not do average like this?

dailyT2avg(ifil,:,:) = (dim_max_n_Wrap(temp,0)+dim_min_n_Wrap(temp,0))/2.0

It is giving me the following error.

fatal:Dimension size mismatch on subscript #1, left-hand and right-hand
side dimensions do not match


best,
Ashish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160303/b0db0e4c/attachment.html 


More information about the ncl-talk mailing list