[](https://github.com/MALES-project/SpeckleCn2Profiler/actions/workflows/test.yaml)

[](https://males-project.github.io/SpeckleCn2Profiler/)
[](https://pypi.org/project/speckcn2/)
[](https://pypi.org/project/speckcn2/)
[](https://fairsoftwarechecklist.net/v0.2?f=31&a=30110&i=21202&r=132)
[](https://doi.org/10.5281/zenodo.11447920)
[](https://research-software-directory.org/software/speckcn2)


<!---


-->
# SpeckleCn2Profiler:
### Improving Satellite Communications with SCIDAR and Machine Learning

## Overview
Optical satellite communications is a growing research field with bright commercial perspectives. One of the challenges for optical links through the atmosphere is turbulence, which is also apparent by the twinkling of stars. The reduction of the quality can be calculated, but it needs the turbulence strength over the path the optical beam is running. Estimation of the turbulence strength is done at astronomic sites, but not at rural or urban sites. To be able to do this, a simple instrument is required. We want to propose to use a single star Scintillation Detection and Ranging (SCIDAR), which is an instrument that can estimate the turbulence strength, based on the observation of a single star. In this setting, reliable signal processing of the received images of the star is most challenging. We propose to solve this by Machine Learning.
## Repository Contents
This repository contains the workflow to implement and train machine learning models for turbulence strength estimation from SCIDAR data. Extensive **[Documentation](https://males-project.github.io/SpeckleCn2Profiler/)** is available to explain the methodology, algorithms used, and guidelines for using the code.
## Getting Started
To get started with the project, follow these steps:
- **Prerequisites:**
In order to correctly install `speckcn2` you need `python3.9` or higher. If you don't have it installed, you can download it from the [official website](https://www.python.org/downloads/). You will also need the header files that are required to compile Python extensions and are contained in `python3-dev`. On Ubuntu, you can install them with:
```bash
apt-get install python-dev
```
- **Install the package:**
```bash
python -m pip install speckcn2
```
- **Or: Clone the repository:**
```bash
git clone https://github.com/MALES-project/SpeckleCn2Profiler.git
cd SpeckleCn2Profiler
git submodule init
git submodule update
pip install .
```
## Usage
To use the package, you run the commands such as:
```console
python <mycode.py> <path_to_config.yml>
```
where `<mycode.py>` is the name of the script that trains/uses the `speckcn2` model and `<path_to_config.yml>` is the path to the configuration file.
[Here](https://males-project.github.io/SpeckleCn2Profiler/example) you can find a typical example run and an explanation of all the main configuration parameter. In the [example submodule](https://github.com/MALES-project/examples_speckcn2/) you can find multiple examples and multiple configuration to take inspiration from.
## What can we predict?
A machine learning model trained using `speckcn2` can predict:
##### 1. Instantaneous turbulence strength

Given a speckle pattern, the model can predict the instantaneous turbulence strength and also provide an uncertainty estimate if more patterns are available.
##### 2. Parameters estimation
The model can also estimate important parameters that are useful for the analysis of the speckle pattern. At the moment we support:
* Fried parameter `r0`
* Isoplanatic angle `θ0`
* Rytov Index `σ`
We also provide histograms of the estimated parameters and the error of the estimation.
## Contribution Guidelines
We welcome contributions to improve and expand the capabilities of this project. If you have ideas, bug fixes, or enhancements, please submit a pull request.
Check out our [Contributing Guidelines](CONTRIBUTING.md#Getting-started-with-development) to get started with development.
## Generative-AI Disclaimer
Parts of the code have been generated and/or refined using GitHub Copilot. All AI-output has been verified for correctness, accuracy and completeness, revised where needed, and approved by the author(s).
## How to cite
Please consider citing this software that is published in Zenodo under the DOI [10.5281/zenodo.11447920](https://zenodo.org/records/11447920).
## License
This project is licensed under the Apache 2.0 License - see the [LICENSE](LICENSE) file for details.
Raw data
{
"_id": null,
"home_page": null,
"name": "speckcn2",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "python, machine learning, equivariant cnn, optical satelites, turbulence, laser communication",
"author": null,
"author_email": "Simone Ciarella <s.ciarella@esciencecenter.nl>",
"download_url": "https://files.pythonhosted.org/packages/51/f1/63f682e89ac1fec4194d7526b56641349418a82cb5edd48c96085cd2f19e/speckcn2-1.0.1.tar.gz",
"platform": null,
"description": "[](https://github.com/MALES-project/SpeckleCn2Profiler/actions/workflows/test.yaml)\n\n[](https://males-project.github.io/SpeckleCn2Profiler/)\n[](https://pypi.org/project/speckcn2/)\n[](https://pypi.org/project/speckcn2/)\n[](https://fairsoftwarechecklist.net/v0.2?f=31&a=30110&i=21202&r=132)\n[](https://doi.org/10.5281/zenodo.11447920)\n[](https://research-software-directory.org/software/speckcn2)\n\n\n\n\n<!---\n\n\n-->\n\n# SpeckleCn2Profiler:\n### Improving Satellite Communications with SCIDAR and Machine Learning\n\n\n\n## Overview\n\nOptical satellite communications is a growing research field with bright commercial perspectives. One of the challenges for optical links through the atmosphere is turbulence, which is also apparent by the twinkling of stars. The reduction of the quality can be calculated, but it needs the turbulence strength over the path the optical beam is running. Estimation of the turbulence strength is done at astronomic sites, but not at rural or urban sites. To be able to do this, a simple instrument is required. We want to propose to use a single star Scintillation Detection and Ranging (SCIDAR), which is an instrument that can estimate the turbulence strength, based on the observation of a single star. In this setting, reliable signal processing of the received images of the star is most challenging. We propose to solve this by Machine Learning.\n\n## Repository Contents\n\nThis repository contains the workflow to implement and train machine learning models for turbulence strength estimation from SCIDAR data. Extensive **[Documentation](https://males-project.github.io/SpeckleCn2Profiler/)** is available to explain the methodology, algorithms used, and guidelines for using the code.\n\n## Getting Started\n\nTo get started with the project, follow these steps:\n\n- **Prerequisites:**\n In order to correctly install `speckcn2` you need `python3.9` or higher. If you don't have it installed, you can download it from the [official website](https://www.python.org/downloads/). You will also need the header files that are required to compile Python extensions and are contained in `python3-dev`. On Ubuntu, you can install them with:\n ```bash\n apt-get install python-dev\n ```\n\n- **Install the package:**\n ```bash\n python -m pip install speckcn2\n ```\n\n- **Or: Clone the repository:**\n ```bash\n git clone https://github.com/MALES-project/SpeckleCn2Profiler.git\n cd SpeckleCn2Profiler\n git submodule init\n git submodule update\n pip install .\n ```\n\n## Usage\n\nTo use the package, you run the commands such as:\n\n```console\npython <mycode.py> <path_to_config.yml>\n```\n\nwhere `<mycode.py>` is the name of the script that trains/uses the `speckcn2` model and `<path_to_config.yml>` is the path to the configuration file.\n\n[Here](https://males-project.github.io/SpeckleCn2Profiler/example) you can find a typical example run and an explanation of all the main configuration parameter. In the [example submodule](https://github.com/MALES-project/examples_speckcn2/) you can find multiple examples and multiple configuration to take inspiration from.\n\n## What can we predict?\n\nA machine learning model trained using `speckcn2` can predict:\n\n##### 1. Instantaneous turbulence strength\n\nGiven a speckle pattern, the model can predict the instantaneous turbulence strength and also provide an uncertainty estimate if more patterns are available.\n\n##### 2. Parameters estimation\nThe model can also estimate important parameters that are useful for the analysis of the speckle pattern. At the moment we support:\n* Fried parameter `r0`\n* Isoplanatic angle `\u03b80`\n* Rytov Index `\u03c3`\n\nWe also provide histograms of the estimated parameters and the error of the estimation.\n\n## Contribution Guidelines\n\nWe welcome contributions to improve and expand the capabilities of this project. If you have ideas, bug fixes, or enhancements, please submit a pull request.\nCheck out our [Contributing Guidelines](CONTRIBUTING.md#Getting-started-with-development) to get started with development.\n\n## Generative-AI Disclaimer\n\nParts of the code have been generated and/or refined using GitHub Copilot. All AI-output has been verified for correctness, accuracy and completeness, revised where needed, and approved by the author(s).\n\n## How to cite\n\nPlease consider citing this software that is published in Zenodo under the DOI [10.5281/zenodo.11447920](https://zenodo.org/records/11447920).\n\n## License\n\nThis project is licensed under the Apache 2.0 License - see the [LICENSE](LICENSE) file for details.\n",
"bugtrack_url": null,
"license": "Apache 2.0 License",
"summary": "Estimate Cn2 from Speckle patterns using machine learning",
"version": "1.0.1",
"project_urls": {
"changelog": "https://github.com/MALES-project/SpeckleCn2Profiler/releases",
"documentation": "https://speckcn2.readthedocs.io",
"homepage": "https://github.com/MALES-project/SpeckleCn2Profiler",
"issues": "https://github.com/MALES-project/SpeckleCn2Profiler/issues"
},
"split_keywords": [
"python",
" machine learning",
" equivariant cnn",
" optical satelites",
" turbulence",
" laser communication"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "89d6c946b15c52fc95e2c95c80f31396a0e81fcb08e68c4a5bc725df31619d13",
"md5": "7dda8071e8ea2345468f9db2e5a26783",
"sha256": "cbece7d07763f169afd0aa37740b581f024def0cec12d4f1152d56bda5b4a6ab"
},
"downloads": -1,
"filename": "speckcn2-1.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7dda8071e8ea2345468f9db2e5a26783",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 45335,
"upload_time": "2024-12-03T10:55:49",
"upload_time_iso_8601": "2024-12-03T10:55:49.479673Z",
"url": "https://files.pythonhosted.org/packages/89/d6/c946b15c52fc95e2c95c80f31396a0e81fcb08e68c4a5bc725df31619d13/speckcn2-1.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "51f163f682e89ac1fec4194d7526b56641349418a82cb5edd48c96085cd2f19e",
"md5": "211312f3bb9ec6e413d540913a7e2996",
"sha256": "3c278a75eb94ee0ca1837d3e819f8a7146397f3714d52882fff45574df468459"
},
"downloads": -1,
"filename": "speckcn2-1.0.1.tar.gz",
"has_sig": false,
"md5_digest": "211312f3bb9ec6e413d540913a7e2996",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 39290,
"upload_time": "2024-12-03T10:55:51",
"upload_time_iso_8601": "2024-12-03T10:55:51.435198Z",
"url": "https://files.pythonhosted.org/packages/51/f1/63f682e89ac1fec4194d7526b56641349418a82cb5edd48c96085cd2f19e/speckcn2-1.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-03 10:55:51",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "MALES-project",
"github_project": "SpeckleCn2Profiler",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "matplotlib",
"specs": [
[
">=",
"3.6.0"
]
]
},
{
"name": "numpy",
"specs": []
},
{
"name": "scipy",
"specs": [
[
">=",
"1.9.3"
]
]
},
{
"name": "torch",
"specs": []
},
{
"name": "torchvision",
"specs": []
},
{
"name": "PyYAML",
"specs": []
},
{
"name": "cython",
"specs": []
},
{
"name": "lie_learn_escience",
"specs": []
},
{
"name": "escnn_escience",
"specs": []
},
{
"name": "h5py",
"specs": []
}
],
"lcname": "speckcn2"
}