Python script needed to help with data processing.

A well annotated python script that:

* Reads the input file

* Generates an event class that can “hold” the various lines of data for one event (i.e. a line/subclass with the date/time line and various station lines).

* Parses the data into the new format by making a write routine for the class.

###### Instructions on input files and expected output file formats


The format is incredibly convoluted. There are 3 kinds of lines:

Kind 1 -- Event Lines

Format: NPha Year Month Day Hr Min Sec Junk

Kind 2 -- Phase Lines

Phase_Type Station Weight MinPhase SecPhase

Kind 3 -- End of Phase Line (starts with a 31 -- these lines can be ignored)

31 Station Junk Junk Junk

NPha -- specifies the number of phases for any individual event

Phase_Type -- 0 = P, 1 = S

***Please change 0 to P and 1 to S in output file

What I’m looking for is a file with the following format

# Year Month Day Hr Min Sec

Station Phase SecPhase Weight

Station Phase SecPhase Weight


# Year Month Day Hr Min Sec

Station Phase SecPhase Weight

Station Phase SecPhase Weight




3 2013 1 1 17 2 0.00 2

0 CL7 1 2 91.12

1 CL7 1 2 102.6

31 CL7 0 0 42.00

11 2013 1 4 19 37 0.00 2

0 CBET 2 37 97.80

1 CBET 2 37 138.8

31 CBET 0 0 57.00

0 CPRX 1 37 92.56

1 CPRX 1 37 128.7

31 CPRX 0 1 0.00

0 GDL2 1 37 94.08

1 GDL2 2 37 133.9

31 GDL2 0 1 21.00

0 HTMS 2 37 43.02

31 HTMS 0 0 24.00

OUTPUT (spaced apart for clarity):

#2013 1 1 17 2 0.0

CL7 P 91.2 1

CL7 S 102.6 1

#2013 1 4 19 37 0.0

CBET P 97.80 2

CBET S 138.8 2

CPRX P 92.56 1

CPRX S 128.7 1

GDL2 P 94.08 1

GDL2 S 133.9 2

HTMS P 43.02 2

Skills: Python, Software Architecture

See more: python script extract data web page, python script crape data, python script read url data, python data analysis, python scripts for windows, python data analysis example, run python script from python shell, useful python scripts, python parallel processing large file, python scripts examples, python scripts github, python script extract data, python script read data text file, python script extract web data, python script modify file data, python script download historical data yahoo, python script retrieving website data, registration fee needed apply data processing job, python script scrape market data, python script query twitter data

About the Employer:
( 0 reviews ) San Leandro, United States

Project ID: #24576436

Awarded to:


I read the PDF file and it seems the input data just needs to be converted (P, S -> 0,1) and some formatting.. At first, I thought I would need to group the phases into phase types. I have a lot of questions and probab More

$50 USD in 1 day
(8 Reviews)

31 freelancers are bidding on average $101 for this job


Hello, I can help you with your project - Python script needed to help with data processing. I have gone through your job posting and become very much interested to work with you. I am an expert in this field. I hav More

$220 USD in 4 days
(63 Reviews)

Hello Though the requirement can be achieved in python, why do you want to complicate things? I can get you a script developed in excel vba that does this in the next 24 hours. You can operate the script on a button More

$100 USD in 2 days
(56 Reviews)

I can write this python script for the above mentioned process to read input file and process it .

$70 USD in 1 day
(78 Reviews)

Hi, I have checked the requirement carefully. And I can very easily provide you the output in the specified format. We will simply ignore the KIND 3 Type Inputs and Consider only KIND 1 and 2 types. Feel Free to dis More

$50 USD in 1 day
(22 Reviews)

Hi I can provide you the script in few hours i clearly understand your requirements. Please let me know if you are interested

$50 USD in 1 day
(16 Reviews)

Hi I am a very experienced statistician, data scientist and academic writer. I have completed several PhD level thesis projects involving advanced statistical analysis of data. I have worked with data from several comp More

$250 USD in 7 days
(19 Reviews)

Hello, Sir. I read your opinion seriously. I have experience of 7 years and done similar projects before. As a man of trust, I can develop your project with full perfection. Let me go on, you can get the best project t More

$100 USD in 1 day
(11 Reviews)

Hi there, I have more than 7 years of experience in Data processing using python and I will complete this project before proposed deadline. Please contact me to discuss more on this.

$200 USD in 7 days
(18 Reviews)

------- senior python expert, i can build your script to process files ----- Dear, Client I am a freelancer from Bulgaria. I have just read your proposal and understood your requirement. I am sure that I can reach y More

$200 USD in 2 days
(2 Reviews)

Hello? I have worked on Python/Scrap projects to what you are looking for, and I am confident I can exceed your expectations. Thank you for your time. I have attached samples of work very similar to what you are see More

$50 USD in 1 day
(1 Review)

Hello Dear, I am senior Sorftware Developer with full experience of 5 years. I have done many projects using Data Mining and Python. If you want, I can provide examples. I will wait for your reply. Thank you.

$50 USD in 1 day
(4 Reviews)

Hello Dear...! Alert: I will give you 20% discount on my bid rate also give on my All Services. So grabs this special offer is limited. Let’s get to the point. I came to know that your Looking a developer which hav More

$35 USD in 1 day
(3 Reviews)

Hi, I have pretty strong experience in Data processing using Python. I think this problem can be easily solved using regular expression. Kindly ping me to move further. Thanks!

$40 USD in 1 day
(4 Reviews)

Hi, there. I have read your description carefully. I am very interested in your project. I have high Python skill and have experience with data processing. Looking forward to hearing from you. Thanks, Regards.

$250 USD in 5 days
(1 Review)

Regarding Python frameworks, I have 8+ years in this field and have worked on many successful projects in the past. I am very skilled in Python Django/Flask. If you are looking for a highly skilled and rich experience More

$100 USD in 2 days
(1 Review)

Hi,dear. I've just checked all requirements of your project 'Python script needed to help with data processing.'. I'm a senior software developer and I'm able to fulfill your project requirements ,you may be interested More

$155 USD in 1 day
(1 Review)

Hi, I'm an experienced python programmer and I can develop the script you are looking for. The delivery time (2 days) includes time for debugging and for adding any bells and whistles we might need. Regards.

$100 USD in 2 days
(0 Reviews)

Hi, I have gone through your requirement and able to produce the output as you mentioned in a text file. Will be waiting for your reply. thank you.

$50 USD in 1 day
(0 Reviews)

In possession of existing code with similar functionality. can handle your request with minor changes.

$200 USD in 4 days
(0 Reviews)

I have a lot of experience with python including teaching several courses in college. I should be able to finish your project by the end of this week.

$120 USD in 3 days
(0 Reviews)