This script converts a XVG(gromacs output file) to a CSV file.
NOTEcurrently works for xvg file having x-axis and y-axis.
You need to install numpy and argparse libraries.
pip install numpy argparsepython xvg-to-csv.py [...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