{ "info": { "author": "Juan Jos\u00e9 Mart\u00edn", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Education", "Intended Audience :: End Users/Desktop", "Intended Audience :: Science/Research", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Topic :: Multimedia :: Video", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Track Animation\n===============\n\n**Track Animation** is a Python 2 and 3 library that provides an easy and user-adjustable way of **creating visualizations from GPS data** easily and without any kind of technical tie for the user. It allows to import GPS data from **GPX** (GPS eXchange Format) and CSV files in order to manipulate it and, finally, create **videos**, **images**, sequences of images or **interactive maps** to analyze the tracks based on their elevation, speed, duration or any other indicator.\n\nThe main third party libraries that **Track Animation** uses are `gpxpy `__ to parse and read GPX files, `pandas `__ to manipulate all the GPS data and `matplotlib `__ to plot it and save the visualizations.\n\nTo create a basic visualization, simply read the files and pass them to the *AnimationTrack* class:\n\n.. code:: python\n\n import trackanimation\n from trackanimation.animation import AnimationTrack\n\n input_directory = \"example-routes/\"\n ibiza_trk = trackanimation.read_track(input_directory)\n\n fig = AnimationTrack(df_points=ibiza_trk, dpi=300, bg_map=True, map_transparency=0.5)\n fig.make_video(output_file='simple-example', framerate=60, linewidth=1.0)\n\n|Simple-Example|\n\n\nDependencies\n------------\n* `gpxpy `__\n* `pandas `__\n* `matplotlib `__\n* `geopy `__\n* `smopy `__\n* `mplleaflet `__\n* `pillow `__\n* `tqdm `__\n* `FFmpeg `__\n\n\nInstallation\n------------\nInstall **Track Animation** using `pip `__ with:\n\n pip install trackanimation\n\nOr, `download the source files from PyPI `__.\n\n\nGetting Started\n---------------\nYou can find the following examples in the `examples.py `__ file.\n\n\nFiltering by place\n~~~~~~~~~~~~~~~~~~\nIt is possible to filter a set of tracks to retrieve only the points that belong to an specific place or the whole tracks that have passed by there. With the function *timeVideoNormalize*, all the tracks will start and end at the same time in the video, specyfing its duration and frame rate in the parameters. In the next example, the video created has a duration of 10 seconds with 10 frames per second.\n\n.. code:: python\n\n import trackanimation\n from trackanimation.animation import AnimationTrack\n\n input_directory = \"example-routes/\"\n ibiza_trk = trackanimation.read_track(input_directory)\n sant_josep_trk = ibiza_trk.get_tracks_by_place('Sant Josep de sa Talaia', only_points=False)\n sant_josep_trk = sant_josep_trk.time_video_normalize(time=10, framerate=10)\n\n fig = AnimationTrack(df_points=sant_josep_trk, dpi=300, bg_map=True, map_transparency=0.5)\n fig.make_video(output_file='filtering-by-place', framerate=10, linewidth=1.0)\n\n|Filtering-Place|\n\n\nColoring tracks by one indicator\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nFurthermore, an indicator of the tracks can be visualized as a palette of colors to make the analysis and the interpretation of the data easier and effective.\n\n.. code:: python\n\n import trackanimation\n from trackanimation.animation import AnimationTrack\n\n input_directory = \"example-routes/ibiza.csv\"\n ibiza_trk = trackanimation.read_track(input_directory)\n ibiza_trk = ibiza_trk.time_video_normalize(time=10, framerate=10)\n ibiza_trk = ibiza_trk.set_colors('Speed', individual_tracks=True)\n\n fig = AnimationTrack(df_points=ibiza_trk, dpi=300, bg_map=True, map_transparency=0.5)\n fig.make_video(output_file='coloring-map-by-speed', framerate=10, linewidth=1.0)\n\n # Variable 'bg_map' must be to False in order to create an interactive map\n fig = AnimationTrack(df_points=ibiza_trk, dpi=300, bg_map=False, map_transparency=0.5)\n fig.make_map(output_file='coloring-map-by-speed')\n\n`Click to view the interactive map `__\n\n|Coloring-Tracks|\n\n\nVisualizing multiple set of tracks\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nMultiple sets of tracks can be plotted independently in the same visualization to compare them.\n\n.. code:: python\n\n import trackanimation\n from trackanimation.animation import AnimationTrack\n\n input_directory = \"example-routes/\"\n ibiza_trk = trackanimation.read_track(input_directory)\n sant_josep_trk = ibiza_trk.get_tracks_by_place('Sant Josep de sa Talaia', only_points=False)\n\n ibiza_trk = ibiza_trk.set_colors('Speed', individual_tracks=True)\n sant_josep_trk = sant_josep_trk.set_colors('Speed', individual_tracks=True)\n\n fig = AnimationTrack(df_points=[ibiza_trk, sant_josep_trk], dpi=300, bg_map=True, map_transparency=0.5)\n fig.make_image(output_file='multiple-axes')\n\n|Multiple-Axes|\n\n\nDocumentation\n-------------\nMore documentation and examples can be found at `Track Animation PDF document `__.\n\n\n\n.. |Simple-Example| image:: https://raw.githubusercontent.com/JoanMartin/trackanimation/master/example-results/simple-example.gif\n.. |Filtering-Place| image:: https://raw.githubusercontent.com/JoanMartin/trackanimation/master/example-results/filtering-by-place.gif\n.. |Coloring-Tracks| image:: https://raw.githubusercontent.com/JoanMartin/trackanimation/master/example-results/coloring-map-by-speed.gif\n.. |Multiple-Axes| image:: https://raw.githubusercontent.com/JoanMartin/trackanimation/master/example-results/multiple-axes-auto.png\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/JoanMartin/trackanimation", "keywords": "GPS GPX animation map geospatial geopositioning", "license": "Apache License, Version 2.0", "maintainer": "", "maintainer_email": "", "name": "trackanimation", "package_url": "https://pypi.org/project/trackanimation/", "platform": "", "project_url": "https://pypi.org/project/trackanimation/", "project_urls": { "Homepage": "https://github.com/JoanMartin/trackanimation" }, "release_url": "https://pypi.org/project/trackanimation/1.0.5/", "requires_dist": [ "geopy (>=1.16.0)", "gpxpy (>=1.3.3)", "pillow (>=5.2.0)", "matplotlib (>=2.2.3)", "mplleaflet (==0.0.5)", "pandas (>=0.23.4)", "tqdm (>=4.25.0)", "smopy (==0.0.6)" ], "requires_python": "", "summary": "GPS Track Animation Library", "version": "1.0.5" }, "last_serial": 4552589, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "b4c67d69880f64c745ce16bb20626672", "sha256": "a68e171bfab500588b3dfbaec3a94f8292ea46f8fb252d661ab0ab85c31eb08f" }, "downloads": -1, "filename": "trackanimation-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b4c67d69880f64c745ce16bb20626672", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 15612, "upload_time": "2017-07-10T23:54:54", "url": "https://files.pythonhosted.org/packages/1a/88/038a59d4894d9dcc2d9b3b7ceddf36f0c15687ba102dc6c8202c27490e85/trackanimation-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "80ce4262f7b340c335ecf2750598313f", "sha256": "4f2e859f6d1d16629afc67a4b4e42e8ab7c9cd800962abcf919e6f465b2996d5" }, "downloads": -1, "filename": "trackanimation-1.0.0.tar.gz", "has_sig": false, "md5_digest": "80ce4262f7b340c335ecf2750598313f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10359, "upload_time": "2017-07-10T23:54:55", "url": "https://files.pythonhosted.org/packages/1f/54/e952ae410b813f0f16bcabd7be0153a17f2795d9d16e9213d277aeb518d3/trackanimation-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "fa2bf9f294a59ed70aff16161a3c304d", "sha256": "4394548a755be55d73db79611cb85225ee2b86dbcbf515df9deb2e729b367cc1" }, "downloads": -1, "filename": "trackanimation-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "fa2bf9f294a59ed70aff16161a3c304d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 15998, "upload_time": "2017-07-11T23:28:00", "url": "https://files.pythonhosted.org/packages/15/d9/d269c553be946d0880015b3b283197f25e74820da4ef04171e07f933c294/trackanimation-1.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "877c86846e2e136ee654ece1898a64b3", "sha256": "dc1a028474f8a369e876bf3049301e5e3f2075fef33c9b39cc72e6864f05e913" }, "downloads": -1, "filename": "trackanimation-1.0.1.tar.gz", "has_sig": false, "md5_digest": "877c86846e2e136ee654ece1898a64b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8484232, "upload_time": "2017-07-11T23:28:05", "url": "https://files.pythonhosted.org/packages/da/06/fd99e7cdc0e50a19d4ae6fd052268d90f8b13e6efe288f98b9ecb90a6067/trackanimation-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "05227278e234ca660f1a9d44d06e1aa9", "sha256": "e3f2a5e9549cb0e060a377839b59c194d819a05f4866b50ec8ba24bbcf4a96c7" }, "downloads": -1, "filename": "trackanimation-1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "05227278e234ca660f1a9d44d06e1aa9", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 16059, "upload_time": "2017-07-11T23:50:17", "url": "https://files.pythonhosted.org/packages/8c/0b/eb0b2b2144e0f4be160193bb30d42bc8408a8317c92caaac0184b0faab28/trackanimation-1.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dcbc8b314a42b385463d065087875031", "sha256": "949f8ff43b44295edb86a7744ffb8aee3bf04aaaa72fbc2e05e4c621323987fb" }, "downloads": -1, "filename": "trackanimation-1.0.2.tar.gz", "has_sig": false, "md5_digest": "dcbc8b314a42b385463d065087875031", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8484283, "upload_time": "2017-07-11T23:50:22", "url": "https://files.pythonhosted.org/packages/c2/ad/5d8d2cf55c4769dac076e738d1e5f8252e92a1d0eceb0132f675407a829b/trackanimation-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "1b8928b1ae856603bdf106db420273dc", "sha256": "1c3c5c3d19df06307dad158a6e1e502f94181229fda85cabd24e6f698adf5073" }, "downloads": -1, "filename": "trackanimation-1.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1b8928b1ae856603bdf106db420273dc", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 16060, "upload_time": "2017-07-22T15:13:26", "url": "https://files.pythonhosted.org/packages/6c/ef/5454256ecc68810c5759058bb4db3d8f5703224a0cae2151782377d14da4/trackanimation-1.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2e3eea4f18358caeacc84cd8c66c6b9d", "sha256": "4a91dd4fe6728804d8ba42e51c5097382ad4b6c75af95f93a8f67377eb48cacc" }, "downloads": -1, "filename": "trackanimation-1.0.3.tar.gz", "has_sig": false, "md5_digest": "2e3eea4f18358caeacc84cd8c66c6b9d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8484292, "upload_time": "2017-07-22T15:13:40", "url": "https://files.pythonhosted.org/packages/1d/ca/26e49a5d82f78defbe122a60ccf71ce616ae63f5e6a4838b554b352c1145/trackanimation-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "ba0e2dfccdb864b8a4fa2386f918848c", "sha256": "84cd24d73c25f2b35e45b3d687d39415e257058b6d25eca6fdf3cb9fe4ea5903" }, "downloads": -1, "filename": "trackanimation-1.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ba0e2dfccdb864b8a4fa2386f918848c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 17444, "upload_time": "2018-08-21T15:57:06", "url": "https://files.pythonhosted.org/packages/8a/dd/26e4387f882e10f1f621e0cf7d4e11189bee4ba9fd1b467af24daae8ce91/trackanimation-1.0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "775eeb2df2b0040036fc3ff27df9aa4e", "sha256": "cc4761400a1f493db3647add99b51de7a342eb61566067063a9b7a382f1370d1" }, "downloads": -1, "filename": "trackanimation-1.0.4.tar.gz", "has_sig": false, "md5_digest": "775eeb2df2b0040036fc3ff27df9aa4e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8485372, "upload_time": "2018-08-21T15:57:12", "url": "https://files.pythonhosted.org/packages/87/fd/36b208482b0fbefd3f805fe191cefeb63d17f3f299d810104cb9c6e77a7c/trackanimation-1.0.4.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "7c9b05419ecf236d676a6ee5213b8b1d", "sha256": "076f71fe2cf45da3f894ce0aa254162e60650d91c424fac8ce78e6eb24b8090a" }, "downloads": -1, "filename": "trackanimation-1.0.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7c9b05419ecf236d676a6ee5213b8b1d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 18750, "upload_time": "2018-12-02T14:33:48", "url": "https://files.pythonhosted.org/packages/fc/ad/9fe7e05484d1c648496979101163d9c3db57f3b0f3e6f91c0dfc31ad7e92/trackanimation-1.0.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7d5646e49ae4cedef1efdefbb4854dae", "sha256": "acd0456cf670927dbd33f2490bdb3c34e478bed443f272ad043949504f9cf1a0" }, "downloads": -1, "filename": "trackanimation-1.0.5.tar.gz", "has_sig": false, "md5_digest": "7d5646e49ae4cedef1efdefbb4854dae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8770828, "upload_time": "2018-12-02T14:33:52", "url": "https://files.pythonhosted.org/packages/94/b5/3037ac464a87d4850071374a9ee3b1e8f0a433e9feaf07285d7f8d2145d2/trackanimation-1.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7c9b05419ecf236d676a6ee5213b8b1d", "sha256": "076f71fe2cf45da3f894ce0aa254162e60650d91c424fac8ce78e6eb24b8090a" }, "downloads": -1, "filename": "trackanimation-1.0.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7c9b05419ecf236d676a6ee5213b8b1d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 18750, "upload_time": "2018-12-02T14:33:48", "url": "https://files.pythonhosted.org/packages/fc/ad/9fe7e05484d1c648496979101163d9c3db57f3b0f3e6f91c0dfc31ad7e92/trackanimation-1.0.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7d5646e49ae4cedef1efdefbb4854dae", "sha256": "acd0456cf670927dbd33f2490bdb3c34e478bed443f272ad043949504f9cf1a0" }, "downloads": -1, "filename": "trackanimation-1.0.5.tar.gz", "has_sig": false, "md5_digest": "7d5646e49ae4cedef1efdefbb4854dae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8770828, "upload_time": "2018-12-02T14:33:52", "url": "https://files.pythonhosted.org/packages/94/b5/3037ac464a87d4850071374a9ee3b1e8f0a433e9feaf07285d7f8d2145d2/trackanimation-1.0.5.tar.gz" } ] }