Skip to content

Commit

Permalink
outfile in get_dvv
Browse files Browse the repository at this point in the history
  • Loading branch information
xtyangpsp committed Jan 10, 2022
1 parent 34c6dbd commit bdd24b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions seisgo/monitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
########################################################
def get_dvv(corrdata,freq,win,ref=None,stack_method='linear',offset=1.0,resolution=None,
vmin=1.0,normalize=True,method='wts',dvmax=0.05,subfreq=True,
plot=False,figsize=(8,8),savefig=False,figdir='.',save=False,outdir='.',nproc=None):
plot=False,figsize=(8,8),savefig=False,figdir='.',save=False,outdir='.',outfile=None,nproc=None):
"""
Compute dvv with given corrdata object, with options to save dvvdata to file.
Expand Down Expand Up @@ -155,7 +155,7 @@ def get_dvv(corrdata,freq,win,ref=None,stack_method='linear',offset=1.0,resoluti
method=method,stack_method=stack_method,error1=error_n,error2=error_p,
window=twin,normalize=normalize,data1=np.array(dvv_neg),data2=np.array(dvv_pos))
if save:
dvvdata.to_asdf(outdir=outdir)
dvvdata.to_asdf(outdir=outdir,file=outfile)

######plotting
if plot:
Expand Down

0 comments on commit bdd24b4

Please sign in to comment.