{ "info": { "author": "Ross A. Beyer", "author_email": "rbeyer@seti.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "=========\nkalasiris\n=========\n\n*Calling ISIS programs from Python*\n\n---------------------------------\n\n.. image:: https://img.shields.io/pypi/v/kalasiris.svg\n :target: https://pypi.python.org/pypi/kalasiris\n\n.. image:: https://img.shields.io/conda/vn/conda-forge/kalasiris.svg\n :target: https://anaconda.org/conda-forge/kalasiris\n\n.. image:: https://travis-ci.com/rbeyer/kalasiris.svg?branch=master\n :target: https://travis-ci.com/rbeyer/kalasiris\n\n.. image:: https://img.shields.io/circleci/project/github/conda-forge/kalasiris-feedstock/master.svg?label=noarch\n :target: https://circleci.com/gh/conda-forge/kalasiris-feedstock\n\n.. image:: https://readthedocs.org/projects/kalasiris/badge/?version=latest\n :target: https://kalasiris.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\n\nThe *kalasiris* library is a Python library to wrap functions and\nfunctionality for the `Integrated Software for Imagers and Spectrometers\n(ISIS) `_.\n\n\n* Free software: Apache Software License 2.0\n* Documentation: https://kalasiris.readthedocs.io.\n\n\nFeatures\n--------\n\n* Primarily a very lightweight wrapper around Python's subprocess\n module to allow easy calling of ISIS programs in the shell from\n within Python.\n* Calling compatibility with pysis_ (but not return types)\n* Guaranteed to work with ISIS 3.6.0+, probably works with ISIS 3+\n* Only guaranteed to work with Python 3.6.0+\n\n\nISIS\n----\n\nThis library really only works if you already have ISIS_ installed and\nworking properly. Quirks of working with where and how ISIS is loaded\nin your environment and how to use kalasiris with it, can be found\nin the documentation.\n\n\nQuickstart\n----------\n\nAre you new to Python? Or you just don't want to mess with\nsophisticated Python installation procedures? Or you don't want\nto commit to installing something when you don't know if it will\nbe worth it? Or you just want to write something 'real quick' in\nPython and need to call some ISIS programs **now**?\n\nWe've got you covered.\n\nJust go into the ``kalasiris`` directory, and copy the ``kalasiris.py``\nfile into the same directory where your program is. It doesn't\ndepend on anything that isn't already part of Python, so you can\njust use it like so::\n\n from kalasiris import cam2map\n\n fromcube = 'something.cub'\n tocube = 'something_mapped.cub'\n cam2map(fromcube, to=mapfile)\n\nEasy! Assuming you have a ``something.cub`` file that can be\nmap-projected.\n\nJust grabbing this one file gets you the ability to call ISIS\nprograms from your Python programs. There are other parts of this\npackage that provide helper functions (like ``cubenormfile.writer``),\nclasses (like ``Histogram``), and syntactic sugar (the *_k functions*).\nYou don't get them by just grabbing ``kalasiris.py`` as described\nabove.\n\nIf you want *all* of the kalasiris library, but still don't want to\ngo through some formal installation process, you can clone this repo,\nand then move (or copy) the whole ``kalasiris/`` directory (instead\nof just the ``kalasiris.py`` file inside of it) to your project, and\nthen do the same thing as above, but now you can do more fun things\nlike this::\n\n import kalasiris as isis\n\n img = 'PSP_010502_2090_RED5_0.IMG'\n hicube = 'PSP_010502_2090_RED5_0.cub'\n histfile = 'PSP_010502_2090_RED5_0.hist'\n\n isis.hi2isis(img, to=hicube)\n\n InsID = isis.getkey_k(hicub, 'Instrument', 'InstrumentId')\n print(InsID)\n # prints HIRISE\n\n isis.hist(hicube, to=histfile)\n\n h = isis.Histogram(histfile)\n\n print(h)\n # prints the hist file header info\n\n print(h['Std Deviation'])\n # prints 166.739\n\n print(h[1])\n # prints the second row of the histogram:\n # HistRow(DN=3924.0, Pixels=1.0, CumulativePixels=2.0, Percent=4.88281e-05, CumulativePercent=9.76563e-05)\n\n print(h[1][3])\n print(h[1].Percent)\n # both of the above print 4.88281e-05\n\n\nYou can see that you now have access to things like the Histogram class,\nthe ``getkey_k()`` *_k function*, and much more.\n\nRead the documentation for more: https://kalasiris.readthedocs.io\n\n\nInstallation\n------------\n\nYou can install ``kalasiris`` via ``pip`` or ``conda-forge``:\n\nTo install ``kalasiris`` via ``pip``, run this command in your terminal:\n\n.. code-block:: console\n\n $ pip install kalasiris\n\nInstalling ``kalasiris`` from the ``conda-forge`` channel can be\nachieved by adding ``conda-forge`` to your channels with:\n\n.. code-block:: console\n\n conda config --add channels conda-forge\n\nOnce the ``conda-forge`` channel has been enabled, ``kalasiris`` can be installed with:\n\n.. code-block:: console\n\n conda install kalasiris\n\nIt is possible to list all of the versions of ``kalasiris`` available on your platform with:\n\n.. code-block:: console\n\n conda search kalasiris --channel conda-forge\n\n\n-------\n\nThis repository layout was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.\n\n.. _ISIS: https://isis.astrogeology.usgs.gov\n.. _pysis: https://github.com/wtolson/pysis\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage\n\n\n=======\nHistory\n=======\n\n1.4.0 (2019-10-08)\n------------------\n* Added the fromlist module.\n\n1.3.0 (2019-10-06)\n------------------\n* Added the cubeit_k() k_function.\n* Added TravisCI tests for ISIS 3.8.1 and 3.9.0\n* Separated tests into those that can run in-memory with mocking, and those that\n need the filesystem, and ISIS, etc.\n\n\n1.2.0 (2019-10-04)\n------------------\n* Added a documentation section to help guide a user to choose between pysis and kalasiris.\n* Improved the documentation for the version module a little.\n* Added the stats_k() k_function.\n\n\n1.1.0 (2019-06-19)\n------------------\n\n* Added the version module in order to query and retrieve ISIS version\n information from the ISIS system.\n* Added TravisCI tests for ISIS 3.7.1\n\n\n1.0.0 (2019-04-24)\n------------------\n\n* Removed cubenormDialect, and moved it to cubenormfile.Dialect\n* Implemented cubenormfile.writer and cubenormfile.DictWriter, to\n write the fixed-width file format that ISIS cubenorm will actually read.\n\n0.2.0 (2019-03-23)\n------------------\n\n* Implemented a new feature: the PathSet Class.\n* Enabled installation via ``conda-forge``\n* Updated some documentation.\n* Fixed it so that the module documentation appears in readthedocs\n\n0.1.2 (2019-03-04)\n------------------\n\n* Discovered a bug that made us platform-dependent. Fixed.\n* Made a variety of documentation improvements.\n* Enabled and tested install via ``pip install``\n* Enabled testing via tox\n* Enabled testing via Travis CI\n\n0.1.1 (2019-02-22)\n------------------\n\n* Jesse discovered that the code was incorrectly testing for\n executability of the ``$ISISROOT/bin/xml/*xml`` files instead of\n the ``$ISISROOT/bin/*`` program files, and issued a PR that\n fixed it.\n\n\n0.1.0 (2019-02-20)\n------------------\n\n* Initial creation finished. Time to share.\n\n0.0.0 (2019-02-12)\n------------------\n\n* Started project.\n\n\nVersion Numbering\n-----------------\n\nThe kalasiris library follows the `Semantic Versioning 2.0.0\nspecification `_, such that released kalasiris\nversion numbers follow this pattern: ``{major}.{minor}.{patch}``.\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/rbeyer/kalasiris", "keywords": "kalasiris", "license": "Apache Software License 2.0", "maintainer": "", "maintainer_email": "", "name": "kalasiris", "package_url": "https://pypi.org/project/kalasiris/", "platform": "", "project_url": "https://pypi.org/project/kalasiris/", "project_urls": { "Homepage": "https://github.com/rbeyer/kalasiris" }, "release_url": "https://pypi.org/project/kalasiris/1.4.0/", "requires_dist": null, "requires_python": "", "summary": "A Python library to wrap functions and functionality for the Integrated Software for Imagers and Spectrometers (ISIS).", "version": "1.4.0" }, "last_serial": 5946779, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "b711484bf0becf140837891302bce792", "sha256": "c314be7a50424637329cd6832cb856cd8ad4a2a98f3a2e6def7251bd4dc591ab" }, "downloads": -1, "filename": "kalasiris-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "b711484bf0becf140837891302bce792", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 12368, "upload_time": "2019-02-28T07:35:50", "url": "https://files.pythonhosted.org/packages/5c/e3/1f46ad807478371e1daedc7a2d83b7503fd41136cd3e5ed6833e036b9c78/kalasiris-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e601b777d5c7ba3a25d8f120646993c9", "sha256": "5bdcb44b71dd7c3a0cf3deb42d18a7516098cb2a372710433413c0d1ac9449db" }, "downloads": -1, "filename": "kalasiris-0.1.1.tar.gz", "has_sig": false, "md5_digest": "e601b777d5c7ba3a25d8f120646993c9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 36850, "upload_time": "2019-02-28T07:35:52", "url": "https://files.pythonhosted.org/packages/67/70/5ff288a132f828f973170f157c4d03f50e2101c69acde8ae88e9fc080895/kalasiris-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "07b5e830fe4c90d1e7082be0e3e23337", "sha256": "849ede976398b10b18d983c3a290b39371e1895168bfbcd41b7e50d5f5fd0dad" }, "downloads": -1, "filename": "kalasiris-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "07b5e830fe4c90d1e7082be0e3e23337", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 12305, "upload_time": "2019-03-05T00:23:57", "url": "https://files.pythonhosted.org/packages/bb/5f/819162b763212379ede9303b3597a0c284063d2a523d00c95ffa18e9a38f/kalasiris-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "df2ace964b8e17ff9279679d14e2ca73", "sha256": "a2981796a9afc033789e24a71b215215ea1485756ec924a1575bbe03ee88853a" }, "downloads": -1, "filename": "kalasiris-0.1.2.tar.gz", "has_sig": false, "md5_digest": "df2ace964b8e17ff9279679d14e2ca73", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 36919, "upload_time": "2019-03-05T00:24:00", "url": "https://files.pythonhosted.org/packages/c1/10/685592f7e68cd079dc11b5eae4d065c037efa22c95fc1a0d6058b3ac5115/kalasiris-0.1.2.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "cdd07bdc1aa7a926967c7fde88e3d1e1", "sha256": "52aadefdcaabe9497b32fd0357ce2849edb0b7f78b747e50af9ff5abe2f5ebfb" }, "downloads": -1, "filename": "kalasiris-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "cdd07bdc1aa7a926967c7fde88e3d1e1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 13829, "upload_time": "2019-03-23T19:04:52", "url": "https://files.pythonhosted.org/packages/01/cc/b7d1348d0d9f255973a4bed344f6cfbcbcd0966daea820eb027ee266778f/kalasiris-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e82fa39cfbad4712376aa26f21176d40", "sha256": "fc8fdf27bd2090b365c8ac234609dbad7fb69bb994124d060bc623208267a4ca" }, "downloads": -1, "filename": "kalasiris-0.2.0.tar.gz", "has_sig": false, "md5_digest": "e82fa39cfbad4712376aa26f21176d40", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 38742, "upload_time": "2019-03-23T19:05:53", "url": "https://files.pythonhosted.org/packages/51/08/80b24a0a2d942306ae7fe79b62922befd1d254b98860693019dad0b74003/kalasiris-0.2.0.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "14abad5df86455a2e6212d52a8181d8a", "sha256": "d1d02086c173de7eae6aea0bc4e04320a7564c24f0973255c1dfccb32a4cd15f" }, "downloads": -1, "filename": "kalasiris-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "14abad5df86455a2e6212d52a8181d8a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14690, "upload_time": "2019-04-24T15:42:50", "url": "https://files.pythonhosted.org/packages/99/5b/eeea9740bb7f692372cdcff71ee54e27de49ea9dfc5baa5d9fce708bb38e/kalasiris-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "97bce6bb0324d25cae535404428a8381", "sha256": "d1a7f6d96dec5871a416c1ab971e24e0b085e1c26c4c62cf65b1ce462d8a7660" }, "downloads": -1, "filename": "kalasiris-1.0.0.tar.gz", "has_sig": false, "md5_digest": "97bce6bb0324d25cae535404428a8381", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 39819, "upload_time": "2019-04-24T15:42:52", "url": "https://files.pythonhosted.org/packages/de/6a/f3524d2235a84383857b69b8f57dc0d5e5ca5a2efc007feef8a6fff15087/kalasiris-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "1fb673ae5aba35f22bd2b9b647fa0b4a", "sha256": "774e427f0e84976501e0d57dec00cc8c7824c91c234892820f05c9a34d9dcdeb" }, "downloads": -1, "filename": "kalasiris-1.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "1fb673ae5aba35f22bd2b9b647fa0b4a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 20963, "upload_time": "2019-06-20T05:40:03", "url": "https://files.pythonhosted.org/packages/d4/f9/8ce3946cc376a2845c26cd722662d95a70eb0e5bb80db5ed9e73a30ef5b2/kalasiris-1.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a2127d67c304c49f5ab84ef811e4feb3", "sha256": "3a06b669375ec84afb87b8a10863a1759518049555de859dd8fcaaf899570e50" }, "downloads": -1, "filename": "kalasiris-1.1.0.tar.gz", "has_sig": false, "md5_digest": "a2127d67c304c49f5ab84ef811e4feb3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 37152, "upload_time": "2019-06-20T05:40:05", "url": "https://files.pythonhosted.org/packages/3e/d4/c5cc6977553961b295ec37be35c227ffa44c8e27d9ef7aeab9076964e75b/kalasiris-1.1.0.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "497534a4fe1c0a4280c86c4e8de3c5ed", "sha256": "da67dd4a3782a2ac07e42b708bfeb304763276f84709d40a16c482d600907e01" }, "downloads": -1, "filename": "kalasiris-1.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "497534a4fe1c0a4280c86c4e8de3c5ed", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 21330, "upload_time": "2019-10-04T18:03:54", "url": "https://files.pythonhosted.org/packages/3d/ac/97f49142a22b83579ff36e0f55348c6d66336bee117077218fa543508329/kalasiris-1.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "944b15e16df3d553eed2ec874d08f7e8", "sha256": "690cbb5cca475eab06e4f7a4fce7cc9a5eca5c24b619a43e2bfceb18f6ae0c63" }, "downloads": -1, "filename": "kalasiris-1.2.0.tar.gz", "has_sig": false, "md5_digest": "944b15e16df3d553eed2ec874d08f7e8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 38278, "upload_time": "2019-10-04T18:03:56", "url": "https://files.pythonhosted.org/packages/e4/ea/ab5790a0334fb59f06b009c8c44bb208fd655b31ed13fe699f88de55bdbb/kalasiris-1.2.0.tar.gz" } ], "1.3.0": [ { "comment_text": "", "digests": { "md5": "e0d3ea138583bb20e3c24b3b96fa261d", "sha256": "6678fffe0b8206c17e64b2eda7cfc817b1479652975eaedaaec6bb563d0ada1b" }, "downloads": -1, "filename": "kalasiris-1.3.0-py3-none-any.whl", "has_sig": false, "md5_digest": "e0d3ea138583bb20e3c24b3b96fa261d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 21669, "upload_time": "2019-10-07T04:26:22", "url": "https://files.pythonhosted.org/packages/6f/75/74efc7a0be44bce5ad662b68d8dd951feec79b20d4d5e4a2b4a10ca5d528/kalasiris-1.3.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "04663b7f60ad0c8a71ded485a0a893eb", "sha256": "e562ad5b692f8bf2a73dc6c069b5fd5e1f93a11f93c887ba57b4b639dae72e4a" }, "downloads": -1, "filename": "kalasiris-1.3.0.tar.gz", "has_sig": false, "md5_digest": "04663b7f60ad0c8a71ded485a0a893eb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 41809, "upload_time": "2019-10-07T04:26:24", "url": "https://files.pythonhosted.org/packages/a6/59/d7ef3bcd8d46705f35fc8a4edcf59856670ce6de9528425570a959de85fc/kalasiris-1.3.0.tar.gz" } ], "1.4.0": [ { "comment_text": "", "digests": { "md5": "70343d0274500e1549101ec346bc969f", "sha256": "275e62fc2eba9d1babed9ca71ed54e31f90efd09e7b2db093d49f657a2ade3e6" }, "downloads": -1, "filename": "kalasiris-1.4.0-py3-none-any.whl", "has_sig": false, "md5_digest": "70343d0274500e1549101ec346bc969f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 23208, "upload_time": "2019-10-08T21:31:12", "url": "https://files.pythonhosted.org/packages/d8/68/0a2d46931edea71627d8b6045a047832c80bd3cb955850e1363b4f9a43af/kalasiris-1.4.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "914b91b4b2bd0219606729eebcc0adf3", "sha256": "b57c4278bac1ffb4ab584fcf27fcfdb3c145aad0bbe2d5b0cf57ea86c220d6d5" }, "downloads": -1, "filename": "kalasiris-1.4.0.tar.gz", "has_sig": false, "md5_digest": "914b91b4b2bd0219606729eebcc0adf3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 43122, "upload_time": "2019-10-08T21:31:13", "url": "https://files.pythonhosted.org/packages/33/b0/3537f6f35569babada0f1b13737b89b65a66f887e64838b575aaf34da519/kalasiris-1.4.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "70343d0274500e1549101ec346bc969f", "sha256": "275e62fc2eba9d1babed9ca71ed54e31f90efd09e7b2db093d49f657a2ade3e6" }, "downloads": -1, "filename": "kalasiris-1.4.0-py3-none-any.whl", "has_sig": false, "md5_digest": "70343d0274500e1549101ec346bc969f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 23208, "upload_time": "2019-10-08T21:31:12", "url": "https://files.pythonhosted.org/packages/d8/68/0a2d46931edea71627d8b6045a047832c80bd3cb955850e1363b4f9a43af/kalasiris-1.4.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "914b91b4b2bd0219606729eebcc0adf3", "sha256": "b57c4278bac1ffb4ab584fcf27fcfdb3c145aad0bbe2d5b0cf57ea86c220d6d5" }, "downloads": -1, "filename": "kalasiris-1.4.0.tar.gz", "has_sig": false, "md5_digest": "914b91b4b2bd0219606729eebcc0adf3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 43122, "upload_time": "2019-10-08T21:31:13", "url": "https://files.pythonhosted.org/packages/33/b0/3537f6f35569babada0f1b13737b89b65a66f887e64838b575aaf34da519/kalasiris-1.4.0.tar.gz" } ] }