ttest......

From: Sabeerali(sebi) <sabeerl_at_nyahnyahspammersnyahnyah>
Date: Wed, 2 Sep 2009 18:21:37 +0530

Hello support,

  I want to do the ttest for composite..when I searched in the NCL tutorial
I found the argument needed for ttest is ave1,ave2, var1,var2,s1,s2,
iflag,tval_opt
How I can find the arguments s1 and s2. What is mean by this?
The dimension of the ave1,ave2,var1,var2 are nlatXnlon..

Any help would be appreciable

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"
begin
;**************************************************************
in2=addfile("mn_olr_1983-05.nc","r")
olr=in2->olr
olrflt=short2flt(olr)
mn_clim_olr=clmMonTLL(olrflt)
;printVarSummary(mn_clim_olr)
Mon_olr_anom=calcMonAnomTLL(olrflt,mn_clim_olr)
Mon_olr_anom@_FillValue=32767
Mon_olr_anom_at_missing_value=32767

;**********************************************************************
; significant test
;*********************************************************************
four_month_runavg=runave_Wrap(Mon_olr_anom(lat|:,lon|:,time|:),4,0)
JJAS_olr_anom_1983_05=four_month_runavg(:,:,6::12)

JJAS_olr_anom_4yrs =
(/JJAS_olr_anom_1983_05(:,:,0),JJAS_olr_anom_1983_05(:,:,7),JJAS_olr_anom_1983_05(:,:,16),JJAS_olr_anom_1983_05(:,:,21)/)

ave1=dim_avg_n(JJAS_olr_anom_4yrs,0)
var1=dim_variance_n(JJAS_olr_anom_4yrs,0)
ave2=dim_avg_Wrap(JJAS_olr_anom_1983_05)
var2=dim_variance_Wrap(JJAS_olr_anom_1983_05)

end

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Sep 02 2009 - 06:51:37 MDT

This archive was generated by hypermail 2.2.0 : Thu Sep 03 2009 - 07:55:08 MDT