[ncl-talk] Error using code
Barry Lynn
barry.h.lynn at gmail.com
Thu Sep 3 00:35:25 MDT 2020
Mike:
First printMinMax of your data to be sure there are valid data points. Did
you do this?
Barry
On Thu, Sep 3, 2020 at 9:00 AM Mike Victor via ncl-talk <
ncl-talk at mailman.ucar.edu> wrote:
> 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.
> olr.day.mean.nc
> <https://drive.google.com/file/d/19Y0ExP6oDb_kT8wx-tqbPvUxGB7st7ma/view?usp=drive_web>
>
>
>
>
>
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
>
>
> diri = "/home/mvaze123/OLRDATA"
> fi = "/olr.day.mean.nc"
> f = addfile(diri+fi,"r")
> olr = f->olr
> olr := olr(1675:16649,:,:) ;missing data till 1675th index, hence discarded
> ;printVarSummary(olr)
> i = 0
> j = 0
> val = 0
>
> ihp = 1
> sigma = 1.0
> nWgt = 49
> fca = 1./121.
> wgt = filwgts_lanczos(nWgt,ihp,fca,-999.,sigma)
> yPlot = new((/14975,73,144/),"float")
>
>
> do while (i .le. 72)
>
> do while(j .le. 143)
> val := wgt_runave(olr(:,i,j),wgt,0)
> yPlot(:,i,j) = val
> j= j+1
> end do
>
> i = i+1
> end do
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at mailman.ucar.edu
> List instructions, subscriber options, unsubscribe:
> https://mailman.ucar.edu/mailman/listinfo/ncl-talk
--
Barry H. Lynn, Ph.D
Senior Associate Scientist, Lecturer,
The Institute of the Earth Science,
The Hebrew University of Jerusalem,
Givat Ram, Jerusalem 91904, Israel
Tel: 972 547 231 170
Fax: (972)-25662581
C.E.O, Weather It Is, LTD
Weather and Climate Focus
http://weather-it-is.com
Jerusalem, Israel
Local: 02 930 9525
Cell: 054 7 231 170
Int-IS: x972 2 930 9525
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200903/c73dd7ae/attachment.html>
More information about the ncl-talk
mailing list