NCL users,
I am trying to use NCL v6.1.2's "taper_n" function, with no success. Below is the boiled-down version of my program:
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"
begin
x = new(100,"float",-999)
x = 1.
xTaper = taper_n(x, 0.2, 0, 0)
print(x + " " + xTaper)
end
I expected the printout to show xTaper smoothly reduced (to 0?) at the ends, but apparently no tapering was done! (xTaper = x = 1 for all points):
(0) 1 1
(1) 1 1
(2) 1 1
...
(48) 1 1
(49) 1 1
(50) 1 1
...
(97) 1 1
(98) 1 1
(99) 1 1
I've also tried this unsuccessfully with "xTaper = taper(x,0.2,0)". Any help would be appreciated!
Thanks,
Jim Benedict
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Apr 16 15:07:46 2014
This archive was generated by hypermail 2.1.8 : Fri Apr 18 2014 - 17:37:58 MDT