Python PROPER
Implementation of John Krist's PROPER optical propagation library for Python version 3.x. PROPER is a library of optical propagation procedures and functions for the IDL (Interactive Data Language) environment. PROPER is intended for exploring diffraction effects in optical systems. It is a set of wavefront propagation tools – it is not a ray tracing system and thus is not suitable for detailed design work.
-
Authors: Navtej Singh, Nikta Amiri, Luis Marchen, A J Eldorado Riggs
-
Contact: nsaini@jpl.nasa.gov
-
Organization: NASA Jet Propulsion Laboratory California Institute of Technology
-
Following requirements should be met to run pyPROPER3 -
- Numpy >= 1.8
- Scipy >= 0.14
- astropy >= 1.3
To use FFTW, you will also need pyfftw >= 0.1
-
To install PROPER, execute the following command in downloaded PyPROPER directory -
python setup.py install
-
To use PROPER without installing, issue following commands in python/ipython shell
import sys.path.insert(0, /path/to/PROPER)
-
To run a prescription in interactive mode -
-
Open python or ipython shell and change directory to where the prescription is lying.
-
Import proper package -
import proper -
Execute the prescription -
(psf, sampling) = proper.prop_run('prescription_name', wavelength, grid_size)where the first parameter is name of prescription (without file extension), second parameter is wavelength in micrometer and third argument is grid dimension. You can also pass key-value pairs as optional parameters. To run multiple cases at once in parallel, use prop_run_multi instead.
Please refer to PROPER user manual for more details.
-
One can display the generated point spread function (psf) using matplotlib package -
import numpy as np
import matplotlib.pylab as pltplt.imshow(np.log10(psf), origin = 'lower')
plt.show() -
The PSF can be saved as FITS image -
proper.prop_fits_write("example.fits", psf)where the first parameter is FITS image file name and second parameter is 2D numpy array. prop_fits_write also accepts optional key-value parameters (check doc-string in prop_fits_write for more details). This function will overwrite an existing FITS image with the same name.
-
Release files for PyPROPER 3.2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| PyPROPER-3.2.5-py3.7-macosx-10.9-x86_64.egg | Legacy Egg format | - | - | Details |
Release files / PyPROPER-3.2.5-py3.7-macosx-10.9-x86_64.egg
| Download URL | PyPROPER-3.2.5-py3.7-macosx-10.9-x86_64.egg |
|---|---|
| Size | 292.7 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
e02e186d491b512ad2543a00b468df5d535859148e60b57ab6737896e7d1cabc
|
|
BLAKE2b-256 checksum How to use checksums |
67ea226321c28dbaaae2ddf97325e46d8b9d0a557d783638e2d9bf3ff46047eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.6
|