{ "info": { "author": "Ralf Farkas", "author_email": "r4lv@peaxels.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Other", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Topic :: Scientific/Engineering :: Astronomy", "Topic :: Scientific/Engineering :: Physics", "Topic :: Software Development :: Libraries" ], "description": "# idlwrap\n\n*idlwrap* is a python package which provides many functions known from Harris Geospatial's IDL (Interactive Data Language), all implemented in `scipy`/`numpy`.\n\n> No IDL is required to run *idlwrap*, as it is pure python!\n\nWith `numpy` and `scipy`, there are powerful and open-source tools available for scientific computing in python. Currently, still lots of scientific projects \u2014 especially in astrophysics \u2014 rely on the proprietary and expensive IDL instead of moving foward to open and reproducible science. There are many reasons for chosing python over IDL, but transition is not that easy. At least it was until now!\n\nThis package aims to abstract away all differences in IDL and python and provide the interface and functions you know from IDL, but using `scipy` and `numpy` under the hood.\n\n\n\n## Installation\n\n\nInstall *idlwrap* with pip:\n\n``` bash\npip install idlwrap\n```\n\n\n## Usage\n\nOne of the main differences between IDL and python is how arrays and indices are handled. Let's create an array:\n\n``` IDL\nIDL> a = INDGEN(3, 4)\nIDL> a\n 0 1 2\n 3 4 5\n 6 7 8\n 9 10 11\n```\n\nThat is easy in *idlwrap*:\n\n``` python\n>>> a = idlwrap.indgen(3,4)\n>>> a\narray([[ 0, 1, 2],\n [ 3, 4, 5],\n [ 6, 7, 8],\n [ 9, 10, 11]])\n```\n\nIn IDL, array-indices are *inclusive*:\n\n``` IDL\nIDL> a[1:2, 1:2]\n 4 5\n 7 8\n```\n\nwhile they are *exclusive* in python:\n\n``` python\n>>> a[1:2, 1:2]\narray([[4]])\n```\n\n*idlwrap* can help here too, by making IDL subsetting available as a function:\n\n``` python\n>>> idlwrap.subset_(a, \"[1:2, 1:2]\") \narray([[4, 5],\n [7, 8]])\n```\n\n\n*idlwrap* provides many more functions. Make sure you check the [documentation](https://r4lv.github.io/idlwrap), which is filled with many examples on how to use *idlwrap*, but also provides general information on how to port existing IDL code to python!", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/r4lv/idlwrap", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "idlwrap", "package_url": "https://pypi.org/project/idlwrap/", "platform": "", "project_url": "https://pypi.org/project/idlwrap/", "project_urls": { "Homepage": "https://github.com/r4lv/idlwrap" }, "release_url": "https://pypi.org/project/idlwrap/0.1.0/", "requires_dist": null, "requires_python": ">=3.5.0", "summary": "Provides an IDL-like interface to scipy/numpy for quick porting of IDL code to python.", "version": "0.1.0" }, "last_serial": 3914988, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "206b9ca95015a479f6de0d6c3c15a73f", "sha256": "d9c660ad83805f758f9c30088d0e3375f0031dcf7740fd64d394a606b3b541ff" }, "downloads": -1, "filename": "idlwrap-0.1.0.tar.gz", "has_sig": false, "md5_digest": "206b9ca95015a479f6de0d6c3c15a73f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.0", "size": 15471, "upload_time": "2018-05-30T22:37:46", "url": "https://files.pythonhosted.org/packages/69/3b/031d4f724b4140daa0107478530c754078d47527caed8b7ca93a136da538/idlwrap-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "206b9ca95015a479f6de0d6c3c15a73f", "sha256": "d9c660ad83805f758f9c30088d0e3375f0031dcf7740fd64d394a606b3b541ff" }, "downloads": -1, "filename": "idlwrap-0.1.0.tar.gz", "has_sig": false, "md5_digest": "206b9ca95015a479f6de0d6c3c15a73f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.0", "size": 15471, "upload_time": "2018-05-30T22:37:46", "url": "https://files.pythonhosted.org/packages/69/3b/031d4f724b4140daa0107478530c754078d47527caed8b7ca93a136da538/idlwrap-0.1.0.tar.gz" } ] }