<div dir="ltr">Mike:<div><br></div><div>First printMinMax of your data to be sure there are valid data points.  Did you do this?</div><div><br></div><div>Barry</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Sep 3, 2020 at 9:00 AM Mike Victor via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">The below written code has some issue, when I run it, all the values of the variable yPlot are set to _FillValue. Pls Help. Below is the link to the netcdf file used in the code.<br><div class="gmail_chip gmail_drive_chip" style="width:396px;height:18px;max-height:18px;background-color:rgb(245,245,245);padding:5px;color:rgb(34,34,34);font-family:arial;font-style:normal;font-weight:bold;font-size:13px;border:1px solid rgb(221,221,221);line-height:1"><a href="https://drive.google.com/file/d/19Y0ExP6oDb_kT8wx-tqbPvUxGB7st7ma/view?usp=drive_web" style="display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;padding:1px 0px;border:none;width:100%" target="_blank"><img style="vertical-align: bottom; border: none;" src="https://drive-thirdparty.googleusercontent.com/16/type/application/x-netcdf"> <span dir="ltr" style="color:rgb(17,85,204);text-decoration:none;vertical-align:bottom">olr.day.mean.nc</span></a></div><br><div><br></div><div><br><div><br><div><br></div><div>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"<br><br><br>diri = "/home/mvaze123/OLRDATA"<br>fi = "/<a href="http://olr.day.mean.nc" target="_blank">olr.day.mean.nc</a>"<br>f = addfile(diri+fi,"r")<br>olr = f->olr<br>olr := olr(1675:16649,:,:) ;missing data till 1675th index, hence discarded<br>;printVarSummary(olr)<br>i = 0<br>j = 0<br>val = 0<br><br>ihp = 1<br>sigma = 1.0<br>nWgt = 49<br>fca = 1./121.<br>wgt = filwgts_lanczos(nWgt,ihp,fca,-999.,sigma)<br>yPlot = new((/14975,73,144/),"float")<br><br><br>do while (i .le. 72)<br><br>do while(j .le. 143)<br>val := wgt_runave(olr(:,i,j),wgt,0) <br>yPlot(:,i,j) = val<br>j= j+1<br>end do<br><br>i = i+1<br>end do<br></div></div></div></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior Associate Scientist, Lecturer,</div><div><div><span style="color:rgb(136,136,136)">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)"></div><span style="color:rgb(136,136,136)">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Fax: (972)-25662581</span></div></div><div><span style="color:rgb(136,136,136)"><br></span></div><div>C.E.O, Weather It Is, LTD<br>Weather and Climate Focus<br><a href="http://weather-it-is.com" target="_blank">http://weather-it-is.com</a><br>Jerusalem, Israel<br>Local: 02 930 9525<br>Cell: 054 7 231 170<br>Int-IS: x972 2 930 9525<br><br></div></div></div></div></div>