Skip to content

Read/Write SEISAN-NORDIC format into a python dictionary.

Notifications You must be signed in to change notification settings

saeedsltm/PyNordicRW

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

PyNordicRW

Read/Write SEISAN-NORDIC/NORDIC-Dict format into a dictionary / from a dictionary into a file.

"""
Input: 'select.out' or any nordic file.
Output: a dictionary with the following structure:

out_dic:
       |
       |
        Event_ID_dic:[ex: '20130105123412.7']
                    |
                    |
                    HEADER_dic: [ex: 'L1':{},'LE':{},'LF':{}]
                    |         |
                    |         |
                    |         LINE-1/LINE-E/LINE-F [ex: 'LAT':52.32...]
                    |
                    |
                    PHASE_dic: [ex: 'AAA':{}]
                             |
                             | 
                             P/S_dic: [ex: 'P':{}, 'S':{}]
                                |
                                |
                                 INFO: [ex: 'RMS':.03, 'GAP':180.,...]

"""

#__________________ EXAMPLE

#-READ NORDIC INTO A DICT nordic_dic = Read_Nordic('initial.out', verbose=True)

#-WRITE A DICT INTO NORDIC FORMAT
Write_Nordic(inp_dic=nordic_dic, output='nordic.out')

About

Read/Write SEISAN-NORDIC format into a python dictionary.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages