A python tool for processing diplacement/velocity CSV data
Features:
- The raw velocity has a 4th order butterworth filter applied to it to reduce noise. A corner frequency of 6 Hz is used.
- The acceleration is derived from the velocity
- Each csv is analysed by
do_analysis(), determining:- the start which is the first index before peak displacement that has velocity > 0
- the time when max displacement is reached, and the displacement at this time
- the time when the acceleration is first at free fall, and the displacement at this time
- the mean velocity and mean acceleration between the start and the time at which free fall is reached
Before you can run this project, you'll need to have Python installed on your Windows computer.
-
Download Python:
- Go to python.org
- Download the latest Python 3.x version for Windows
- Make sure to download the installer (not the web-based installer)
-
Install Python:
- Run the downloaded installer
- IMPORTANT: Check the box "Add Python to PATH" at the bottom of the installer window
- Click "Install Now"
- Wait for installation to complete
-
Verify Installation:
- Press
Windows + R, typecmd, and press Enter to open Command Prompt - Type
python --versionand press Enter - You should see something like "Python 3.x.x"
- If you get an error, you may need to restart your computer or reinstall Python with "Add to PATH" checked
- Press
-
Download/Extract the Project:
- Make sure all project files are in a folder (e.g.,
C:\Users\<YourName>\Documents\force-vec) - The folder should contain:
main.pyqt_plot.pyrequirements.txtrun.batrun.shinput/folder
- Make sure all project files are in a folder (e.g.,
-
Prepare Your Data:
- Place your CSV files in the
input/folder - The
output/folder will be created automatically when the program runs
- Place your CSV files in the
- Navigate to your project folder in File Explorer
- Double-click on
run.bat
Alternatively, if you prefer using the command line:
- Open Command Prompt in your project folder
- Run:
run.bat
- Navigate to your project folder in terminal
- Run
./run.sh
- Processed CSV files: Found in the
output/folder with_output.csvsuffix - Plots and graphs: The program will display visualizations of your data