[ncl-talk] Manual Array Creation

Md. Jalal Uddin dmjalal90 at gmail.com
Thu Mar 14 03:15:05 MDT 2019


Hi all,
I created an empty array for 'do loop'. I am just getting the last time
of rainrate value. How can I get the whole time value by using 'new'
function? Or other possible options?

f = addfile("bob_dd.nc","r")
  TRMM = f->pcp(:,{0:30},{75:100})        ;TRMM(time, latitude, longitude)
rain = where(TRMM.gt.0,TRMM,TRMM at _FillValue)
 copy_VarMeta(TRMM, rain)

  rainrate = new((/120,100/),float)
  do i =0,dimsizes(rain(:,0,0))-1
       rainrate = rain(i,:,:)
  end do

Best regards,
Jalal
-- 
*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/20190314/18c9c669/attachment.html>


More information about the ncl-talk mailing list