FOCMEC needs suffix *.in for input file.
This commit is contained in:
parent
01fea084d5
commit
f40d22af33
4
PyLoT.py
4
PyLoT.py
@ -200,7 +200,7 @@ class MainWindow(QMainWindow):
|
|||||||
settings.setValue('useGuiFilter', False)
|
settings.setValue('useGuiFilter', False)
|
||||||
if settings.value('output/Format', None) is None:
|
if settings.value('output/Format', None) is None:
|
||||||
outformat = QInputDialog.getText(self,
|
outformat = QInputDialog.getText(self,
|
||||||
"Enter output format (*.xml, *.cnv, *.obs, *.focmec, *.pha):",
|
"Enter output format (*.xml, *.cnv, *.obs, *_focmec.in, *.pha):",
|
||||||
"Format")
|
"Format")
|
||||||
settings.setValue("output/Format", outformat)
|
settings.setValue("output/Format", outformat)
|
||||||
if settings.value('autoFilter', None) is None:
|
if settings.value('autoFilter', None) is None:
|
||||||
@ -1484,7 +1484,7 @@ class MainWindow(QMainWindow):
|
|||||||
self.set_fname(self.get_data().getEventFileName(), type)
|
self.set_fname(self.get_data().getEventFileName(), type)
|
||||||
return self.get_fnames(type)
|
return self.get_fnames(type)
|
||||||
|
|
||||||
def saveData(self, event=None, directory=None, outformats=['.xml', '.cnv', '.obs', '.focmec', '.pha']):
|
def saveData(self, event=None, directory=None, outformats=['.xml', '.cnv', '.obs', '_focmec.in', '.pha']):
|
||||||
'''
|
'''
|
||||||
Save event data to directory with specified output formats.
|
Save event data to directory with specified output formats.
|
||||||
:param event: PyLoT Event, if not set current event will be used
|
:param event: PyLoT Event, if not set current event will be used
|
||||||
|
@ -366,7 +366,7 @@ class Data(object):
|
|||||||
except KeyError as e:
|
except KeyError as e:
|
||||||
raise KeyError('''{0} export format
|
raise KeyError('''{0} export format
|
||||||
not implemented: {1}'''.format(evtformat, e))
|
not implemented: {1}'''.format(evtformat, e))
|
||||||
if fnext == '.focmec':
|
if fnext == '_focmec.in':
|
||||||
try:
|
try:
|
||||||
infile = os.path.join(os.path.expanduser('~'), '.pylot', 'pylot.in')
|
infile = os.path.join(os.path.expanduser('~'), '.pylot', 'pylot.in')
|
||||||
print('Using default input file {}'.format(infile))
|
print('Using default input file {}'.format(infile))
|
||||||
|
@ -37,7 +37,7 @@ TIMEERROR_DEFAULTS = os.path.join(os.path.expanduser('~'),
|
|||||||
OUTPUTFORMATS = {'.xml': 'QUAKEML',
|
OUTPUTFORMATS = {'.xml': 'QUAKEML',
|
||||||
'.cnv': 'CNV',
|
'.cnv': 'CNV',
|
||||||
'.obs': 'NLLOC_OBS',
|
'.obs': 'NLLOC_OBS',
|
||||||
'.focmec': 'FOCMEC',
|
'_focmec.in': 'FOCMEC',
|
||||||
'.pha': 'HYPODD'}
|
'.pha': 'HYPODD'}
|
||||||
|
|
||||||
LOCTOOLS = dict(nll=nll, hyposat=hyposat, velest=velest, hypo71=hypo71, hypodd=hypodd)
|
LOCTOOLS = dict(nll=nll, hyposat=hyposat, velest=velest, hypo71=hypo71, hypodd=hypodd)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user