Skip to content

A simple python scripts converts gromacs xvg file to csv

Notifications You must be signed in to change notification settings

s-k-zaman/xvg-to-csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

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

About

A simple python scripts converts gromacs xvg file to csv

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages