GithubHelp home page GithubHelp logo

igc2kmz's Introduction

igc2kmz IGC to Google Earth converter

igc2kmz converts paraglider and hang glider track logs into Google Earth KML format with lots of features, notably:

  • track colored by altitude, climb rate, ground speed and total energy
  • shadow feature makes it easier to judge the track's altitude by eye
  • animation of the flight
  • photos automatically placed where they were taken and with an optional comment
  • XC optimisation output
  • altitude graph and high and low points labelled
  • thermal and glide analysis
  • time marks

It's used by the following XC league servers:

Just upload your flight to one of these and you can download your flight in Google Earth format without having to install any extra software on your computer.

It is designed to run on XC league servers, and as such is not designed to be directly used by pilots.

Requirements

  • Python version 2.*, not version 3.0

Get the code

Download either the zip archive or the tar.gz archive.

Unpack this archive somewhere.

If you want to track development then you can checkout the source code with git instead of downloading an archive:

git clone git://github.com/twpayne/igc2kmz.git

Run it

Change to the directory where you unpacked the archive and run:

bin/igc2kmz.py -i <input-filename>.igc -o <output-filename>.kmz

Customise it

You can set various parameters via the command line, including the time zone offset in hours relative to UTC. For example, use -z 2 for Central European Time during the summer. For individual flights you can override the pilot name and glider type (otherwise they are taken from the IGC file), set the line color and width, add optimized XC information and photos with comments. Run bin/igc2kmz.py --help for a full list of options. For example use, look at the Makefile.

Rebuild the examples

You can rebuild the example files with the command make examples. This will build the olc2002 flight optimizer, optimize a number of flights, and create the KMZ files in the examples/ subdirectory. Be warned that the flight optimization step can take a long time (30 minutes on a 2.4GHz Core 2 Duo).

igc2kmz's People

Contributors

twpayne avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

igc2kmz's Issues

igc2kmz on Leonardo produces empty KML file error

Hi Tom,
I've noticed for a while now that your excellent igc2kmz part of Leonardo has not been functioning, specifically the "most detailed, bigger size" part. I found it so useful when trying analyse where I went wrong on a flight. Is there any hope of seeing it brought back to life?
Thank you for all your excellent work for the paragliding community which I hugely appreciate as a very mediocre pilot.
Best wishes,
Chris

Default output filename

Hi Tom,

when no output file is given by default filename should have same name (without extension) than input

python bin/igc2kmz.py -i examples/MyTrack.igc

should output MyTrack.kmz (instead of igc2kmz.kmz)

fileName, fileExtension = os.path.splitext('/path/to/somefile.ext')

could help

I also wonder why using this -i flag (option and not 1 positional argument).
A flag could be use to define if this positional argument is a IGC filename, an URL ...

You might have a look at click http://click.pocoo.org/
it's a very convenient package for CLI parsing.

Sébastien

igc2kmz (most detailed, bigger file) issue

Hello,

Once you click to download the most detailed file, it downloads a 0 KB file. At first I thought it was user specific, so I tried several users and random tracklogs. All of them seem to have the same issue and the downloaded file is always of file size 0KB. Once it launches in google earth, it gives a no information in file error.

thank you.

Shoaib.

Invalid C record

Hello,

I output from Condor Soaring an IGC file

$ python bin/igc2kmz.py -i 20150509.igc -o 20150509.kmz

raises a warning

WARNING:root:20150509.igc: invalid record 'C210615130110210615000003'

It will be nice if igc2kmz could support these C records and display both circuit (C records) and also track (B records).

An example of such a file
http://pastebin.com/Kz9PYR1v

Kind regards

Color is lagging

I noticed that color (Colored by climb) is lagging.
See screenshot you can see that color is blue when altitude is increasing
which is odd because positive vertical speed should be red.
Maybe you could numerically shift data points.

color lag 2015-05-09 a 22 05 46

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.