add ti/tv ratio script and sample data output