[ncl-talk] query about ttest function

Dennis Shea shea at ucar.edu
Wed Jul 30 08:48:57 MDT 2014

Use a do loop

do nmo=0,11
     ... = ttest(...nmo...)
end do

You will likely have to preallocate space for returned information

On Tue, Jul 29, 2014 at 3:47 PM, Xi Chang <xi.chang01 at gmail.com> wrote:

> Dear NCL,
> may i have your suggestions,. i have two monthly nc files lets say
> A[time,lat] and B[time,lat]. I woudl like to calculate the statistically
> significant differences usinh ttest and plot them XY, where Y is latitude
> and X is time (month,1-12). What an efficient way to do that? do i have to
> repeat 12times ttest (mean,variance and df) following the time span? is
> there any trick?
> Thanks a lot.
> Chang
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140730/9db0dd71/attachment.html 

More information about the ncl-talk mailing list