[ncl-talk] Division problem

Md. Jalal Uddin dmjalal90 at gmail.com
Fri Jan 25 06:13:09 MST 2019


Hi all,

I can minus and multiply but cannot divide. NCL says, "divide by 0 cannot
continue". Any suggestions?

;January
 f  = addfile("all_jan.nc", "r")
 prc =f->pre(:,{65:110},{0:30})
 prc_reorder = prc(time|:,latitude|:,longitude|:)

; January TCs average rainfall
 ntim = (/12,13,14,15,16,34,35,36,37/)
 tcjan = prc_reorder(ntim,:,:)
 tcavgjan = dim_avg_n_Wrap(tcjan,0)

; January contribution
totjan = dim_sum_n_Wrap(prc_reorder,0)
jantc = dim_sum_n_Wrap(tcjan,0)
jannontc = totjan - jantc
copy_VarMeta(totjan,jannontc)

jancont = jantc / jannontc    ; problem from there
copy_VarMeta(jantc,jancont)

-- 
*Md. Jalal Uddin*
MSc in Applied Meteorology (English Language)
Nanjing University of Information, Science and Technology, China
B.Sc. in Disaster Management (Hons.)
Patuakhali Science and Technology University, Bangladesh.
Cell: +8613260859092, +8801792052662
Web: www.dmjalal90.weebly.com
Facebook: jalal.hossen.39
LinkedIn: https://bd.linkedin.com/in/md-jalal-uddin-80a026b0
Twitter: dmjalal90
Skype: dmjalal90
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190125/cb0defc7/attachment.html>


More information about the ncl-talk mailing list