sarpyx 0.1.5__tar.gz → 0.1.6__tar.gz

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.
Files changed (101) hide show
  1. sarpyx-0.1.6/LICENSE +201 -0
  2. {sarpyx-0.1.5 → sarpyx-0.1.6}/PKG-INFO +9 -5
  3. {sarpyx-0.1.5 → sarpyx-0.1.6}/README.md +14 -15
  4. {sarpyx-0.1.5 → sarpyx-0.1.6}/docs/examples/advanced/batch_processing.py +1 -1
  5. {sarpyx-0.1.5 → sarpyx-0.1.6}/docs/examples/advanced/custom_processing_chains.py +1 -1
  6. {sarpyx-0.1.5 → sarpyx-0.1.6}/docs/examples/advanced/performance_optimization.py +1 -1
  7. {sarpyx-0.1.5 → sarpyx-0.1.6}/docs/examples/basic/snap_integration.py +1 -1
  8. {sarpyx-0.1.5 → sarpyx-0.1.6}/docs/examples/intermediate/quality_assessment.py +1 -1
  9. {sarpyx-0.1.5/sarpyx/processor → sarpyx-0.1.6/outputs/baseline/20260205-234828}/__init__.py +1 -1
  10. {sarpyx-0.1.5/sarpyx/cli → sarpyx-0.1.6/outputs/baseline/20260205-234828}/main.py +106 -7
  11. sarpyx-0.1.6/outputs/final/20260205-234851/__init__.py +33 -0
  12. sarpyx-0.1.6/outputs/final/20260205-234851/main.py +493 -0
  13. {sarpyx-0.1.5 → sarpyx-0.1.6}/pyproject.toml +8 -6
  14. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/__init__.py +2 -2
  15. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/algorithms/__init__.py +2 -2
  16. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/cli/__init__.py +1 -1
  17. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/cli/focus.py +3 -5
  18. sarpyx-0.1.6/sarpyx/cli/main.py +493 -0
  19. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/cli/shipdet.py +1 -1
  20. sarpyx-0.1.6/sarpyx/cli/worldsar.py +549 -0
  21. sarpyx-0.1.6/sarpyx/processor/__init__.py +33 -0
  22. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/processor/core/decode.py +43 -8
  23. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/processor/core/focus.py +104 -57
  24. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/science/__init__.py +1 -1
  25. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/sla/__init__.py +8 -0
  26. sarpyx-0.1.6/sarpyx/sla/metrics.py +101 -0
  27. {sarpyx-0.1.5/sarpyx/snap → sarpyx-0.1.6/sarpyx/snapflow}/__init__.py +1 -1
  28. sarpyx-0.1.6/sarpyx/snapflow/engine.py +6165 -0
  29. {sarpyx-0.1.5/sarpyx/snap → sarpyx-0.1.6/sarpyx/snapflow}/op.py +0 -1
  30. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/utils/__init__.py +1 -1
  31. sarpyx-0.1.6/sarpyx/utils/geos.py +652 -0
  32. sarpyx-0.1.6/sarpyx/utils/grid.py +285 -0
  33. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/utils/io.py +77 -9
  34. sarpyx-0.1.6/sarpyx/utils/meta.py +55 -0
  35. sarpyx-0.1.6/sarpyx/utils/nisar_utils.py +652 -0
  36. sarpyx-0.1.6/sarpyx/utils/rfigen.py +108 -0
  37. sarpyx-0.1.6/sarpyx/utils/wkt_utils.py +109 -0
  38. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/utils/zarr_utils.py +55 -37
  39. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx.egg-info/PKG-INFO +9 -5
  40. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx.egg-info/SOURCES.txt +18 -9
  41. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx.egg-info/requires.txt +5 -3
  42. sarpyx-0.1.6/sarpyx.egg-info/top_level.txt +12 -0
  43. sarpyx-0.1.6/tests/test_zarr_compat.py +35 -0
  44. sarpyx-0.1.5/sarpyx/processor/core/decode_v0.py +0 -0
  45. sarpyx-0.1.5/sarpyx/processor/core/decode_v1.py +0 -849
  46. sarpyx-0.1.5/sarpyx/processor/core/focus_old.py +0 -1550
  47. sarpyx-0.1.5/sarpyx/processor/core/focus_v1.py +0 -1566
  48. sarpyx-0.1.5/sarpyx/processor/core/focus_v2.py +0 -1625
  49. sarpyx-0.1.5/sarpyx/snap/engine.py +0 -633
  50. sarpyx-0.1.5/sarpyx.egg-info/top_level.txt +0 -5
  51. {sarpyx-0.1.5 → sarpyx-0.1.6}/docs/examples/advanced/insar_time_series.py +0 -0
  52. {sarpyx-0.1.5 → sarpyx-0.1.6}/docs/examples/basic/data_io_examples.py +0 -0
  53. {sarpyx-0.1.5 → sarpyx-0.1.6}/docs/examples/basic/visualization_gallery.py +0 -0
  54. {sarpyx-0.1.5 → sarpyx-0.1.6}/docs/examples/basic_sublook_analysis.py +0 -0
  55. {sarpyx-0.1.5 → sarpyx-0.1.6}/docs/examples/intermediate/polarimetric_analysis.py +0 -0
  56. {sarpyx-0.1.5 → sarpyx-0.1.6}/docs/examples/intermediate/ship_detection_cfar.py +0 -0
  57. {sarpyx-0.1.5 → sarpyx-0.1.6}/docs/examples/intermediate/vegetation_monitoring.py +0 -0
  58. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/algorithms/AdaptiveThresholding.py +0 -0
  59. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/cli/decode.py +0 -0
  60. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/cli/unzip.py +0 -0
  61. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/cli/upload.py +0 -0
  62. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/cli/utils.py +0 -0
  63. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/processor/algorithms/__init__.py +0 -0
  64. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/processor/algorithms/backprojection.py +0 -0
  65. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/processor/algorithms/constants.py +0 -0
  66. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/processor/algorithms/mbautofocus.py +0 -0
  67. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/processor/algorithms/rda.py +0 -0
  68. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/processor/core/__init__.py +0 -0
  69. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/processor/core/aux.py +0 -0
  70. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/processor/core/code2physical.py +0 -0
  71. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/processor/core/constants.py +0 -0
  72. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/processor/core/signal.py +0 -0
  73. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/processor/core/spectrum.py +0 -0
  74. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/processor/core/subaperture.py +0 -0
  75. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/processor/core/transforms.py +0 -0
  76. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/processor/data/__init__.py +0 -0
  77. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/processor/data/formatters.py +0 -0
  78. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/processor/data/readers.py +0 -0
  79. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/processor/data/writers.py +0 -0
  80. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/processor/utils/__init__.py +0 -0
  81. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/processor/utils/mem.py +0 -0
  82. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/processor/utils/metrics.py +0 -0
  83. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/processor/utils/summary.py +0 -0
  84. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/processor/utils/unzip.py +0 -0
  85. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/processor/utils/viz.py +0 -0
  86. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/science/indices.py +0 -0
  87. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/sla/core/__init__.py +0 -0
  88. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/sla/core/meta.py +0 -0
  89. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/sla/core/spectrum.py +0 -0
  90. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/sla/utilis.py +0 -0
  91. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/utils/complex_losses.py +0 -0
  92. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/utils/executor.py +0 -0
  93. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/utils/hf.py +0 -0
  94. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/utils/losses.py +0 -0
  95. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/utils/metrics.py +0 -0
  96. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/utils/sar_loss.py +0 -0
  97. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/utils/up.py +0 -0
  98. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx/utils/viz.py +0 -0
  99. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx.egg-info/dependency_links.txt +0 -0
  100. {sarpyx-0.1.5 → sarpyx-0.1.6}/sarpyx.egg-info/entry_points.txt +0 -0
  101. {sarpyx-0.1.5 → sarpyx-0.1.6}/setup.cfg +0 -0
