Re: Error using band_pass_latlon_time

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Mon Apr 28 2014 - 07:22:17 MDT

There was an error in the FFT option.

Attached is a fix.

You can use the fix by doing the following:

load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/diagnostics_cam.ncl"
load "./band_pass_latlon_time.ncl"

Good luck

On 4/27/14, 5:22 AM, Almami Johnson wrote:
> Dear all
>
> I have some errors at the band_pass_latlon_time function while running this
> script:
>
> f = addfile("TRMM_1998-2011_May-Sep_DMEAN.nc", "r")
> x = f->r(:,{-5:25},{-25:25}) ; (time,lat,lon) ,
> ntim=1461
>
> srate = 1 ; daily means
> bpf = (/2,10,201/) ; MJO ... suggested by MJO WG [WMO]
> opt = True
>
> opt@detrend = True
> opt@fft = True
> ; pass in area of interest
> bpass = band_pass_latlon_time (x(:,:,:), srate, bpf, opt) ;======
> Line 23
>
> printVarSummary( bpass )
> printMinMax( bpass, True)
>
>
> If I remove opt@detrend = True and opt@fft = True, it works fine. But the
> moment I add them, it sends this error:
>
> fatal:conform: the dimensions sizes of the second argument do not match
> those indicated by the third argument
> fatal:["Execute.c":8128]:Execute: Error occurred at or near line 1973 in
> file $NCARG_ROOT/lib/ncarg/nclscripts/csm/diagnostics_cam.ncl
>
> fatal:["Execute.c":8128]:Execute: Error occurred at or near line 23 in file
> filter_fft.ncl
>
> Could somebody help me on this please? Thanks.
>
> Almami
>
>
>
> _______________________________________________
> 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 Mon Apr 28 07:22:27 2014

This archive was generated by hypermail 2.1.8 : Tue Apr 29 2014 - 09:04:20 MDT