Package for polarization state calculations
Project description
About
Pylarization is a Python module that aids in processing light polarization states. For given method of polarization description it can calculate all parameters of a polarization ellipse.
Installation
The following should do, as pylarization does not have any platform-specific dependancies.
pip install pylarization
Usage
Polarization Ellipse
PolarizationEllipse is the base class for all classes describing different methods of describing the state of polarization.
To create an instance it is necessary to supply light amplitudes along the X and Y axes and the phase difference between the amplitudes.
light = PolarizationEllipse(0.445, 0.89, 1.57)
Vectors
Jones Vector
light = JonesVector(0.445, 0.89j)
Stokes Vector
light = StokesVector(1, 0.6, 0, 0.8)
Matrices
Jonex Matrix
matrix_values = numpy.matrix([[1, 0], [0, -1j]])
light = JonesMatrix(matrix_values) * JonesVector(1, -1j)
light.vector
matrix([[ 1.+0.j],
[-1.+0.j]])
Mueller Matrix
matrix_values = numpy.matrix([[0.5, 0.5, 0, 0], [0.5, 0.5, 0, 0], [0 , 0, 0, 0], [0 , 0, 0, 0]])
light = MuellerMatrix(matrix_values) * StokesVector(1, 0, 0, 0)
light.vector
matrix([[0.5],
[0.5],
[0. ],
[0. ]])
Coherency Matrix
light = CoherencyMatrix(1, 0 ,0 ,0)
Sources
All sources can be found here
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pylarization-0.2.1.tar.gz
.
File metadata
- Download URL: pylarization-0.2.1.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84e14001f9ab03cb941300ccb092a6cc69f80e4c96710b9dd2e365232c60ff22 |
|
MD5 | ea0e51508e574571bd27b9d777d43303 |
|
BLAKE2b-256 | 7e5080a6b33ab503ee1f26e180a4045534214bfc45f3e52623dcfc6b8f7494bd |
File details
Details for the file pylarization-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: pylarization-0.2.1-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2205beeb2e65ffeebb49dacc247026f5429ed4f615da81d9b21d233a6195787 |
|
MD5 | 0d5452d5a1d23f3bc4c114581013ba7e |
|
BLAKE2b-256 | f935e212e42f4056a1e32e5b514b7b0bc2778109516688d3c33ec7bad93c137f |