Пример #1
0
def ewavelet(wavelet,custom,par):
    
    for i in range(2):
        Plot(wavelet+'-'+str(i+1),wavelet,
             'window n2=1 f2=%d | transp | window |'%i +
             waveplot('%d %s'% (i,custom) ,par))
    pplot.p1x2(wavelet,wavelet+'-1',wavelet+'-2',0.5,0.5,-11)
Пример #2
0
def ewavelet(wavelet,custom,par):
    
    for i in range(2):
        Plot(wavelet+'-'+str(i+1),wavelet,
             'window n2=1 f2=%d | transp | window |'%i +
             waveplot('%d %s'% (i,custom) ,par))
    pplot.p1x2(wavelet,wavelet+'-1',wavelet+'-2',0.5,0.5,-11)
Пример #3
0
def cliptogetherK(plot,file1,file2,title1,title2,axis,custom,par):

    Flow(plot+'-all',[file1,file2],
         '''
         cat axis=3 space=n ${SOURCES[1]} |
         byte gainpanel=a pclip=100|
         put label1=%(lkz)s label2=%(lkx)s
             unit1=%(ukz)s unit2=%(lkx)s
             o1=%(okz)f d1=%(dkz)f o2=%(okx)f d2=%(dkx)f
         ''' %par)



    if(axis==1):
        if('ys' not in par): par['ys']=0.75
        if('xs' not in par): par['xs']=0.75
        if('xc' not in par): par['xc']=-8.25
        Plot(file1,plot+'-all','window n3=1 f3=0 |' + fdmod.cgrey(custom+' title=%s'%title1,par))
        Plot(file2,plot+'-all','window n3=1 f3=1 |' + fdmod.cgrey(custom+' title=%s label1=  unit1= '%title2,par))
        pplot.p1x2(plot,file1,file2,par['ys'],par['xs'],par['xc'])
    else:
        if('ys' not in par): par['ys']=.75
        if('xs' not in par): par['xs']=.75
        if('xc' not in par): par['xc']=-10
        Plot(file1,plot+'-all','window n3=1 f3=1 |' + fdmod.cgrey(custom+' title=%s wantaxis2=n label2= unit2='%title1,par))
        Plot(file2,plot+'-all','window n3=1 f3=0 |' + fdmod.cgrey(custom+' title=%s '%title2,par))
        p2x1(plot,file1,file2,par['ys'],par['xs'],par['xc'])
Пример #4
0
def waveplotE2d(wav, custom, par):

    Plot(wav + '_V', wav,
         'window n2=1 f2=0 | transp | window |' + waveplot(custom, par))
    Plot(wav + '_H', wav,
         'window n2=1 f2=1 | transp | window |' + waveplot(custom, par))

    pplot.p1x2(wav, wav + '_V', wav + '_H', 0.5, 0.5, -11.5)
    Result(wav, wav, 'Overlay')
Пример #5
0
def eframe(frame,movie,index,custom,axis,par,xscale=0.75,yscale=0.75,shift=-8.25):

    Flow([movie+'-plt',movie+'-bar'],movie,
         'byte bar=${TARGETS[1]} gainpanel=a pclip=100 %s' % custom)

    for i in range(2):
        Plot(frame+'-'+str(i),movie+'-plt',
             'window n3=1 f3=%d n4=1 f4=%d |' % (i,index)
             + cgrey('',par))
#        Result(frame+'-'+str(i),movie+'-plt',
#             'window n3=1 f3=%d n4=1 f4=%d |' % (i,index)
#             + cgrey('',par))

    if(axis==1):
        pplot.p2x1(frame,frame+'-1',frame+'-0',yscale,xscale,shift)
    else:
        pplot.p1x2(frame,frame+'-0',frame+'-1',yscale,xscale,shift)
Пример #6
0
def eframe(frame,movie,index,custom,axis,par,xscale=0.75,yscale=0.75,shift=-8.25):

    Flow([movie+'-plt',movie+'-bar'],movie,
         'byte bar=${TARGETS[1]} gainpanel=a pclip=100 %s' % custom)

    for i in range(2):
        Plot(frame+'-'+str(i),movie+'-plt',
             'window n3=1 f3=%d n4=1 f4=%d |' % (i,index)
             + cgrey('',par))
#        Result(frame+'-'+str(i),movie+'-plt',
#             'window n3=1 f3=%d n4=1 f4=%d |' % (i,index)
#             + cgrey('',par))

    if(axis==1):
        pplot.p2x1(frame,frame+'-1',frame+'-0',yscale,xscale,shift)
    else:
        pplot.p1x2(frame,frame+'-0',frame+'-1',yscale,xscale,shift)
Пример #7
0
def cliptogether(plot,file1,file2,title1,title2,axis,custom,par):

    Flow(plot+'-all',[file1,file2],
         '''
         cat axis=3 space=n ${SOURCES[1]} |
         byte gainpanel=a %s
         ''' %custom)



    if(axis==1):
        if('ys' not in par): par['ys']=0.75
        if('xs' not in par): par['xs']=0.75
        if('xc' not in par): par['xc']=-8.25
        Plot(file1,plot+'-all','window n3=1 f3=0 |' + fdmod.cgrey(custom+' title=%s'%title1,par))
        Plot(file2,plot+'-all','window n3=1 f3=1 |' + fdmod.cgrey(custom+' title=%s wantaxis1=n label1= unit1= '%title2,par))
        pplot.p1x2(plot,file1,file2,par['ys'],par['xs'],par['xc'])
    else:
        if('ys' not in par): par['ys']=.75
        if('xs' not in par): par['xs']=.75
        if('yc' not in par): par['yc']=-5
        Plot(file1,plot+'-all','window n3=1 f3=1 |' + fdmod.cgrey(custom+' title=%s wantaxis2=n label2= unit2='%title1,par))
        Plot(file2,plot+'-all','window n3=1 f3=0 |' + fdmod.cgrey(custom+' title=%s '%title2,par))
        p2x1(plot,file1,file2,par['ys'],par['xs'],par['yc'])
Пример #8
0
def dgreyE2d(data, dbyt, custom, par, xscale=0.5, yscale=0.5, shift=-11):
    Plot(data + '_V', dbyt, 'window n2=1 f2=0 | transp |' + dgrey2d('', par))
    Plot(data + '_H', dbyt, 'window n2=1 f2=1 | transp |' + dgrey2d('', par))
    pplot.p1x2(data, data + '_V', data + '_H', xscale, yscale, shift)
Пример #9
0
def iovlE2d(out, inp, par, xscale=0.5, yscale=0.5, shift=-11):
    Plot(out + '_V', inp, 'Overlay')
    Plot(out + '_H', inp, 'Overlay')
    pplot.p1x2(out, out + '_V', out + '_H', xscale, yscale, shift)
Пример #10
0
def ifrmE2d(wfrm, wbyt, index, custom, par, xscale=0.5, yscale=0.5, shift=-11):
    Plot(wfrm + '_V', wbyt, 'window n3=1 f3=0 |' + ifrm2d(index, '', par))
    Plot(wfrm + '_H', wbyt, 'window n3=1 f3=1 |' + ifrm2d(index, '', par))
    pplot.p1x2(wfrm, wfrm + '_V', wfrm + '_H', xscale, yscale, shift)