About... Prerequisites Examples Home Bugs Download Manual Links

Example 3

    from pyclimate.bpcca import BPCCA
    from pyclimate.readdat import readdat
    from Scientific.IO.NetCDF import *
    
    slp = NetCDFFile("data/data.nc").variables["slp"]
    precip = readdat("data/precip.ascii")
    
    CCA = BPCCA(slp, precip, (4,2))
    
    L = CCA.leftPatterns()
    R = CCA.rightPatterns()
    r = CCA.correlation()
    a = CCA.rightExpCoeffs()
    b = CCA.leftExpCoeffs()
    



Contact the
Webmaster