code
stringlengths
3
6.57k
if (len(args.pd)
main(args=None)
get_cleanspec_arguments()
stdb.io.load_db(fname=args.indb, keys=args.stkeys)
stdb.io.load_db(fname=args.indb)
db.keys()
sorted(allkeys)
len(args.stkeys)
stkeys.extend([s for s in allkeys if skey in s])
db.keys()
sorted(stkeys)
list(stkeys)
Path('SPECTRA')
specpath.is_dir()
str(specpath)
Path('AVG_STA')
avstpath.is_dir()
print("Path to "+str(avstpath)
avstpath.mkdir(parents=True)
plotpath.is_dir()
plotpath.mkdir(parents=True)
len(tlocs)
range(0, len(tlocs)
len(tlocs[il])
print("\n|===============================================|")
print("|===============================================|")
print("|===============================================|")
print("|===============================================|")
join(tlocs)
sta.startdate.strftime("%Y-%m-%d %H:%M:%S")
sta.enddate.strftime("%Y-%m-%d %H:%M:%S")
print("|-----------------------------------------------|")
str(tstart.year)
zfill(4)
str(tstart.julday)
zfill(3)
str(tend.year)
zfill(4)
str(tend.julday)
zfill(3)
fileavst.exists()
print("* -> file "+str(fileavst)
StaNoise()
str(t1.year)
zfill(4)
str(t1.julday)
zfill(3)
filespec.exists()
print("\n"+"*"*60)
print("* -> file "+str(filespec)
open(filespec, 'rb')
pickle.load(file)
file.close()
coh_all.append(daynoise.rotation.coh)
ph_all.append(daynoise.rotation.ph)
utils.phase(daynoise.cross.c12)
ph_12_all.append(None)
utils.phase(daynoise.cross.c1Z)
ph_1Z_all.append(None)
utils.phase(daynoise.cross.c1P)
ph_1P_all.append(None)
utils.phase(daynoise.cross.c2Z)
ph_2Z_all.append(None)
utils.phase(daynoise.cross.c2P)
ph_2P_all.append(None)
utils.phase(daynoise.cross.cZP)
ph_ZP_all.append(None)
np.array(coh_all)
np.array(ph_all)
np.array(coh_12_all)
np.array(coh_1Z_all)
np.array(coh_1P_all)
np.array(coh_2Z_all)
np.array(coh_2P_all)
np.array(coh_ZP_all)
np.array(ph_12_all)
np.array(ph_1Z_all)
np.array(ph_1P_all)
np.array(ph_2Z_all)
np.array(ph_2P_all)
np.array(ph_ZP_all)
np.array(ad_12_all)
np.array(ad_1Z_all)
np.array(ad_1P_all)
np.array(ad_2Z_all)
np.array(ad_2P_all)
np.array(ad_ZP_all)
plotpath.is_dir()
str(plotpath / (fname + '.' + args.form)
plot.show()
str(plotpath / (fname + '.' + args.form)
plot.show()
str(plotpath / (fname + '.' + args.form)
plot.show()
plotting.fig_coh_ph(coh_all, ph_all, stanoise.direc)
str(plotpath / (fname + '.' + args.form)
plot.show()
stanoise.save(fileavst)
main()
os.listdir(task.TASKS_PATH)