Commit 864495ed authored by Qusai Al Shidi's avatar Qusai Al Shidi 💬
Browse files

Commit before github push

parent 2c71470d
......@@ -2,9 +2,27 @@
Interpolate washed out data from OMNI
import sys
from datetime import datetime as d
import numpy as np
def convert(infile, outfile):
Start the process of conversion.
# Write out the header
outfile.write("OMNI file downloaded from\n")
outfile.write("yr mn dy hr min sec msec bx by bz vx vy vz dens temp\n")
# Begin conversion line by line
for line in infile:
date = d.strptime(line[:14], "%Y %j %H %M")
correctline = date.strftime("%Y %m %d %H %M %S") + ' 000' + line[14:]
# Close files
def clean(data):
Cleans the data for bad discontinuities.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment