<reponame>Jasplet/shebaPy
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Aug 24 16:52:19 2021

@author: ja17375

Trail batch processing. 
"""
from batch import serial_process
path= '/Users/ja17375/Projects/Matisse_Synthetics/ppv1/ideal'
with open(f'{path}/Inversion_synthetics_noise_0.01.events', 'r+') as infile:
    events = [line.strip() + '.BH*' for line in infile]
    
result = serial_process(events, f'{path}/run',
                        ['SKS','SKS','SKS', 'SKS', 'SKS',
                         'SKKS','SKKS','SKKS', 'SKKS', 'ScS','ScS'], window=False) 
# passing/ handling of phases needs more thought
result.to_csv(f'{path}/ppv1_ideal_synthetics_processed.sdb', index=False, sep=' ')
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Aug 24 16:52:19 2021

@author: ja17375

Trail batch processing. 
"""
from batch import serial_process
path= '/Users/ja17375/Projects/Matisse_Synthetics/ppv1/ideal'
with open(f'{path}/Inversion_synthetics_noise_0.01.events', 'r+') as infile:
    events = [line.strip() + '.BH*' for line in infile]
    
result = serial_process(events, f'{path}/run',
                        ['SKS','SKS','SKS', 'SKS', 'SKS',
                         'SKKS','SKKS','SKKS', 'SKKS', 'ScS','ScS'], window=False) 
# passing/ handling of phases needs more thought
result.to_csv(f'{path}/ppv1_ideal_synthetics_processed.sdb', index=False, sep=' ')
#!/usr/bin/env python3 # -*- coding: utf-8 -*- Created on Tue Aug 24 16:52:19 2021  @author: ja17375  Trail batch processing. # passing/ handling of phases needs more thought