Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 861 Bytes

README.md

File metadata and controls

34 lines (28 loc) · 861 Bytes

Information

This script converts a XVG(gromacs output file) to a CSV file.

  • NOTE currently works for xvg file having x-axis and y-axis.

Prerequisites

You need to install numpy and argparse libraries.

pip install numpy argparse

Usage

python xvg-to-csv.py [...arguments]

arguments:

-h or --help :Shows all the options

python xvg-to-csv.py -h

-xvg or XVG :location/to/xvgFile/Name.xvg [default: test.xvg]

python xvg-to-csv.py -xvg ./yourFilename.xvg

-csv or CSV optional :location/to/save/csvFile/Name.csv [default: xvg file location]

python xvg-to-csv.py -xvg ./yourFilename.xvg -csv ./outputFileName.csv

-d or D optional :digits after decimal point [default: 7]

  • following example shows to get upto 3 digits after decimal point.
python xvg-to-csv.py -xvg ./yourFilename.xvg -d 3