pysarflow
An open-source python library for SAR data processing
Description
Despite the growing usage of SAR data, the processing workflow remains complex and still relies on specialized heavy desktop tools creating huge barriers for students and non-experts. There is a growing need for a modular, open-source and user-friendly workflow that can take Level-1 SAR products and guide users through essential steps ideally ending in products that are usable and compatible with geospatial pipelines.
The project uses the esa-snappy library, a wrapper around the SNAP Java engine, which is the same core engine used by the SNAP Desktop application. Pysarflow package provides functionality similar to what is available in SNAP Desktop, but offers a Python-based interface to access and use them.
Project Structure
pysarflow/
├── __init__.py
├── grd.py
├── slc.py
├── utils.py
Installation
To use this package, the esa-snappy library (the Python wrapper for ESA SNAP) is required before installation of the pysarflow package.
The follwoing are the steps to install exsa-snappy :
1. Create and activate a conda environment
conda create -n snap_env python=3.9
conda activate snap_env
2. Install Package
pip install pysarflow
3. Install ESA SNAP Desktop
Download and install ESA SNAP from the SNAP website.
During installation, enable the option to configure Python for SNAP and specify your Python executable path:
- Use the Python from your conda environment, e.g. C:\Users\YourUsername.conda\envs\snap_env\python.exe
- If that does not work, try the base environment Python: for example (C:\ProgramData\Anaconda3\python.exe)
4. Run the snappy-conf script to configure SNAP
If you use the base environemnt python or you already have SNAP installed then,
Open a command prompt, navigate to SNAP’s bin folder, and run:
cd "C:\Program Files\esa-snap\bin"
snappy-conf "C:\Users\YourUsername\.conda\envs\snap_env\python.exe"
You should see: Configuration finished successfully!
4. Verify esa-snappy works
Activate your environment and open Python:
conda activate snap_env
python
in the Python environment, try importing:
import esa_snappy
from esa_snappy import ProductIO
If no errors occur, your setup is complete!
Documentation
For detailed documentation and examples, see the documentation website.
Examples
Check out the 'examples' directory for more examples:
Contributing
Contributions are welcome! Follow dev setup guide & Please feel free to submit a Pull Request.
Acknowledgments
- This library is built as a part of python software development course at Paris Lodron University Salzburg
- Built on top of powerful open-source libraries like numpy, rasterio
Contributors
Metadata
Release files for pysarflow 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pysarflow-0.1.2.tar.gz | 25.1 kB | Without provenance | Details for pysarflow-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pysarflow-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for pysarflow-0.1.2-py3-none-any.whl |
Total release size: 49.7 kB
Release files / pysarflow-0.1.2.tar.gz
| Download URL | pysarflow-0.1.2.tar.gz |
|---|---|
| Size | 25.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
08fd8d836e0950932034434d3ea79ee51497ae1c8c69a2f02f9865bdff99a1a8
|
|
BLAKE2b-256 checksum How to use checksums |
cc3b62061e816e42fb16a67c4d78d0cff98c4848b216ce6ab1f096d2ecf34028
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.11
|
Release files / pysarflow-0.1.2-py3-none-any.whl
| Download URL | pysarflow-0.1.2-py3-none-any.whl |
|---|---|
| Size | 24.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7397192e11ed05d339940c24bfebdfdc0479f8ec689982df97a139040c7fbc0c
|
|
BLAKE2b-256 checksum How to use checksums |
2c59b865281e0321e3e3528c360481f738c4e1ee86544f8585e6f95a7766f9c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.11
|
Security for pysarflow 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.