started initialization of SDS data organization scheme
This commit is contained in:
parent
a4f948fd76
commit
4aa7856267
@ -14,11 +14,36 @@ class GenericDataBase(object):
|
||||
base working on.
|
||||
'''
|
||||
def __init__(self, stexp=None, **kwargs):
|
||||
dbRegExp = {
|
||||
|
||||
structExpression = os.path.split(stexp)
|
||||
self.dataBaseDict = kwargs
|
||||
self.dataBaseDict = kwargs
|
||||
|
||||
|
||||
|
||||
|
||||
class SeiscompDataStructure(GenericDataBase):
|
||||
pass
|
||||
# Data type options
|
||||
typeOptions = {'waveform':'D', #Waveform data
|
||||
'detect':'E', #Detection data
|
||||
'log':'L', #Log data
|
||||
'timing':'T', #Timing data
|
||||
'calib':'C', #Calibration data
|
||||
'resp':'R', #Response data
|
||||
'opaque':'O' #Opaque data
|
||||
}
|
||||
# SDS fields' default values
|
||||
# definitions from
|
||||
# http://www.seiscomp3.org/wiki/doc/applications/slarchive/SDS
|
||||
sdsFields = {'SDSdir':['data','SDS'], #base directory list
|
||||
'YEAR':'1970', #4 digits
|
||||
'NET':'XX', #up to 8 characters
|
||||
'STA':'XXXX', #up to 8 characters
|
||||
'CHAN':'HHZ', #up to 8 characters
|
||||
'TYPE':typeOption['waveform'], #1 character
|
||||
'LOC':'', #up to 8 characters
|
||||
'DAY':'001' #3 digit day of year
|
||||
}
|
||||
def __init__(self, **kwargs):
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user