sct-radarsat2-reader 1.0.0__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.
- sct_radarsat2_reader-1.0.0/.gitignore +168 -0
- sct_radarsat2_reader-1.0.0/LICENSE.txt +21 -0
- sct_radarsat2_reader-1.0.0/PKG-INFO +109 -0
- sct_radarsat2_reader-1.0.0/README.md +42 -0
- sct_radarsat2_reader-1.0.0/pyproject.toml +121 -0
- sct_radarsat2_reader-1.0.0/src/sct_radarsat2_reader/__init__.py +6 -0
- sct_radarsat2_reader-1.0.0/src/sct_radarsat2_reader/interface.py +36 -0
- sct_radarsat2_reader-1.0.0/src/sct_radarsat2_reader/protocol_implementation.py +862 -0
- sct_radarsat2_reader-1.0.0/tests/__init__.py +4 -0
- sct_radarsat2_reader-1.0.0/tests/test_registry_linux.json +11 -0
- sct_radarsat2_reader-1.0.0/tests/test_registry_windows.json +11 -0
- sct_radarsat2_reader-1.0.0/tests/unittests/__init__.py +4 -0
- sct_radarsat2_reader-1.0.0/tests/unittests/test_protocol_compliance.py +57 -0
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py,cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# poetry
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
102
|
+
#poetry.lock
|
|
103
|
+
|
|
104
|
+
# pdm
|
|
105
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
106
|
+
#pdm.lock
|
|
107
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
108
|
+
# in version control.
|
|
109
|
+
# https://pdm-project.org/#use-with-ide
|
|
110
|
+
.pdm.toml
|
|
111
|
+
.pdm-python
|
|
112
|
+
.pdm-build/
|
|
113
|
+
pdm.lock
|
|
114
|
+
|
|
115
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
116
|
+
__pypackages__/
|
|
117
|
+
|
|
118
|
+
# Celery stuff
|
|
119
|
+
celerybeat-schedule
|
|
120
|
+
celerybeat.pid
|
|
121
|
+
|
|
122
|
+
# SageMath parsed files
|
|
123
|
+
*.sage.py
|
|
124
|
+
|
|
125
|
+
# Environments
|
|
126
|
+
.env
|
|
127
|
+
.venv
|
|
128
|
+
env/
|
|
129
|
+
venv/
|
|
130
|
+
ENV/
|
|
131
|
+
env.bak/
|
|
132
|
+
venv.bak/
|
|
133
|
+
|
|
134
|
+
# Spyder project settings
|
|
135
|
+
.spyderproject
|
|
136
|
+
.spyproject
|
|
137
|
+
|
|
138
|
+
# Rope project settings
|
|
139
|
+
.ropeproject
|
|
140
|
+
|
|
141
|
+
# mkdocs documentation
|
|
142
|
+
/site
|
|
143
|
+
|
|
144
|
+
# mypy
|
|
145
|
+
.mypy_cache/
|
|
146
|
+
.dmypy.json
|
|
147
|
+
dmypy.json
|
|
148
|
+
|
|
149
|
+
# Pyre type checker
|
|
150
|
+
.pyre/
|
|
151
|
+
|
|
152
|
+
# pytype static type analyzer
|
|
153
|
+
.pytype/
|
|
154
|
+
|
|
155
|
+
# Cython debug symbols
|
|
156
|
+
cython_debug/
|
|
157
|
+
|
|
158
|
+
# PyCharm
|
|
159
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
160
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
161
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
162
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
163
|
+
#.idea/
|
|
164
|
+
|
|
165
|
+
.vscode/
|
|
166
|
+
|
|
167
|
+
tests/integration_tests/config/local.toml
|
|
168
|
+
|
|
@@ -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.
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: sct_radarsat2_reader
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: SCT (SAR Calibration Toolbox) plugin for reading RADARSAT-2 Level 1 product format.
|
|
5
|
+
Project-URL: Homepage, https://github.com/aresys-srl/sct_plugins
|
|
6
|
+
Project-URL: Repository, https://github.com/aresys-srl/sct_plugins
|
|
7
|
+
Project-URL: Documentation, https://aresys-srl.github.io/sct_plugins
|
|
8
|
+
Author-email: "Aresys S.R.L." <info@aresys.it>
|
|
9
|
+
License: MIT License
|
|
10
|
+
|
|
11
|
+
Copyright (C) Aresys S.r.l. <info@aresys.it>
|
|
12
|
+
|
|
13
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
14
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
15
|
+
in the Software without restriction, including without limitation the rights
|
|
16
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
17
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
18
|
+
furnished to do so, subject to the following conditions:
|
|
19
|
+
|
|
20
|
+
The above copyright notice and this permission notice shall be included in all
|
|
21
|
+
copies or substantial portions of the Software.
|
|
22
|
+
|
|
23
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
24
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
25
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
26
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
27
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
28
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
29
|
+
SOFTWARE.
|
|
30
|
+
License-File: LICENSE.txt
|
|
31
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
32
|
+
Classifier: Intended Audience :: Developers
|
|
33
|
+
Classifier: Intended Audience :: Education
|
|
34
|
+
Classifier: Intended Audience :: Science/Research
|
|
35
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
36
|
+
Classifier: Natural Language :: English
|
|
37
|
+
Classifier: Operating System :: OS Independent
|
|
38
|
+
Classifier: Programming Language :: Python
|
|
39
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
40
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
41
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
42
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
43
|
+
Classifier: Topic :: Scientific/Engineering
|
|
44
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
45
|
+
Classifier: Topic :: Utilities
|
|
46
|
+
Classifier: Typing :: Typed
|
|
47
|
+
Requires-Python: >=3.11
|
|
48
|
+
Requires-Dist: eo-products==1.0.0
|
|
49
|
+
Requires-Dist: numpy>2
|
|
50
|
+
Requires-Dist: perseo-core==1.0.0
|
|
51
|
+
Requires-Dist: perseo-quality==1.0.0
|
|
52
|
+
Requires-Dist: scipy
|
|
53
|
+
Requires-Dist: sct
|
|
54
|
+
Requires-Dist: shapely>=2.1.0
|
|
55
|
+
Provides-Extra: dev
|
|
56
|
+
Requires-Dist: nox; extra == 'dev'
|
|
57
|
+
Requires-Dist: pylint; extra == 'dev'
|
|
58
|
+
Requires-Dist: ruff; extra == 'dev'
|
|
59
|
+
Provides-Extra: docs
|
|
60
|
+
Requires-Dist: mkdocstrings-python; extra == 'docs'
|
|
61
|
+
Requires-Dist: zensical; extra == 'docs'
|
|
62
|
+
Provides-Extra: test
|
|
63
|
+
Requires-Dist: pytest; extra == 'test'
|
|
64
|
+
Requires-Dist: pytest-cov; extra == 'test'
|
|
65
|
+
Requires-Dist: sct[graphs]; extra == 'test'
|
|
66
|
+
Description-Content-Type: text/markdown
|
|
67
|
+
|
|
68
|
+
# SCT Plugin: RADARSAT-2 format reader
|
|
69
|
+
|
|
70
|
+
[](https://pypi.org/project/sct-radarsat2-reader/)
|
|
71
|
+
[](https://python.org)
|
|
72
|
+
[](LICENSE.txt)
|
|
73
|
+
|
|
74
|
+
[](https://github.com/aresys-srl/sct_plugins/actions/workflows/radarsat2.yml)
|
|
75
|
+
|
|
76
|
+
[SCT (SAR Calibration Toolbox)](https://github.com/aresys-srl/sct) plugin for reading RADARSAT-2
|
|
77
|
+
Level 1 products, both L1A (SLC) and L1B (GRD). This package integrates with SCT through its
|
|
78
|
+
input products plugin system, enabling all SCT analyses on RADARSAT-2 data.
|
|
79
|
+
|
|
80
|
+
## Supported Acquisition Modes
|
|
81
|
+
|
|
82
|
+
- **Stripmap**
|
|
83
|
+
- **Spotlight**
|
|
84
|
+
- **Scansar**
|
|
85
|
+
|
|
86
|
+
## Installation
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
pip install sct-radarsat2-reader
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
SCT is automatically installed as a dependency.
|
|
93
|
+
|
|
94
|
+
## Compatibility
|
|
95
|
+
|
|
96
|
+
This plugin must be installed in the same Python environment as SCT. Once installed,
|
|
97
|
+
the plugin is automatically discovered and registered by SCT through its entry-point
|
|
98
|
+
based plugin system; no additional configuration is required.
|
|
99
|
+
|
|
100
|
+
## Documentation
|
|
101
|
+
|
|
102
|
+
- [SCT documentation](https://aresys-srl.github.io/sct/)
|
|
103
|
+
- [Plugins documentation](https://aresys-srl.github.io/sct_plugins)
|
|
104
|
+
|
|
105
|
+
## License
|
|
106
|
+
|
|
107
|
+
This project is licensed under the MIT License. See the [LICENSE.txt](LICENSE.txt) file for details.
|
|
108
|
+
|
|
109
|
+
Copyright © 2026-present Aresys S.r.l. <info@aresys.it>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# SCT Plugin: RADARSAT-2 format reader
|
|
2
|
+
|
|
3
|
+
[](https://pypi.org/project/sct-radarsat2-reader/)
|
|
4
|
+
[](https://python.org)
|
|
5
|
+
[](LICENSE.txt)
|
|
6
|
+
|
|
7
|
+
[](https://github.com/aresys-srl/sct_plugins/actions/workflows/radarsat2.yml)
|
|
8
|
+
|
|
9
|
+
[SCT (SAR Calibration Toolbox)](https://github.com/aresys-srl/sct) plugin for reading RADARSAT-2
|
|
10
|
+
Level 1 products, both L1A (SLC) and L1B (GRD). This package integrates with SCT through its
|
|
11
|
+
input products plugin system, enabling all SCT analyses on RADARSAT-2 data.
|
|
12
|
+
|
|
13
|
+
## Supported Acquisition Modes
|
|
14
|
+
|
|
15
|
+
- **Stripmap**
|
|
16
|
+
- **Spotlight**
|
|
17
|
+
- **Scansar**
|
|
18
|
+
|
|
19
|
+
## Installation
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
pip install sct-radarsat2-reader
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
SCT is automatically installed as a dependency.
|
|
26
|
+
|
|
27
|
+
## Compatibility
|
|
28
|
+
|
|
29
|
+
This plugin must be installed in the same Python environment as SCT. Once installed,
|
|
30
|
+
the plugin is automatically discovered and registered by SCT through its entry-point
|
|
31
|
+
based plugin system; no additional configuration is required.
|
|
32
|
+
|
|
33
|
+
## Documentation
|
|
34
|
+
|
|
35
|
+
- [SCT documentation](https://aresys-srl.github.io/sct/)
|
|
36
|
+
- [Plugins documentation](https://aresys-srl.github.io/sct_plugins)
|
|
37
|
+
|
|
38
|
+
## License
|
|
39
|
+
|
|
40
|
+
This project is licensed under the MIT License. See the [LICENSE.txt](LICENSE.txt) file for details.
|
|
41
|
+
|
|
42
|
+
Copyright © 2026-present Aresys S.r.l. <info@aresys.it>
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "sct_radarsat2_reader"
|
|
3
|
+
description = "SCT (SAR Calibration Toolbox) plugin for reading RADARSAT-2 Level 1 product format."
|
|
4
|
+
authors = [{ name = "Aresys S.R.L.", email = "info@aresys.it" }]
|
|
5
|
+
requires-python = ">= 3.11"
|
|
6
|
+
readme = "README.md"
|
|
7
|
+
license = { file = "LICENSE.txt" }
|
|
8
|
+
dependencies = [
|
|
9
|
+
"numpy>2",
|
|
10
|
+
"scipy",
|
|
11
|
+
"shapely>=2.1.0",
|
|
12
|
+
"eo-products==1.0.0",
|
|
13
|
+
"perseo-core==1.0.0",
|
|
14
|
+
"perseo-quality==1.0.0",
|
|
15
|
+
"sct",
|
|
16
|
+
]
|
|
17
|
+
dynamic = ["version"]
|
|
18
|
+
classifiers = [
|
|
19
|
+
"Development Status :: 5 - Production/Stable",
|
|
20
|
+
"Operating System :: OS Independent",
|
|
21
|
+
"Intended Audience :: Science/Research",
|
|
22
|
+
"Intended Audience :: Education",
|
|
23
|
+
"Intended Audience :: Developers",
|
|
24
|
+
"License :: OSI Approved :: MIT License",
|
|
25
|
+
"Natural Language :: English",
|
|
26
|
+
"Operating System :: OS Independent",
|
|
27
|
+
"Programming Language :: Python",
|
|
28
|
+
"Programming Language :: Python :: 3.11",
|
|
29
|
+
"Programming Language :: Python :: 3.12",
|
|
30
|
+
"Programming Language :: Python :: 3.13",
|
|
31
|
+
"Programming Language :: Python :: 3.14",
|
|
32
|
+
"Topic :: Software Development :: Libraries",
|
|
33
|
+
"Topic :: Utilities",
|
|
34
|
+
"Topic :: Scientific/Engineering",
|
|
35
|
+
"Typing :: Typed",
|
|
36
|
+
]
|
|
37
|
+
|
|
38
|
+
[project.urls]
|
|
39
|
+
Homepage = "https://github.com/aresys-srl/sct_plugins"
|
|
40
|
+
Repository = "https://github.com/aresys-srl/sct_plugins"
|
|
41
|
+
Documentation = "https://aresys-srl.github.io/sct_plugins"
|
|
42
|
+
|
|
43
|
+
[project.optional-dependencies]
|
|
44
|
+
dev = ["nox", "ruff", "pylint"]
|
|
45
|
+
test = ["pytest", "pytest-cov", "sct[graphs]"]
|
|
46
|
+
docs = ["zensical", "mkdocstrings-python"]
|
|
47
|
+
|
|
48
|
+
[project.entry-points."sct.input_products"]
|
|
49
|
+
radarsat2 = "sct_radarsat2_reader.interface:RADARSAT2ProductPlugin"
|
|
50
|
+
|
|
51
|
+
[build-system]
|
|
52
|
+
requires = ["hatchling"]
|
|
53
|
+
build-backend = "hatchling.build"
|
|
54
|
+
|
|
55
|
+
[tool.hatch.version]
|
|
56
|
+
path = "src/sct_radarsat2_reader/__init__.py"
|
|
57
|
+
|
|
58
|
+
[tool.hatch.build.targets.sdist]
|
|
59
|
+
only-include = ["src", "tests"]
|
|
60
|
+
|
|
61
|
+
[tool.hatch.metadata]
|
|
62
|
+
allow-direct-references = true
|
|
63
|
+
|
|
64
|
+
[tool.pytest.ini_options]
|
|
65
|
+
minversion = "8.0"
|
|
66
|
+
testpaths = ["tests"]
|
|
67
|
+
python_files = ["test_*.py"]
|
|
68
|
+
python_classes = ["Test*"]
|
|
69
|
+
python_functions = ["test_*"]
|
|
70
|
+
addopts = [
|
|
71
|
+
"-ra",
|
|
72
|
+
"--strict-markers",
|
|
73
|
+
"--strict-config",
|
|
74
|
+
"--tb=short",
|
|
75
|
+
"--cov=sct_radarsat2_reader",
|
|
76
|
+
"--cov-report=term-missing",
|
|
77
|
+
"--cov-report=html",
|
|
78
|
+
"--no-cov-on-fail",
|
|
79
|
+
]
|
|
80
|
+
|
|
81
|
+
[tool.coverage.run]
|
|
82
|
+
branch = true
|
|
83
|
+
source = ["src"]
|
|
84
|
+
|
|
85
|
+
[tool.coverage.report]
|
|
86
|
+
skip_covered = true
|
|
87
|
+
show_missing = true
|
|
88
|
+
|
|
89
|
+
[tool.ruff]
|
|
90
|
+
line-length = 120
|
|
91
|
+
output-format = "grouped"
|
|
92
|
+
extend-exclude = [".venv", "scripts", "noxfile.py"]
|
|
93
|
+
|
|
94
|
+
[tool.ruff.format]
|
|
95
|
+
docstring-code-format = true
|
|
96
|
+
|
|
97
|
+
[tool.ruff.lint]
|
|
98
|
+
select = ["E", "W", "F", "A", "B", "I"]
|
|
99
|
+
|
|
100
|
+
[tool.pylint.master]
|
|
101
|
+
fail-under = 8.5
|
|
102
|
+
fail-on = ["unused-import"]
|
|
103
|
+
|
|
104
|
+
[tool.pylint.message_control]
|
|
105
|
+
disable = ["import-error", "logging-fstring-interpolation", "logging-not-lazy"]
|
|
106
|
+
|
|
107
|
+
[tool.pylint.format]
|
|
108
|
+
max-line-length = 120
|
|
109
|
+
|
|
110
|
+
[tool.pdm]
|
|
111
|
+
distribution = true
|
|
112
|
+
|
|
113
|
+
[tool.pdm.scripts]
|
|
114
|
+
format_check = "ruff format --check"
|
|
115
|
+
format = "ruff format"
|
|
116
|
+
sort = "ruff check --select I --fix-only"
|
|
117
|
+
lint_check = "ruff check"
|
|
118
|
+
lint_fix = "ruff check --show-fixes --fix-only"
|
|
119
|
+
test = "python -m pytest ./tests -v"
|
|
120
|
+
check_code = { composite = ["format_check", "lint_check"] }
|
|
121
|
+
fix_format = { composite = ["format", "sort", "lint_fix"] }
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# SPDX-FileCopyrightText: Aresys S.r.l. <info@aresys.it>
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
|
|
4
|
+
"""RADARSAT-2 SCT plugin interface."""
|
|
5
|
+
|
|
6
|
+
from __future__ import annotations
|
|
7
|
+
|
|
8
|
+
from pathlib import Path
|
|
9
|
+
from typing import TYPE_CHECKING, Callable
|
|
10
|
+
|
|
11
|
+
from sct_radarsat2_reader import __version__
|
|
12
|
+
|
|
13
|
+
if TYPE_CHECKING:
|
|
14
|
+
from sct.io.extended_protocols import ALECorrectionFunctionType, SCTInputProduct
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class RADARSAT2ProductPlugin:
|
|
18
|
+
"""Plugin for RADARSAT-2 product format"""
|
|
19
|
+
|
|
20
|
+
version = __version__
|
|
21
|
+
|
|
22
|
+
@classmethod
|
|
23
|
+
def get_manager(cls) -> type[SCTInputProduct]:
|
|
24
|
+
from sct_radarsat2_reader.protocol_implementation import RADARSAT2ProductManager
|
|
25
|
+
|
|
26
|
+
return RADARSAT2ProductManager
|
|
27
|
+
|
|
28
|
+
@classmethod
|
|
29
|
+
def get_detector(cls) -> Callable[[str | Path], bool]:
|
|
30
|
+
from eo_products.radarsat2.utilities import is_radarsat_product
|
|
31
|
+
|
|
32
|
+
return is_radarsat_product
|
|
33
|
+
|
|
34
|
+
@classmethod
|
|
35
|
+
def get_ale_corrector(cls) -> ALECorrectionFunctionType:
|
|
36
|
+
return None
|