sarpyx-0.1.6/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [2025] [ROBERTO DEL PRETE]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sarpyx
3
- Version: 0.1.5
3
+ Version: 0.1.6
4
4
  Summary: A swissknife for SAR processing.
5
5
  Author-email: Roberto Del Prete <roberto.delprete@esa.int>
6
- License: MIT
6
+ License: Apache-2.0
7
7
  Requires-Python: <3.13,>=3.11
8
+ License-File: LICENSE
8
9
  Requires-Dist: matplotlib
9
10
  Requires-Dist: scipy
10
- Requires-Dist: s1isp
11
11
  Requires-Dist: geopandas>=1.1.1
12
12
  Requires-Dist: shapely
13
13
  Requires-Dist: numpy
@@ -15,9 +15,9 @@ Requires-Dist: openpyxl
15
15
  Requires-Dist: h5py
16
16
  Requires-Dist: numba
17
17
  Requires-Dist: jupyter
18
- Requires-Dist: phidown>=0.1.18
18
+ Requires-Dist: phidown>=0.1.24
19
19
  Requires-Dist: rasterio>=1.4.3
20
- Requires-Dist: zarr>=3.0.8
20
+ Requires-Dist: zarr>=3.0.0
21
21
  Requires-Dist: joblib>=1.5.1
