s1-denoise 0.0.0.dev0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,147 @@
1
+ Metadata-Version: 2.5
2
+ Name: s1-denoise
3
+ Version: 0.0.0.dev0
4
+ Summary: Noise vector reconstruction for Level 1 Sentinel-1 products
5
+ Project-URL: Homepage, https://github.com/aresys-srl/s1-denoise
6
+ Project-URL: Documentation, https://opensource.aresys.it/s1-denoise/
7
+ Project-URL: Repository, https://github.com/aresys-srl/s1-denoise
8
+ Project-URL: Issues, https://github.com/aresys-srl/s1-denoise/issues
9
+ Project-URL: Changelog, https://opensource.aresys.it/s1-denoise/API/changelog/
10
+ Author-email: "Aresys S.R.L." <info@aresys.it>
11
+ License: MIT License
12
+
13
+ Copyright (C) Aresys S.r.l. <info@aresys.it>
14
+
15
+ Permission is hereby granted, free of charge, to any person obtaining a copy
16
+ of this software and associated documentation files (the "Software"), to deal
17
+ in the Software without restriction, including without limitation the rights
18
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
19
+ copies of the Software, and to permit persons to whom the Software is
20
+ furnished to do so, subject to the following conditions:
21
+
22
+ The above copyright notice and this permission notice shall be included in all
23
+ copies or substantial portions of the Software.
24
+
25
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
28
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31
+ SOFTWARE.
32
+ License-File: LICENSE
33
+ Classifier: Operating System :: OS Independent
34
+ Classifier: Programming Language :: Python :: 3
35
+ Requires-Python: >=3.11
36
+ Requires-Dist: click
37
+ Requires-Dist: colorlog
38
+ Requires-Dist: lxml
39
+ Requires-Dist: matplotlib
40
+ Requires-Dist: numpy
41
+ Requires-Dist: perseo-core
42
+ Requires-Dist: pillow
43
+ Requires-Dist: rasterio
44
+ Requires-Dist: scipy
45
+ Requires-Dist: sentinel1decoder
46
+ Requires-Dist: xmltodict
47
+ Description-Content-Type: text/markdown
48
+
49
+ # Sentinel-1 Level 1 Noise Processor
50
+
51
+ #### Thermal noise vector reconstruction for Sentinel-1 Level 1 products
52
+
53
+ The S1 L1N Processor reconstructs the thermal noise range vectors for Sentinel-1 IW and EW products (both SLC and GRD) and writes them to output XML files that follow the standard Sentinel-1 annotation format. The reconstructed vectors can then be compared against the nominal noise annotations embedded in the SAFE product to assess noise estimation quality.
54
+
55
+ For each processed channel the processor:
56
+
57
+ 1. reads acquisition geometry and calibration data from auxiliary files (PP1, CAL, INS);
58
+ 2. models the thermal noise using range spread loss, elevation antenna pattern, and calibration LUT;
59
+ 3. optionally refines the noise power correction using an associated Level 0 Noise (L0N) product;
60
+ 4. discards noise pulses whose power deviates from the expected noise level in AUX_INS by more than −3/+1 dB;
61
+ 5. for GRD products, handles sub-swath separation, per-subswath noise reconstruction and cross-subswath merging;
62
+ 6. writes the output noise XML files and, if nominal noise annotations are present in the SAFE product, reports the Mean Absolute Error (MAE) and maximum absolute error in dB.
63
+
64
+ 📖 **Documentation:** <https://opensource.aresys.it/s1-denoise/>
65
+
66
+ ---
67
+
68
+ ## Installation
69
+
70
+ **Requirements:** Python ≥ 3.11, pip.
71
+
72
+ Install the package from PyPI into a virtual environment of your choice:
73
+
74
+ ```bash
75
+ pip install s1-denoise
76
+ ```
77
+
78
+ Alternatively, install the wheel attached to a [GitHub release](https://github.com/aresys-srl/s1-denoise/releases):
79
+
80
+ ```bash
81
+ pip install s1_denoise-<version>-py3-none-any.whl
82
+ ```
83
+
84
+ Both options install the `denoise` command into the active Python environment.
85
+
86
+ ---
87
+
88
+ ## Usage
89
+
90
+ The processor is driven by a **Job Order XML file** that specifies input products, auxiliary files, and the output path.
91
+
92
+ ```bash
93
+ denoise "/path/to/job/order.xml"
94
+ ```
95
+
96
+ The processor reads each L1 SAFE product listed in the Job Order, generates the noise profiles, and writes the output XML files to the configured output directory. If nominal noise annotations are found inside the SAFE product, the MAE against them is logged automatically.
97
+
98
+ For all available options:
99
+
100
+ ```bash
101
+ denoise --help
102
+ ```
103
+
104
+ To print the installed version:
105
+
106
+ ```bash
107
+ denoise --version
108
+ ```
109
+
110
+ ### Job Order structure
111
+
112
+ The Job Order is an XML file that configures:
113
+
114
+ | Field | Description |
115
+ |---|---|
116
+ | Input L1 SAFE products | One or more Sentinel-1 SAFE folders to process |
117
+ | Input L0N products (optional) | Associated Level 0 Noise products for refined power correction |
118
+ | Auxiliary files | AUX_PP1, AUX_CAL, AUX_INS product paths |
119
+ | Output path | Directory where output XML files are written |
120
+ | Log level | Verbosity of the processor log |
121
+
122
+ A Job Order template is provided in [`templates/JobOrder.xml`](templates/JobOrder.xml). See the [Job Order documentation](https://opensource.aresys.it/s1-denoise/user-guide/job-order/) for the supported file types.
123
+
124
+ ---
125
+
126
+ ## Visualisation
127
+
128
+ To visually compare the original noise annotation with the reconstructed one:
129
+
130
+ ```bash
131
+ ./scripts/compare_noise.py <noise_xml_filepath> <denoise_xml_filepath> --colorbar 0.01
132
+ ```
133
+
134
+ The `--colorbar` argument sets the symmetric boundary (in dB) for the 2D difference plot colorbar.
135
+
136
+ ---
137
+
138
+ ## Documentation
139
+
140
+ The documentation is built with [Zensical](https://zensical.org/). To build it locally:
141
+
142
+ ```bash
143
+ pip install zensical mkdocstrings-python
144
+ python tools/build_doc.py
145
+ ```
146
+
147
+ The site is generated in the `site/` folder. Use `zensical serve` for a live preview while editing the pages in `docs/`.
@@ -0,0 +1,21 @@
1
+ s1_denoise/__init__.py,sha256=XBpWIcCzYk1sHaf-mz4NLKDg677cZmVVJqAiEilpQwM,570
2
+ s1_denoise/__main__.py,sha256=K4foei3lxXaiBIp6aS1CaQHnwIE0xKVyQ5ROwxYHUn4,1077
3
+ s1_denoise/auxiliary_files.py,sha256=691a_3V7CsjMasOs0MESJfBTQmL65gIPtH2WXj_mmIc,16338
4
+ s1_denoise/baq_decoder.py,sha256=9zbitiKkJVCG-fZW_vdXnA3SumVgCX1FzwBVZfAj0lo,6373
5
+ s1_denoise/cli.py,sha256=uOiqZ8c5pk3Mv4ZEoaS5qL7HsbhNRqgXSrMGBX63S-Y,4566
6
+ s1_denoise/error_calculation.py,sha256=4sMrh4UxX_sFDck-A1QFkxQqbZs5AhSmtHcVoP8eQ-s,8568
7
+ s1_denoise/jo_parser.py,sha256=mVw01nTH13w0zHxmIleIAb43FkfFBiMp4lv8j0dkq7k,11894
8
+ s1_denoise/l0_noise_power_calculation.py,sha256=B-WahMNqTqsadCJIRCpujOtxi5IZGEAxEyj_QJ3afAM,14604
9
+ s1_denoise/logger.py,sha256=1YLMCdDQ__CEJibkIdUgtTE4LJsrZJu8kHVaA_YxLxc,2801
10
+ s1_denoise/noise_norm_factor.py,sha256=z7UMxIapLyvW28fgSOZptVfuo91v1__H0iqNvAoQRnk,10785
11
+ s1_denoise/noise_profiles.py,sha256=UEBqNLhNpnEE__aXbMfycM1gyYqn16LpH4rYUH1JnT4,12171
12
+ s1_denoise/output.py,sha256=AgF4IownRfjnMQTBlncEEQ1a-wVRjRlFBQEddF4y3TE,20541
13
+ s1_denoise/s1safe.py,sha256=QyHRbubkQ_pmdvrcG-Asp8lriuF144aF79eiJ3pJY58,47569
14
+ s1_denoise/thermal_noise.py,sha256=iqrRONWLrTsUzgaCJqr-mAxba5eygR0T5rlyjBq-2ZA,30156
15
+ s1_denoise/utils.py,sha256=HcgdFoAE0qkNqfGnmHewYg0dj_Q1cB6yQjJNpXO51CU,9416
16
+ s1_denoise/xml_reader.py,sha256=p0OqVZHv_CluLIFnJhTOTx2L3QAXsocFWF2nby6g8D0,20566
17
+ s1_denoise-0.0.0.dev0.dist-info/METADATA,sha256=98RQ6PLCEiVMshMBoSKgssreNvDxfwB6RYCS80hSnl0,5788
18
+ s1_denoise-0.0.0.dev0.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
19
+ s1_denoise-0.0.0.dev0.dist-info/entry_points.txt,sha256=9ZdqTYz5mRFdKxGEKkKNt8QwUnCxY4cP2dWbrv7a954,53
20
+ s1_denoise-0.0.0.dev0.dist-info/licenses/LICENSE,sha256=a3_V9QnJUAnm2Uravyt09u1geH9O1SZTGI9NmGLEsoU,1081
21
+ s1_denoise-0.0.0.dev0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.33.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ denoise = s1_denoise.__main__:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (C) Aresys S.r.l. <info@aresys.it>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.