Skip to content

Instantly share code, notes, and snippets.

@sirishn
Created September 5, 2013 19:40
Show Gist options
  • Save sirishn/6455092 to your computer and use it in GitHub Desktop.
Save sirishn/6455092 to your computer and use it in GitHub Desktop.
One-step convert binary encoded SL log and plot it!
#!/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