[ncl-talk] Division by 0, Can't continue
Karin Meier-Fleischer
meier-fleischer at dkrz.de
Thu Dec 5 03:21:02 MST 2019
Hi Atul,
do you want to calculate the avg and the stddev on the longitude
coordinate? The functions dim_avg and dim_stddev do the calculations on
the right- most dimension. If you want to do it on the time dimension
then you should use dim_avg_n and dim_stddev_n functions.
To prevent division by 0 you can use the where function. Searching the
internet will give you some ncl-talk answers to this issue.
-Karin
Am 05.12.19 um 10:51 schrieb Atul Saini via ncl-talk:
> Hi NCL,
> I am trying to plot the map showing calculate gridwise
> coefficient of variation but it is not getting plotted and one error
> is Division by 0, Can't continue. Please help!
>
> Please find the script file and data file attached.
> Please help, it's urgent.
>
> Regards,
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20191205/21182ec3/attachment.html>
More information about the ncl-talk
mailing list