{ "info": { "author": "Benoit Seignovert", "author_email": "benoit.a.seignovert@jpl.nasa.gov", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 3.6", "Topic :: Scientific/Engineering :: Astronomy" ], "description": "Python package for NAIF WebGeoCalc API\n======================================\n\n|Docs| |Build| |Coverage| |CodeFactor|\n\n|PyPI| |Conda|\n\n|Python| |Version| |Status| |Conda Platform|\n\n|DOI| |License|\n\n|Examples|\n\n.. |Docs| image:: https://img.shields.io/readthedocs/webgeocalc.svg?label=Docs&logo=read-the-docs&logoColor=white\n :target: https://webgeocalc.readthedocs.io/\n.. |Build| image:: https://img.shields.io/travis/seignovert/python-webgeocalc.svg?label=Build&logo=travis-ci&logoColor=white\n :target: https://travis-ci.org/seignovert/python-webgeocalc\n.. |Coverage| image:: https://img.shields.io/codecov/c/github/seignovert/python-webgeocalc.svg?label=Codecov&logo=codecov&logoColor=white\n :target: https://codecov.io/gh/seignovert/python-webgeocalc\n.. |CodeFactor| image:: https://www.codefactor.io/repository/github/seignovert/python-webgeocalc/badge/master\n :target: https://www.codefactor.io/repository/github/seignovert/python-webgeocalc/overview/master\n.. |PyPI| image:: https://img.shields.io/badge/PyPI-webgeocalc-blue.svg?logo=python&logoColor=white\n :target: https://pypi.org/project/webgeocalc\n.. |Conda| image:: https://img.shields.io/badge/conda|seignovert-webgeocalc-blue.svg?logo=python&logoColor=white\n :target: https://anaconda.org/seignovert/webgeocalc\n.. |Python| image:: https://img.shields.io/pypi/pyversions/webgeocalc.svg?label=Python\n :target: https://pypi.org/project/webgeocalc\n.. |Conda Platform| image:: https://img.shields.io/conda/pn/seignovert/webgeocalc.svg\n :target: https://anaconda.org/seignovert/webgeocalc\n.. |Version| image:: https://img.shields.io/pypi/v/webgeocalc.svg?label=Version\n :target: https://pypi.org/project/webgeocalc\n.. |Status| image:: https://img.shields.io/pypi/status/webgeocalc.svg?label=Status\n :target: https://pypi.org/project/webgeocalc\n.. |DOI| image:: https://zenodo.org/badge/165558532.svg\n :target: https://zenodo.org/badge/latestdoi/165558532\n.. |License| image:: https://img.shields.io/github/license/seignovert/python-webgeocalc.svg?label=License\n :target: https://github.com/seignovert/python-webgeocalc/\n.. |Examples| image:: https://img.shields.io/badge/Jupyter%20Notebook-examples-blue.svg?logo=jupyter&logoColor=orange\n :target: https://nbviewer.jupyter.org/github/seignovert/python-webgeocalc/blob/master/examples/api.ipynb\n\n\nIn december 2018, `JPL/NAIF`_ announced an **experimental**\n`API RESTful interface`_ for their new `WebGeoCalc server`_\n(which make online SPICE calculations).\nDocumentation_ and `JavaScript examples`_ are already available.\n\nThis package provides a Python interface to make SPICE\ncalculations through this API.\n\n.. _`JPL/NAIF`: https://naif.jpl.nasa.gov/naif/webgeocalc.html\n.. _`API RESTful interface`: https://naif.jpl.nasa.gov/naif/WebGeocalc_announcement.pdf\n.. _`WebGeoCalc server`: https://wgc2.jpl.nasa.gov:8443/webgeocalc\n.. _Documentation: https://wgc2.jpl.nasa.gov:8443/webgeocalc/documents/api-info.html\n.. _`JavaScript examples`: https://wgc2.jpl.nasa.gov:8443/webgeocalc/example/perform-calculation.html\n\nNote the user\n-------------\n\n `WebGeoCalc`_ is not design to handle heavy calculation.\n If you need to make intensive queries, use `Spiceypy`_ or `SpiceMiner`_\n package with locally hosted kernels.\n\n.. _`WebGeoCalc`: https://wgc.jpl.nasa.gov:8443/webgeocalc\n.. _`Spiceypy`: https://github.com/AndrewAnnex/Spiceypy\n.. _`SpiceMiner`: https://github.com/DaRasch/spiceminer\n\n\nInstall\n-------\nWith ``pip``:\n\n.. code:: bash\n\n $ pip install webgeocalc\n\nWith ``conda``:\n\n.. code:: bash\n\n $ conda install -c seignovert webgeocalc\n\nUsage\n-----\n\n.. code:: python\n\n >>> from webgeocalc import API\n\n >>> API.url\n 'https://wgc2.jpl.nasa.gov:8443/webgeocalc/api'\n\n >>> API.kernel_sets() # /kernel-sets\n [ Solar System Kernels (id: 1),\n ...\n Cassini Huygens (id: 5),\n ...\n SPICE Class -- Binary PCK Lesson Kernels (Earth) (id: 39)]\n\n >>> API.bodies(5) # /kernel-sets/{kernelSetId}/bodies\n [ CASSINI (id: -82),\n ...\n SOLAR SYSTEM BARYCENTER (id: 0)]\n\n >>> API.frames('Cassini Huygens') # /kernel-sets/{kernelSetId}/frames\n [ CASSINI_SATURN_SKR4N_LOCK (id: -82982),\n ...\n ITRF93 (id: 13000)]\n\n >>> API.instruments('Cassini Huygens') # /kernel-set/{kernelSetId}/instruments\n [ CASSINI_CIRS_RAD (id: -82898),\n ...\n CASSINI_SRU-A (id: -82001)]\n\n\nPrepare calculation payload:\n\n.. code:: python\n\n >>> from webgeocalc import Calculation\n\n >>> calc = Calculation(\n kernels = 'Cassini Huygens',\n times = '2012-10-19T08:24:00.000',\n calculation_type = 'STATE_VECTOR',\n target = 'CASSINI',\n observer = 'SATURN',\n reference_frame = 'IAU_SATURN',\n aberration_correction = 'NONE',\n state_representation = 'PLANETOGRAPHIC',\n )\n\n >>> calc.payload\n {'kernels': [{'type': 'KERNEL_SET', 'id': 5}],\n 'times': ['2012-10-19T08:24:00.000'],\n 'calculationType': 'STATE_VECTOR',\n 'target': 'CASSINI',\n 'observer': 'SATURN',\n 'referenceFrame': 'IAU_SATURN',\n 'aberrationCorrection': 'NONE',\n 'stateRepresentation': 'PLANETOGRAPHIC',\n 'timeSystem': 'UTC',\n 'timeFormat': 'CALENDAR'}\n\nRun calculation:\n\n.. code:: python\n\n >>> calc.run()\n [Calculation submitted] Status: LOADING_KERNELS (id: 19fd1c05-3bfe-47c7-bd16-28612249ae89)\n [Calculation update] Status: COMPLETE (id: 19fd1c05-3bfe-47c7-bd16-28612249ae89)\n {'DATE': '2012-10-19 08:24:00.000000 UTC',\n 'LONGITUDE': 46.18900522,\n 'LATITUDE': 21.26337134,\n 'ALTITUDE': 694259.8921163,\n 'D_LONGITUDE_DT': 0.00888655,\n 'D_LATITUDE_DT': -0.00031533,\n 'D_ALTITUDE_DT': 4.77080305,\n 'SPEED': 109.34997994,\n 'TIME_AT_TARGET': '2012-10-19 08:24:00.000000 UTC',\n 'LIGHT_TIME': 2.51438831}\n\n >>> from webgeocalc import AngularSeparation\n\nMore details can be found in the `docs`_ and in the `Jupyter Notebooks`_.\n\n.. _`docs`: https://webgeocalc.readthedocs.io/en/stable/calculation.html\n.. _`Jupyter Notebooks`: https://nbviewer.jupyter.org/github/seignovert/python-webgeocalc/blob/master/examples/calculation.ipynb\n\nCommand Line Interface (cli)\n----------------------------\n\nThe webgeocalc API can be call directly from the command line interface:\n\n.. code:: bash\n\n $ wgc-kernels --all\n - Solar System Kernels: (id: 1)\n ...\n - Cassini Huygens: (id: 5)\n ...\n - SPICE Class -- Binary PCK Lesson Kernels (Earth): (id: 39)\n\n $ wgc-instruments 'Cassini Huygens' --name ISS\n - CASSINI_ISS_WAC_RAD: (id: -82369)\n - CASSINI_ISS_NAC_RAD: (id: -82368)\n - CASSINI_ISS_WAC: (id: -82361)\n - CASSINI_ISS_NAC: (id: -82360)\n\n $ wgc-state-vector --kernels 5 \\\n --times 2012-10-19T09:00:00 \\\n --target CASSINI \\\n --observer SATURN \\\n --reference_frame IAU_SATURN\n API status:\n [Calculation submit] Status: COMPLETE (id: 041bf912-178f-4450-b787-12a49c8a3101)\n\n Results:\n DATE:\n > 2012-10-19 09:00:00.000000 UTC\n DISTANCE:\n > 764142.63776247\n SPEED:\n > 111.54765899\n X:\n > 298292.85744169\n Y:\n > -651606.58468976\n Z:\n > 265224.81187627\n D_X_DT:\n > -98.8032491\n D_Y_DT:\n > -51.73211296\n D_Z_DT:\n > -2.1416539\n TIME_AT_TARGET:\n > 2012-10-19 08:59:57.451094 UTC\n LIGHT_TIME:\n > 2.54890548\n\nMore examples can be found in here_.\n\n.. _here: https://webgeocalc.readthedocs.io/en/stable/cli.html\n\n\nDisclaimer\n----------\nThis project is not supported or endorsed by either JPL, NAIF or NASA.\nThe code is provided *\"as is\"*, use at your own risk.\n\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "naif,webgeocalc,api", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "webgeocalc", "package_url": "https://pypi.org/project/webgeocalc/", "platform": "", "project_url": "https://pypi.org/project/webgeocalc/", "project_urls": { "Bug Tracker": "https://github.com/seignovert/python-webgeocalc/issues", "Code coverage": "https://codecov.io/gh/seignovert/python-webgeocalc", "Conda": "https://anaconda.org/seignovert/webgeocalc", "Documentation": "https://webgeocalc.readthedocs.io/", "Source Code": "https://github.com/seignovert/python-webgeocalc", "Travis CI": "https://travis-ci.org/seignovert/python-webgeocalc" }, "release_url": "https://pypi.org/project/webgeocalc/1.2.0/", "requires_dist": [ "pbr", "requests" ], "requires_python": "", "summary": "Python package for NAIF WebGeoCalc API", "version": "1.2.0" }, "last_serial": 5040498, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "ebde9ff53821141c02f844a3a9fb6852", "sha256": "518bf289b0f54c9f3f5777ca1b5e9b5cc2c9ecac65e0482ba8626594f3066a4e" }, "downloads": -1, "filename": "webgeocalc-0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ebde9ff53821141c02f844a3a9fb6852", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5369, "upload_time": "2019-01-13T22:39:58", "url": "https://files.pythonhosted.org/packages/4d/f9/93e6d489e8d42381f1f92e4b8db8dafab85d21fa9efc61178c177bfffeee/webgeocalc-0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "84b0c4d24f3e3248d1f06513d9139a1e", "sha256": "991e4adb57fb432eab95f51c3103a87153aee0831c5b05199140adba1c42a28e" }, "downloads": -1, "filename": "webgeocalc-0.1.tar.gz", "has_sig": false, "md5_digest": "84b0c4d24f3e3248d1f06513d9139a1e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7303, "upload_time": "2019-01-13T22:40:01", "url": "https://files.pythonhosted.org/packages/94/68/a13022677d61e91fee5f55d88c11ac8e23f70fa966b4d5e5e1d84cb01678/webgeocalc-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "e5e2eb0525f1773af8b247fc8295457d", "sha256": "f85aa18c9dca4b51e1ec3edfdf09c3282f99b7b17ba6dacc96713dffc1ff6c40" }, "downloads": -1, "filename": "webgeocalc-0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e5e2eb0525f1773af8b247fc8295457d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11846, "upload_time": "2019-01-23T20:23:49", "url": "https://files.pythonhosted.org/packages/67/13/e941444a3baf41fe2a2c7fd91c47eb1adc6712490c9e96bf8416cecb5379/webgeocalc-0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2aeb5aebacb849301ab733f6705e5973", "sha256": "106102dddf7f4311fdca37ba947e4d6342fa54bb9c81db06c3594ba22c13aa72" }, "downloads": -1, "filename": "webgeocalc-0.2.tar.gz", "has_sig": false, "md5_digest": "2aeb5aebacb849301ab733f6705e5973", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24976, "upload_time": "2019-01-23T20:23:51", "url": "https://files.pythonhosted.org/packages/87/45/1aeff689f4bfb074d5fc99767b21f24789ec68969d5890180c7c9001b9b1/webgeocalc-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "6ddc61df4432416ff3acb0886dfa26cb", "sha256": "a9d55bbcab572aeacdfe697c9db9b4aee863e46354034faf59f363517ac96289" }, "downloads": -1, "filename": "webgeocalc-0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6ddc61df4432416ff3acb0886dfa26cb", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 17087, "upload_time": "2019-01-27T07:18:55", "url": "https://files.pythonhosted.org/packages/c3/e4/f4356637ba5ecbfdc94314e09b886c653da2b37db1746c97b3353f23057b/webgeocalc-0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9213d43a636e46e829f91813b952bf0d", "sha256": "c95d8ba19a558cd1ebf4f1bcf5bd3bf8145df19487c78472b5a5c58166587019" }, "downloads": -1, "filename": "webgeocalc-0.3.tar.gz", "has_sig": false, "md5_digest": "9213d43a636e46e829f91813b952bf0d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 37768, "upload_time": "2019-01-27T07:18:56", "url": "https://files.pythonhosted.org/packages/a1/63/e81826863c8076298e1b8390bbdf8ec7e6e134bcd26c25a31f5af6344f79/webgeocalc-0.3.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "8c44e59058b8dac8da91555d87583c56", "sha256": "baafa2b125737f7aa0b99894b71862de0307c9a7635def6bcc39a4c9699e97f7" }, "downloads": -1, "filename": "webgeocalc-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8c44e59058b8dac8da91555d87583c56", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 23048, "upload_time": "2019-02-11T02:58:08", "url": "https://files.pythonhosted.org/packages/93/fd/4ca6d79ba300a945e1c87d527ea8ee0bcd0b5ede77394ce115ebbe63306e/webgeocalc-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "319291c076cc1fad853c8eb3a90d6bf1", "sha256": "b59be404495701988f95bec09abbf7a684f90284fe70bb9ff79727064323e065" }, "downloads": -1, "filename": "webgeocalc-1.0.0.tar.gz", "has_sig": false, "md5_digest": "319291c076cc1fad853c8eb3a90d6bf1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 47056, "upload_time": "2019-02-11T02:58:10", "url": "https://files.pythonhosted.org/packages/17/26/c297fe28ec910875caa35bc4e5a7bafe28d382df2c1b017fd3df15cf222e/webgeocalc-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "2215fb8c0052321782cd516caf54817a", "sha256": "19f5bc57cc9cd178322a5b63a48b27c775bd5c6a118e24b72e5b165e8235447d" }, "downloads": -1, "filename": "webgeocalc-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2215fb8c0052321782cd516caf54817a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 24797, "upload_time": "2019-02-12T01:14:26", "url": "https://files.pythonhosted.org/packages/19/f5/e0f4343a06e5ca0cf7ebfcf1611d70cc64984de0b34184b243457e7bcb9d/webgeocalc-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f8c41a5c18eb758bafd7d8d9c2cbde5e", "sha256": "339a2c380ae86f35a0fd9d68d6b0ddf2b35f55be0fade5a5f3195a58b623bcdb" }, "downloads": -1, "filename": "webgeocalc-1.1.0.tar.gz", "has_sig": false, "md5_digest": "f8c41a5c18eb758bafd7d8d9c2cbde5e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 50996, "upload_time": "2019-02-12T01:14:27", "url": "https://files.pythonhosted.org/packages/91/ec/9012e50e5b31bce615eb94d7f9e34bad8fc5bdc76e9db0aadb52e6f160ea/webgeocalc-1.1.0.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "bbcea523ecf729a6cd2fee0944133e73", "sha256": "ae25a0907e9401266daf4a105a351494c47d7d8f9110bcb694afa138a49884d7" }, "downloads": -1, "filename": "webgeocalc-1.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "bbcea523ecf729a6cd2fee0944133e73", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 25766, "upload_time": "2019-04-01T18:39:57", "url": "https://files.pythonhosted.org/packages/38/22/d3e040fefdbcf94f2329bbb79e07115ead25311a5094f2e3617df32fa8eb/webgeocalc-1.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e9547c33aeab1c2b94b0bd37009285b0", "sha256": "6bb8e9249e4eef7eae1763494851352fc36ff2ec89191810f9cac8e0a3a36911" }, "downloads": -1, "filename": "webgeocalc-1.2.0.tar.gz", "has_sig": false, "md5_digest": "e9547c33aeab1c2b94b0bd37009285b0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 58897, "upload_time": "2019-04-01T18:39:59", "url": "https://files.pythonhosted.org/packages/18/94/38c8251ede981f688fd61b675dc363456c9a41e871be335031b108512fb9/webgeocalc-1.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bbcea523ecf729a6cd2fee0944133e73", "sha256": "ae25a0907e9401266daf4a105a351494c47d7d8f9110bcb694afa138a49884d7" }, "downloads": -1, "filename": "webgeocalc-1.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "bbcea523ecf729a6cd2fee0944133e73", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 25766, "upload_time": "2019-04-01T18:39:57", "url": "https://files.pythonhosted.org/packages/38/22/d3e040fefdbcf94f2329bbb79e07115ead25311a5094f2e3617df32fa8eb/webgeocalc-1.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e9547c33aeab1c2b94b0bd37009285b0", "sha256": "6bb8e9249e4eef7eae1763494851352fc36ff2ec89191810f9cac8e0a3a36911" }, "downloads": -1, "filename": "webgeocalc-1.2.0.tar.gz", "has_sig": false, "md5_digest": "e9547c33aeab1c2b94b0bd37009285b0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 58897, "upload_time": "2019-04-01T18:39:59", "url": "https://files.pythonhosted.org/packages/18/94/38c8251ede981f688fd61b675dc363456c9a41e871be335031b108512fb9/webgeocalc-1.2.0.tar.gz" } ] }