Giter Club home page Giter Club logo

metro's Introduction

Post-processing of Sensor Logger recordings for metro braking data analysis

Main scripts

Plotting data

  • plot_all_decel.py : plots all calibrated accelerations found in a folder

  • plot_trips_selection.py allows to compare a selection of trips, both for calibrated/uncalibrated and raw/filtered data

  • plot_FFT_single_trip.py: plots the FFT of calibrated accel of a single trip

Identifying stops from acceleration recordings

  • find_constant_accel.py was the first attempt to identify time windows where accel is constant. Leads to false positives (see ep.2 : https://www.linkedin.com/pulse/data-analysis-paris-metro-ep2-eric-cabrol-tq7ye/)

  • find_jolts.py : second attempt, using "jolt-back" peaks => seems better (see ep.3 : https://www.linkedin.com/pulse/data-analysis-paris-metro-ep3-eric-cabrol-lynie) A file timestamps.txt is generated in each folder. It still requires a manual validation, then the file must be saved as timestamps_valid.txt.

  • find_jolts_all.py : detect jolts in all recordings of a given directory => in fact there are as many difficulties to identify the stops, so I switched back to the constant accel solution

  • find_constant_accel_all.py : asks for confirmation after each trip, which allows to modify the timestamps file before validating

Identifying stops from recordings names

  • previously done in find_stops_from_trip_name.py, now in metro.py module

Cut trips (once stops are validated)

  • cut_trips.py : could be merged with check_timestamps.py

Module

  • metro.py : contains a class named Trip to retrieve all useful information from the trip name. Shall I also manage quantitative data with this class (eg sampling frequency) ?

Utilities

NB : zip files exported from SensorLogger must be manually downloaded from Google Drive into zip folder

  1. unzip_recordings.py allows to unzip recordings in data
  2. remove_total_accel.py removes TotalAcceleration.csv files, because they contain the same data as AccelerometerUncalibrated.csv

metro's People

Contributors

ericcabrol avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.