fatal:ttest: ave1, ave2, var1, and var2 must have the same dimension sizes

From: Sara Rauscher <rauscher_at_nyahnyahspammersnyahnyah>
Date: Thu, 18 Jun 2009 10:25:25 -0600

Hi,
I am having a strange problem with the t-test function. I get the
following error:
fatal:ttest: ave1, ave2, var1, and var2 must have the same dimension sizes

pd_ttest = ttest(xave,xs,yave,ys,30,30,False,False)

My variables are 1-dim arrays (22 latitudes) and I calculated the
average and variance for 30 year periods. I confirmed the size of my
dimensions with a print statement:

print(dimsizes(xave))
print(dimsizes(yave))
print(dimsizes(xs))
print(dimsizes(ys))

and got

(0) 22
(0) 22
(0) 22
(0) 22

and I also printed the arrays themselves, and they have 22 values and no
missing values (see below), so I can't figure out why I am getting this
error message. Can anyone help?
thanks
sara

print(xave)
print(yave)
print(xs)
print(ys)

Variable: xave
Type: float
Total Size: 88 bytes
            22 values
Number of Dimensions: 1
Dimensions and sizes: [22]
Coordinates:
Number Of Attributes: 1
  _FillValue : -999
(0) 38.41677
(1) 39.64386
(2) 41.47385
(3) 44.06675
(4) 47.31917
(5) 51.75873
(6) 57.4475
(7) 63.6473
(8) 68.18992
(9) 67.7685
(10) 63.71511
(11) 60.09694
(12) 56.81197
(13) 49.33569
(14) 38.55384
(15) 29.95921
(16) 25.55076
(17) 24.26208
(18) 24.80242
(19) 26.68329
(20) 29.91241
(21) 34.80373

Variable: yave
Type: float
Total Size: 88 bytes
            22 values
Number of Dimensions: 1
Dimensions and sizes: [22]
Coordinates:
Number Of Attributes: 1
  _FillValue : -999
(0) 38.65879
(1) 39.98415
(2) 42.00761
(3) 44.70826
(4) 48.20805
(5) 52.77808
(6) 58.35591
(7) 64.10452
(8) 67.57067
(9) 65.82126
(10) 61.38665
(11) 58.20033
(12) 55.7835
(13) 49.1475
(14) 38.43355
(15) 29.89201
(16) 25.79739
(17) 24.80967
(18) 25.70197
(19) 28.22125
(20) 32.30088
(21) 38.35125

Variable: xs
Type: float
Total Size: 88 bytes
            22 values
Number of Dimensions: 1
Dimensions and sizes: [22]
Coordinates:
Number Of Attributes: 1
  _FillValue : -999
(0) 0.6260661
(1) 0.5729437
(2) 0.4128477
(3) 0.3623054
(4) 0.365658
(5) 0.353965
(6) 0.3851641
(7) 0.3345565
(8) 0.6130542
(9) 1.028439
(10) 1.241542
(11) 0.9425077
(12) 0.6837122
(13) 1.058546
(14) 1.502718
(15) 1.228511
(16) 0.7692938
(17) 0.5298799
(18) 0.4911636
(19) 0.4699926
(20) 0.5076906
(21) 0.6370612

Variable: ys
Type: float
Total Size: 88 bytes
            22 values
Number of Dimensions: 1
Dimensions and sizes: [22]
Coordinates:
Number Of Attributes: 1
  _FillValue : -999
(0) 0.3511736
(1) 0.4604303
(2) 0.4525411
(3) 0.3654905
(4) 0.348264
(5) 0.3517184
(6) 0.3945064
(7) 0.4603441
(8) 0.5804898
(9) 0.8942191
(10) 1.401118
(11) 1.237646
(12) 0.6099019
(13) 0.9476522
(14) 1.49923
(15) 1.268973
(16) 0.8602446
(17) 0.6390305
(18) 0.4343098
(19) 0.332505
(20) 0.3948042
(21) 0.7709378

-- 
Sara A. Rauscher
T-3 Fluid Dynamics
MS B216
Los Alamos National Lab
Los Alamos, NM 87545 USA
(505) 606-0512
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Jun 18 2009 - 10:25:25 MDT

This archive was generated by hypermail 2.2.0 : Fri Jun 19 2009 - 13:23:25 MDT