[ncl-talk] problem with missing values
Ipshita Majhi
ipmajhi at alaska.edu
Fri Dec 12 14:29:27 MST 2014
Dear NCL ,
I have written a code to write to convert 365 days into 52 weeks avg.
I am facing error regarding missing value. I have written statements which
have substituted missing value as -9999.0
Yet it gives the maximum value as 9.96921e+36 and when I write to
substitute that with -9999.0, it gives maximum value as 9.969222e+36.
Here is the snippet of my code. I am very confused about this. It will be
great if somebody could help me
set_default_fillvalue("float", -9999.0)
pweek=new((/47,52/),"float")
do i=0,47-1
do j=0,357,7
pweek(i,j/7)=avg(x364(i,j:j+6))
; end if
end do
end do
do i=0,47-1
do j=0,51
print(i)
print(j)
if (pweek(i,j).eq.9.92226ee+36)then
pweek(i,j)=9999.0
end if
end do
end do
printMinMax(pweek, 0)
Thank You
Best Regards
Ipshita
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20141212/f88a1094/attachment.html
More information about the ncl-talk
mailing list