Re: taper_n problem

From: Saji Hameed <saji.nh_at_nyahnyahspammersnyahnyah>
Date: Wed Apr 16 2014 - 22:37:06 MDT

Wow! I never noticed this before, and has been using taper for my FFT
calcuations :(

You are right - the function taper or taper_n does not seem to work at all!
Hopefully the NCL developers can provide some insight.

saji

On Thu, Apr 17, 2014 at 6:07 AM, Jim Benedict <jjb278@gmail.com> wrote:

> 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
>

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Apr 16 22:37:18 2014

This archive was generated by hypermail 2.1.8 : Fri Apr 18 2014 - 17:37:58 MDT