A two-channel deconvolution method with Starlet regularization
Project description
STARRED: STARlet REgularized Deconvolution
STARlet REgularized Deconvolution (STARRED) is a Python deconvolution method powered by Starlet regularization and JAX automatic differentiation. It uses a Point Spread Function (PSF) narrower than the original one as kernel.
The main Documentation can be found here
Installation
Through PyPI
STARRED releases are distributed through the Python Package Index (PyPI). To install the latest version use pip:
$ pip install starred-astro
or, with the optional dependencies:
$ pip install starred-astro[opt]
Through Anaconda
We provide an Anaconda environment that satisfies all the dependencies in starred-env.yml.
$ git clone https://gitlab.com/cosmograil/starred.git
$ cd starred
$ conda env create -f starred-env.yml
$ conda activate starred-env
$ pip install .
In case you have an NVIDIA GPU, this should automatically download the right version of JAX as well as cuDNN. Next, you can run the tests to make sure your installation is working correctly.
# While still in the STARRED directory:
$ pytest .
Manually handling the dependencies
If you want to use an existing environment, just omit the Anaconda commands above:
$ git clone https://gitlab.com/cosmograil/starred
$ cd starred
$ pip install .
or if you need to install it for your user only:
$ python setup.py install --user
STARRED runs much faster on GPUs, so make sure you install a version of JAX that is compatible with your version of CUDA and cuDNN. Refer to the installation page of the JAX documentation.
Requirements
STARRED requires the following Python packages:
astropydilljaxjaxlibmatplotlibnumpyscipyoptaxtqdmh5py
Additionnaly, the following package needs to be installed if you want to sample posterior distribution:
emceemclmc
Other optional dependencies are required for specific functionalities:
scikit-imagefor the reconstruction of the narrow PSF from a PSF model.pyregionfor the reading of DS9 region files.
Example Notebooks and Documentation
We provide several notebooks to help you get started.
More example notebooks going in more detail of how the internals work can be found in the notebooks directory:
- Ground-based narrow PSF generation
- Ground-based joint deconvolution
- Another ground-based joint deconvolution
- JWST PSF generation and deconvolution
- DES2038 joint deconvolution
- HST PSF reconstruction
- JWST PSF reconstruction
The mathematical formalism along with further examples are also presented in Millon et al. (2024). All the examples and tests presented in this paper can be reproduced from this repository:
You can also run STARRED from the command line by following
these instructions. STARRED is now fully
integrated into lightcurver,
which helps you producing light curves by preparing your data in the correct format to be analyzed by STARRED and ensure
accurate epoch-to-epoch photometric calibration.
Finally, the full documentation can be found here and a video presentation of STARRED is accessible on Youtube.
STARRED users community
If you want to join the STARRED users community on Slack to ask questions, propose future developments or share your latest results, please send an email to this address to get an invitation link.
Attribution
If you use this code, please cite Michalewicz et al. 2023 and Millon et al. 2024 as indicated in the documentation.
License
STARRED is a free software. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation.
STARRED is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details (LICENSE.txt).
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file starred_astro-1.5.0.tar.gz.
File metadata
- Download URL: starred_astro-1.5.0.tar.gz
- Upload date:
- Size: 131.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
710616e3ff4d8039a90fe43f648f12a0b030d98ae60b8dc3163af4d8795e3b9b
|
|
| MD5 |
ba46ddcd3506639d6beb5790ee20df61
|
|
| BLAKE2b-256 |
ad2c442728ddc3cda691a817130da38dae50f6e91589291078ee373f9a13a1e1
|
File details
Details for the file starred_astro-1.5.0-py3-none-any.whl.
File metadata
- Download URL: starred_astro-1.5.0-py3-none-any.whl
- Upload date:
- Size: 136.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd518359f6f4c9ad7c82884f022ccbc75dff583b2a281e72114015130ee7b114
|
|
| MD5 |
7455b20c4ce416a4178acfb2fb35aaae
|
|
| BLAKE2b-256 |
b99fa7adb50558e1641b65238c5016cead212933fd9b53ae6cc861c0e5d4b1fa
|