Created
September 5, 2013 19:40
-
-
Save sirishn/6455092 to your computer and use it in GitHub Desktop.
One-step convert binary encoded SL log and plot it!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# convert binary-encoded SL log files to .CSV, then plot them | |
def read_and_plot(filename) | |
@filename = filename | |
puts "Converting #{@filename} to .CSV" | |
system("ruby read_sl_data.rb #{@filename}") | |
puts "Plotting #{@filename}.csv" | |
system("python csv_to_plot.py #{@filename}.csv") | |
end | |
if __FILE__ == $0 | |
filename = ARGV[0] | |
read_and_plot filename | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment