micropolarizer array data utilities
Project description
micropolarray
Python open-source module for loading and using micropolarizer array and PolarCam images.
Installation
Run one of the following commands in your terminal:
pip install micropolarray
OR
pip install git+https://github.com/Hevil33/micropolarray_master
If an error message about wheels appear, launch it again.
You can run the test.py
script to verify the correct installation of the micopolarray package.
Features
- Automatic polarization calculation
- Fast and optimized operations on the micropolarizer array
- Basic image cleaning (dark/flat subtraction)
Documentation
Get the simple jupyter tutorial for a brief introduction.
Docs are in the documentaion folder (html format).
Usage
import micropolarray as ml
The main class is MicroPolarizerArrayImage()
, which can be initialized from
- A
numpy
2D array - A list of .fits filenames
- Another
MicroPolarizerArrayImage()
Some useful member functions are :
MicroPolarizerArrayImage()
- .show()
- .show_with_pol_params()
- .rebin()
- .demosaic()
Information on polarization is automatically calculated and stored in the class members as numpy
arrays
MicroPolarizerArrayImage()
- .data
- single_pol_subimages
- .Stokes_vec
- .I.data
- .Q.data
- .U.data
- pB.data (polarized brightness)
- AoLP.data (angle of linear polarization)
- DoLP.data (degree of linear polarization)
Additional modules
micropolarray:
- .processing
- .congrid (experimental) : fast congrid operations
- .convert : raw (binary) files to fits conversion
- .new_demodulation : image demodulation and demodulation tensor calculation
- .demosaic : fast image demosaicing
- .nrgf : occulter finding and roi selection, nrgf filter
- .rebin : fast image binning
- .shift : image shifting
- .cameras (experimental) : classes for sensor informations
- .image : general image handling
- .utils
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
Hashes for micropolarray-1.0.2.post1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b582a11d080f145fdfa2f7871ce9d6acc9b4248b5754df4c7f389170f761b9f5 |
|
MD5 | 23b540ef39f4458e89c1a4997e497a77 |
|
BLAKE2b-256 | 774559588c6ee633db4b054e99fb6232214dd6d40435b280b214165e34cb5b40 |
Hashes for micropolarray-1.0.2.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e580c7e00e011979dec3878d56c34e972afad2ca1fac8288f53495ac233e707 |
|
MD5 | dd3a536ab70e315fccceca395918af97 |
|
BLAKE2b-256 | a4f3ca85595e722369aacd7e43f7f1a1b19561fb52cf75cfd918e47b1727f12f |