Example #1
0
def test():
    x = mkirts()
    rx0 = toreg(x,'01jan1990 0100 - 08jan1990 0100','15min')
    rx1 = toreg(x,'01jan1990 0100 - 08jan1990 0100','1hour')
    rx2 = toreg(x,'01jan1990 0100 - 08jan1990 0100','1day')
    rx3 = toreg(x,'01jan1990 0100 - 08jan1990 0100','10min')
    vutils.tabulate(rx0,rx1,rx2,rx3)
Example #2
0
def test():
    x = mkirts()
    rx0 = toreg(x, '01jan1990 0100 - 08jan1990 0100', '15min')
    rx1 = toreg(x, '01jan1990 0100 - 08jan1990 0100', '1hour')
    rx2 = toreg(x, '01jan1990 0100 - 08jan1990 0100', '1day')
    rx3 = toreg(x, '01jan1990 0100 - 08jan1990 0100', '10min')
    vutils.tabulate(rx0, rx1, rx2, rx3)
Example #3
0
def testspline():
    from vutils import opendss, findpath, timewindow, tabulate
    infile='/delta/data/dss/dayflo.dss'
    inpath='/DELTA/OUT/FLOW//1day//'
    tw_str='01JAN1999 0000 - 30JUN1999 2400'
    g=opendss(infile)
    ref = findpath(g,inpath)[0]
    ref = DataReference.create(ref,timewindow(tw_str))
    rts=interpolate(ref,outint='15min',offset=48)
    tabulate(rts)
Example #4
0
def testlinear():
    from vutils import opendss, findpath, timewindow, tabulate
    infile='h:/data/dss/IEP/hydro.dss'
    inpath='/RLTM\+CHAN/RSAC155/FLOW//1HOUR/CDEC/'
    tw_str='16JAN1999 1200 - 21JAN1999 1600'
    g=opendss(infile)
    ref = findpath(g,inpath)[0]
    ref = DataReference.create(ref,timewindow(tw_str))
    rts=interplinear(ref)
    tabulate(rts,ref.getData())