22
22
  Requires-Dist: dask>=2025.5.1
23
23
  Requires-Dist: lxml>=5.4.0
@@ -36,3 +36,7 @@ Requires-Dist: tensorboardX>=2.6.4
36
36
  Requires-Dist: wandb>=0.21.3
37
37
  Requires-Dist: scikit-learn>=1.7.2
38
38
  Requires-Dist: geographiclib>=2.1
39
+ Requires-Dist: dotenv>=0.9.9
40
+ Requires-Dist: pyarrow>=23.0.0
41
+ Requires-Dist: fastparquet>=2025.12.0
42
+ Dynamic: license-file
@@ -1,17 +1,16 @@
1
- ![GitHub stars](https://img.shields.io/github/stars/ESA-PhiLab/phidown.svg)
2
- ![GitHub forks](https://img.shields.io/github/forks/ESA-PhiLab/phidown.svg)
3
- ![GitHub issues](https://img.shields.io/github/issues/ESA-PhiLab/phidown.svg)
4
- ![GitHub pull requests](https://img.shields.io/github/issues-pr/ESA-PhiLab/phidown.svg)
5
- ![GitHub last commit](https://img.shields.io/github/last-commit/ESA-PhiLab/phidown.svg)
6
- ![GitHub code size](https://img.shields.io/github/languages/code-size/ESA-PhiLab/phidown.svg)
7
- ![GitHub top language](https://img.shields.io/github/languages/top/ESA-PhiLab/phidown.svg)
8
- ![GitHub repo size](https://img.shields.io/github/repo-size/ESA-PhiLab/phidown.svg)
9
- ![GitHub contributors](https://img.shields.io/github/contributors/ESA-PhiLab/phidown.svg)
10
- [![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
11
- [![Python 3.9+](https://img.shields.io/badge/python-3.9+-blue.svg)](https://www.python.org/downloads/)
12
- [![Documentation Status](https://img.shields.io/badge/docs-latest-green.svg)](https://github.com/ESA-PhiLab/phidown/wiki)
1
+ ![GitHub stars](https://img.shields.io/github/stars/sirbastiano/srp.svg)
2
+ ![GitHub forks](https://img.shields.io/github/forks/sirbastiano/srp.svg)
3
+ ![GitHub issues](https://img.shields.io/github/issues/sirbastiano/srp.svg)
4
+ ![GitHub pull requests](https://img.shields.io/github/issues-pr/sirbastiano/srp.svg)
5
+ ![GitHub last commit](https://img.shields.io/github/last-commit/sirbastiano/srp.svg)
6
+ ![GitHub code size](https://img.shields.io/github/languages/code-size/sirbastiano/srp.svg)
7
+ ![GitHub top language](https://img.shields.io/github/languages/top/sirbastiano/srp.svg)
8
+ ![GitHub repo size](https://img.shields.io/github/repo-size/sirbastiano/srp.svg)
9
+ ![GitHub contributors](https://img.shields.io/github/contributors/sirbastiano/srp.svg)
10
+ [![License: Apache 2.0](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)
11
+ [![Python 3.11+](https://img.shields.io/badge/python-3.11+-blue.svg)](https://www.python.org/downloads/)
13
12
  [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://makeapullrequest.com)
14
- [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.placeholder.svg)](https://doi.org/10.5281/zenodo.placeholder)
13
+
15
14
 
16
15
 
17
16
  <p align="center">
@@ -51,7 +50,7 @@
51
50
 
52
51
  2. Clone the repository:
53
52
  ```bash
54
- git clone https://github.com/ESA-PhiLab/sarpyx.git
53
+ git clone https://github.com/sirbastiano/sarpyx.git
55
54
  cd sarpyx
56
55
  ```
57
56
 
@@ -69,4 +68,4 @@
69
68
 
70
69
  Coming soon: pip install sarpyx
71
70
 
72
- ---
71
+ ---
@@ -51,7 +51,7 @@ from sarpyx.sla import SLAProcessor
51
51
  from sarpyx.utils import io as sarpyx_io
52
52
  from sarpyx.utils import viz as sarpyx_viz
53
53
  from sarpyx.science import indices
54
- from sarpyx.snap import engine as snap_engine
54
+ from sarpyx.snapflow import engine as snap_engine
55
55
 
56
56
  # Configure logging
57
57
  logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
@@ -42,7 +42,7 @@ from sarpyx.sla import SLAProcessor
42
42
  from sarpyx.utils import io as sarpyx_io
43
43
  from sarpyx.utils import viz as sarpyx_viz
44
44
  from sarpyx.science import indices
45
- from sarpyx.snap import engine as snap_engine
45
+ from sarpyx.snapflow import engine as snap_engine
46
46
 
47
47
  # Configure logging
48
48
  logging.basicConfig(level=logging.INFO)
@@ -50,7 +50,7 @@ from sarpyx.sla import SLAProcessor
50
50
  from sarpyx.utils import io as sarpyx_io
51
51
  from sarpyx.utils import viz as sarpyx_viz
52
52
  from sarpyx.science import indices
53
- from sarpyx.snap import engine as snap_engine
53
+ from sarpyx.snapflow import engine as snap_engine
54
54
 
55
55
  # Optional GPU acceleration imports
56
56
  try:
@@ -16,7 +16,7 @@ import matplotlib.pyplot as plt
16
16
  from pathlib import Path
17
17
 
18
18
  try:
19
- from sarpyx.snap import GPT, SNAPProcessor
19
+ from sarpyx.snapflow import GPT, SNAPProcessor
20
20
  from sarpyx.utils import visualization
21
21
  except ImportError as e:
22
22
  print(f"Error importing SARPYX: {e}")
@@ -34,7 +34,7 @@ from sarpyx.sla import SLAProcessor
34
34
  from sarpyx.utils import io as sarpyx_io
35
35
  from sarpyx.utils import viz as sarpyx_viz
36
36
  from sarpyx.science import indices
37
- from sarpyx.snap import engine as snap_engine
37
+ from sarpyx.snapflow import engine as snap_engine
38
38
 
39
39
  # Configure logging
40
40
  logging.basicConfig(level=logging.INFO)
@@ -30,4 +30,4 @@ __all__ = [
30
30
  'utils',
31
31
  ]
32
32
 
33
- __version__ = "0.2.0"
33
+ __version__ = "0.1.5"
@@ -9,12 +9,6 @@ import argparse
9
9
  import sys
10
10
  from typing import List
11
11
 
12
- from .shipdet import main as shipdet_main
13
- from .decode import main as decode_main
14
- from .focus import main as focus_main
15
- from .unzip import main as unzip_main
16
- from .upload import main as upload_main
17
-
18
12
 
19
13
  def create_main_parser() -> argparse.ArgumentParser:
20
14
  """
@@ -34,6 +28,7 @@ Available commands:
34
28
  shipdet Ship detection using SNAP GPT engine
35
29
  unzip Extract SAR data from zip archives
36
30
  upload Upload data to Hugging Face Hub
31
+ worldsar Process SAR products with SNAP GPT pipelines and tiling
37
32
 
38
33
  Examples:
39
34
  sarpyx decode --input /path/to/file.dat --output /path/to/output
@@ -41,6 +36,9 @@ Examples:
41
36
  sarpyx shipdet --product-path /path/to/S1A_*.SAFE --outdir /path/to/output
42
37
  sarpyx unzip --input /path/to/file.zip --output /path/to/output
43
38
  sarpyx upload --folder /path/to/folder --repo username/dataset-name
39
+ sarpyx worldsar --input /path/to/product --output /path/to/output \\
40
+ --cuts-outdir /path/to/tiles --product-wkt "POLYGON ((...))" \\
41
+ --prod-mode S1TOPS
44
42
 
45
43
  For command-specific help:
46
44
  sarpyx <command> --help
@@ -50,7 +48,7 @@ For command-specific help:
50
48
  parser.add_argument(
51
49
  '--version',
52
50
  action='version',
53
- version='sarpyx-cli 0.1.0'
51
+ version='sarpyx-cli 0.1.5'
54
52
  )
55
53
 
56
54
  # Create subparsers for different commands
@@ -99,6 +97,14 @@ For command-specific help:
99
97
  description='Upload processed SAR data to Hugging Face Hub'
100
98
  )
101
99
  _add_upload_arguments(upload_parser)
100
+
101
+ # WorldSAR subcommand
102
+ worldsar_parser = subparsers.add_parser(
103
+ 'worldsar',
104
+ help='Process SAR products with SNAP GPT pipelines and tiling',
105
+ description='Process SAR products from multiple missions and generate tiles'
106
+ )
107
+ _add_worldsar_arguments(worldsar_parser)
102
108
 
103
109
  return parser
104
110
 
@@ -350,6 +356,90 @@ def _add_upload_arguments(parser: argparse.ArgumentParser) -> None:
350
356
  )
351
357
 
352
358
 
359
+ def _add_worldsar_arguments(parser: argparse.ArgumentParser) -> None:
360
+ """
361
+ Add arguments for the worldsar subcommand.
362
+
363
+ Args:
364
+ parser: The subparser for worldsar command.
365
+ """
366
+ parser.add_argument(
367
+ '--input',
368
+ '-i',
369
+ dest='product_path',
370
+ type=str,
371
+ required=True,
372
+ help='Path to the input SAR product.'
373
+ )
374
+ parser.add_argument(
375
+ '--output',
376
+ '-o',
377
+ dest='output_dir',
378
+ type=str,
379
+ required=True,
380
+ help='Directory to save the processed output.'
381
+ )
382
+ parser.add_argument(
383
+ '--cuts-outdir',
384
+ '--cuts_outdir',
385
+ dest='cuts_outdir',
386
+ type=str,
387
+ required=True,
388
+ help='Where to store the tiles after extraction.'
389
+ )
390
+ parser.add_argument(
391
+ '--product-wkt',
392
+ '--product_wkt',
393
+ dest='product_wkt',
394
+ type=str,
395
+ required=True,
396
+ help='WKT string defining the product region of interest.'
397
+ )
398
+ parser.add_argument(
399
+ '--prod-mode',
400
+ '--prod_mode',
401
+ dest='prod_mode',
402
+ type=str,
403
+ required=True,
404
+ help='Product mode: ["S1TOPS", "S1STRIP", "BM", "NISAR", "TSX", "CSG", "ICE"].'
405
+ )
406
+ parser.add_argument(
407
+ '--gpt-path',
408
+ dest='gpt_path',
409
+ type=str,
410
+ default=None,
411
+ help='Override GPT executable path (default: gpt_path env var).'
412
+ )
413
+ parser.add_argument(
414
+ '--grid-path',
415
+ dest='grid_path',
416
+ type=str,
417
+ default=None,
418
+ help='Override grid GeoJSON path (default: grid_path env var).'
419
+ )
420
+ parser.add_argument(
421
+ '--db-dir',
422
+ dest='db_dir',
423
+ type=str,
424
+ default=None,
425
+ help='Override database output directory (default: db_dir env var).'
426
+ )
427
+ parser.add_argument(
428
+ '--gpt-memory',
429
+ dest='gpt_memory',
430
+ type=str,
431
+ default=None,
432
+ help='Override GPT Java heap (e.g., 24G).'
433
+ )
434
+ parser.add_argument(
435
+ '--gpt-parallelism',
436
+ dest='gpt_parallelism',
437
+ type=int,
438
+ default=None,
439
+ help='Override GPT parallelism (number of tiles).'
440
+ )
441
+
442
+
353
443
  def main() -> None:
354
444
  """
355
445
  Main entry point for sarpyx CLI.
@@ -367,20 +457,29 @@ def main() -> None:
367
457
 
368
458
  try:
369
459
  if args.command == 'decode':
460
+ from .decode import main as decode_main
370
461
  sys.argv = ['sarpyx-decode'] + [arg for arg in original_argv[2:]]
371
462
  decode_main()
372
463
  elif args.command == 'focus':
464
+ from .focus import main as focus_main
373
465
  sys.argv = ['sarpyx-focus'] + [arg for arg in original_argv[2:]]
374
466
  focus_main()
375
467
  elif args.command == 'shipdet':
468
+ from .shipdet import main as shipdet_main
376
469
  sys.argv = ['sarpyx-shipdet'] + [arg for arg in original_argv[2:]]
377
470
  shipdet_main()
378
471
  elif args.command == 'unzip':
472
+ from .unzip import main as unzip_main
379
473
  sys.argv = ['sarpyx-unzip'] + [arg for arg in original_argv[2:]]
380
474
  unzip_main()
381
475
  elif args.command == 'upload':
476
+ from .upload import main as upload_main
382
477
  sys.argv = ['sarpyx-upload'] + [arg for arg in original_argv[2:]]
383
478
  upload_main()
479
+ elif args.command == 'worldsar':
480
+ from .worldsar import main as worldsar_main
481
+ sys.argv = ['sarpyx-worldsar'] + [arg for arg in original_argv[2:]]
482
+ worldsar_main()
384
483
  else:
385
484
  print(f'Unknown command: {args.command}', file=sys.stderr)
386
485
  sys.exit(1)
@@ -0,0 +1,33 @@
1
+ """
2
+ SAR Processing Module.
3
+
4
+ This module provides comprehensive SAR (Synthetic Aperture Radar) processing
5
+ capabilities including focusing algorithms, autofocus methods, data I/O,
6
+ and various processing utilities.
7
+
8
+ Submodules:
9
+ core: Core processing algorithms (focus, decode, transforms)
10
+ autofocus: Autofocus algorithms and quality metrics
11
+ algorithms: High-level processing algorithms (RDA, back-projection)
12
+ data: Data readers, writers, and format converters
13
+ utils: Processing utilities and helper functions
14
+
15
+ Legacy:
16
+ AutoFocusNet: Original AutoFocusNet implementation (maintained for compatibility)
17
+ """
18
+
19
+ # Import main submodules
20
+ from . import core
21
+ from . import algorithms
22
+ from . import data
23
+ from . import utils
24
+
25
+
26
+ __all__ = [
27
+ 'core',
28
+ 'algorithms',
29
+ 'data',
30
+ 'utils',
31
+ ]
32
+
33
+ __version__ = "0.1.6"