Skip to content

Build based on a legacy code stored in text file for all stations and events used in inversion, I need to first look up in the legacy dataset if it already exists, find the number for event and station, otherwise assign a new number for each one that does not exists.

Notifications You must be signed in to change notification settings

hesamsaeidi/event_statation_name

Repository files navigation

Before Running

These scripts create a SQL database with python and test output results for matching events and stations The final output will be traveltime residuls for event-station pairs with unique numbers for events All these codes were only tested on mac SQlite is used because it is already installed by default

Database Creation

table_create.py:

will check if the two tables exists in the database or not.

If it is not already created it will create them

init.py:

initialize the connection to the main database which is named all_data.db

Extracting data for inversion

allData.out

This file should be created individually for each network.

allEvent.out

This file including unique events with unique event-numbers can be extracted from the database by "allEventCreator.py" .

About

Build based on a legacy code stored in text file for all stations and events used in inversion, I need to first look up in the legacy dataset if it already exists, find the number for event and station, otherwise assign a new number for each one that does not exists.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages