[ncl-talk] loop error
Arijeet Dutta
arijeet.uoh at gmail.com
Sat Mar 24 00:10:38 MDT 2018
Hi all, I am trying to calculate potential temperature as follows
h = addfile("air.mon.mean.nc","r")
lat = h->lat
lon = h->lon
time = h->time
temp = h->air
l = h->level*10
a = temp(:,:,0,0) ;tim,lv,lat,lon,
do i = 0,time-1
do j = 0,l-1
theta(i,j) = a*(10000/l(j))^0.286
end do
end do
fatal:Loop end must be scalar, can't execute loop
Any help?
Regards
Arijeet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180324/64fe0b09/attachment.html>
More information about the ncl-talk
mailing list