Giter Site home page Giter Site logo

videograph.js's Introduction

Video Graph

A tool to analyze time series synchronously with the specMACS campaign quicklook videos.

Marek Jacob, 2017

Example

Info

This is work in progress. Ideas and contribution are warmly welcome!

How to use

If you hosts Video Graph yourself (see below) you can easily exchange the shown data. Basically four steps are needed:

Change Video file

First, exchange the specMACS video link in index.html. Some data to match video frames and the time of the measurement are used from the specMACS server and the corresponding URLs are derived from the video link. Therefore, it is the best to load the video from the specMACS server and just change the RF number and the campaign (NARVAL or NAWDEX).

Use own data

Second, the shown data is defined by the graph_file option set for the videograph plugin (also in index.html). For the "graph_file", a comma separated file is excepted that includes a header flowed by rows of floats. One column has to specify the time. Three different formats for the time are possible; the column name defines the format:

  1. sod: Seconds of the day. Seconds since 00:00:00 UTC of the day of the research flight.
  2. time_s: Seconds since 1970-01-01 00:00:00 UTC (Unix epoch).
  3. time: Milliseconds since 1970-01-01 00:00:00 UTC (Javascript Date).

All other columns are then shown as graphs in one figure.

Adjust "y"-Axis

Finally, you have to specify the range of th y-axis, which is the horizontal axis in this case. Todo so, set min_value and max_value in index.html. The scale parameter can be used to multiply a constant with all shown data as well as min_value and max_value.

Host Video Graph

Video Graph has to be hosted on a web server. Simple local access via file:// does not work due to restricted cross origin requests. But Python includes a simple HTTP server, which you can start within the Video Graph directory:

python -m SimpleHTTPServer

Than you should be able to open the index.html of Video Graph in your browser on http://localhost:8000. The port may differ from 8000. Have a look on the python SimpleHTTPServer output.

Further plans

  • ☑ Adjust the graph top-bottom expansion parameter to flight altitude and speed.
  • ☐ Use real cloud top hight for the top-bottom scaling of the graph.
  • ☐ Add possibility to upload own data.
  • ☐ Make the flight/video exchangeable.
  • ☐ Provide possibility to change meta Data (FOW-width ☑, data range ½, scale ½, legend ☑).
  • ☑ Show multiple curves including legend.
  • ☐ Show multiple curve panels or different axes on one panel.
  • ☐ Find a nice way to show time series of flags.
  • ☐ Improve browser compatibility.
  • ☐ Make animation smoother.
  • ☐ ? Loop feature. Add a stop marker to the url.
  • ☑ Github the project for pull and feature requests.

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.