idlwrap
idlwrap is a python package which provides many functions known from Harris Geospatial's IDL (Interactive Data Language), all implemented in scipy/numpy.
No IDL is required to run idlwrap, as it is pure python!
With numpy and scipy, there are powerful and open-source tools available for scientific computing in python. Currently, still lots of scientific projects — especially in astrophysics — 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!
This 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.
Installation
Install idlwrap with pip:
pip install idlwrap
Usage
One of the main differences between IDL and python is how arrays and indices are handled. Let's create an array:
IDL> a = INDGEN(3, 4)
IDL> a
0 1 2
3 4 5
6 7 8
9 10 11
That is easy in idlwrap:
>>> a = idlwrap.indgen(3,4)
>>> a
array([[ 0, 1, 2],
[ 3, 4, 5],
[ 6, 7, 8],
[ 9, 10, 11]])
In IDL, array-indices are inclusive:
IDL> a[1:2, 1:2]
4 5
7 8
while they are exclusive in python:
>>> a[1:2, 1:2]
array([[4]])
idlwrap can help here too, by making IDL subsetting available as a function:
>>> idlwrap.subset_(a, "[1:2, 1:2]")
array([[4, 5],
[7, 8]])
idlwrap provides many more functions. Make sure you check the documentation, 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!
Metadata
Release files for idlwrap 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| idlwrap-0.1.0.tar.gz | 15.5 kB | Without provenance | Details for idlwrap-0.1.0.tar.gz |
Release files / idlwrap-0.1.0.tar.gz
| Download URL | idlwrap-0.1.0.tar.gz |
|---|---|
| Size | 15.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d9c660ad83805f758f9c30088d0e3375f0031dcf7740fd64d394a606b3b541ff
|
|
BLAKE2b-256 checksum How to use checksums |
693b031d4f724b4140daa0107478530c754078d47527caed8b7ca93a136da538
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for idlwrap 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.