openeo-gfmap 0.4.2__py3-none-any.whl → 0.4.3__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.
- openeo_gfmap/preprocessing/sar.py +31 -0
- {openeo_gfmap-0.4.2.dist-info → openeo_gfmap-0.4.3.dist-info}/METADATA +2 -1
- {openeo_gfmap-0.4.2.dist-info → openeo_gfmap-0.4.3.dist-info}/RECORD +5 -5
- {openeo_gfmap-0.4.2.dist-info → openeo_gfmap-0.4.3.dist-info}/WHEEL +0 -0
- {openeo_gfmap-0.4.2.dist-info → openeo_gfmap-0.4.3.dist-info}/licenses/LICENSE +0 -0
@@ -41,3 +41,34 @@ def compress_backscatter_uint16(
|
|
41
41
|
|
42
42
|
# Change the data type to uint16 for optimization purposes
|
43
43
|
return cube.linear_scale_range(1, 65534, 1, 65534)
|
44
|
+
|
45
|
+
|
46
|
+
def decompress_backscatter_uint16(
|
47
|
+
backend_context: BackendContext, cube: openeo.DataCube
|
48
|
+
) -> openeo.DataCube:
|
49
|
+
"""
|
50
|
+
Decompresing the bands from uint16 to their original float32 values.
|
51
|
+
|
52
|
+
Parameters
|
53
|
+
----------
|
54
|
+
backend_context : BackendContext
|
55
|
+
The backend context to fetch the backend name.
|
56
|
+
cube : openeo.DataCube
|
57
|
+
The datacube to decompress the backscatter values.
|
58
|
+
Returns
|
59
|
+
-------
|
60
|
+
openeo.DataCube
|
61
|
+
The datacube with the backscatter values in their original float32 values.
|
62
|
+
"""
|
63
|
+
|
64
|
+
cube = cube.apply_dimension(
|
65
|
+
dimension="bands",
|
66
|
+
process=lambda x: array_create(
|
67
|
+
[
|
68
|
+
power(base=10, p=(20.0 * x[0].log(base=10) - 83.0) / 10.0),
|
69
|
+
power(base=10, p=(20.0 * x[1].log(base=10) - 83.0) / 10.0),
|
70
|
+
]
|
71
|
+
),
|
72
|
+
)
|
73
|
+
|
74
|
+
return cube
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: openeo_gfmap
|
3
|
-
Version: 0.4.
|
3
|
+
Version: 0.4.3
|
4
4
|
Summary: OpenEO General Framework for Mapping
|
5
5
|
Project-URL: Homepage, https://github.com/Open-EO/openeo-gfmap
|
6
6
|
Project-URL: Bug Tracker, https://github.com/Open-EO/openeo-gfmap/issues
|
@@ -29,6 +29,7 @@ Requires-Dist: pre-commit; extra == 'dev'
|
|
29
29
|
Requires-Dist: pytest-depends; extra == 'dev'
|
30
30
|
Requires-Dist: pytest-timeout>=2.2.0; extra == 'dev'
|
31
31
|
Requires-Dist: pytest>=7.4.0; extra == 'dev'
|
32
|
+
Requires-Dist: requests-mock>=1.8.0; extra == 'dev'
|
32
33
|
Requires-Dist: rioxarray>=0.13.0; extra == 'dev'
|
33
34
|
Requires-Dist: xarray>=2022.3.0; extra == 'dev'
|
34
35
|
Description-Content-Type: text/markdown
|
@@ -20,7 +20,7 @@ openeo_gfmap/preprocessing/__init__.py,sha256=-kJAy_WY4o8oqziRozcUuXtuGIM0IOvTCF
|
|
20
20
|
openeo_gfmap/preprocessing/cloudmasking.py,sha256=d280H5fByjNbCVZHjPn_dUatNI-ejphu4A75sUVoRqo,10029
|
21
21
|
openeo_gfmap/preprocessing/compositing.py,sha256=Jp9Ku5JpU7TJ4DYGc6YuqMeP1Ip7zns7NguC17BtFyA,2526
|
22
22
|
openeo_gfmap/preprocessing/interpolation.py,sha256=VVD483NoC0KYUSh28XaBNZzNaybQjdyCN8rXyXy2W9E,327
|
23
|
-
openeo_gfmap/preprocessing/sar.py,sha256=
|
23
|
+
openeo_gfmap/preprocessing/sar.py,sha256=Qzn3zCh3cWr0Vm-IFOy2_DrGxgGuQLiMnZZQjj2LwaY,2257
|
24
24
|
openeo_gfmap/preprocessing/scaling.py,sha256=oUNhykVC41Je3E_men_-PikAKNwYhYbwN9J1_Ru8Zi4,2121
|
25
25
|
openeo_gfmap/preprocessing/udf_cldmask.py,sha256=WqqFLBK5rIQPkb_dlgUWWSzicsPtVSthaIef40FHKJA,1162
|
26
26
|
openeo_gfmap/preprocessing/udf_rank.py,sha256=n2gSIY2ZHVVr9wJx1Bs2HtmvScAkz2NqhjxUM-iIKM0,1438
|
@@ -34,7 +34,7 @@ openeo_gfmap/utils/intervals.py,sha256=V6l3ofww50fN_pvWC4NuGQ2ZsyGdhAlTZTiRcC0fo
|
|
34
34
|
openeo_gfmap/utils/netcdf.py,sha256=KkAAxnq-ZCMjDMd82638noYwxqNpMsnpiU04Q-qX26A,698
|
35
35
|
openeo_gfmap/utils/split_stac.py,sha256=asjT0jx6ic8GJFqqAisaWxOvQ_suSRv4sxyFOyHFvpI,3895
|
36
36
|
openeo_gfmap/utils/tile_processing.py,sha256=QZ9bi5tPmyTVyyNvFZgd26s5dSnMl1grTKq2veK1C90,2068
|
37
|
-
openeo_gfmap-0.4.
|
38
|
-
openeo_gfmap-0.4.
|
39
|
-
openeo_gfmap-0.4.
|
40
|
-
openeo_gfmap-0.4.
|
37
|
+
openeo_gfmap-0.4.3.dist-info/METADATA,sha256=Lj7HiV-92WCJQTqlyZWZKyc8SNGvbFyzTDMyiWCK8FY,4374
|
38
|
+
openeo_gfmap-0.4.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
39
|
+
openeo_gfmap-0.4.3.dist-info/licenses/LICENSE,sha256=aUuGpjieWiscTNtyLcSaeVsJ4pb6J9c4wUq1bR0e4t4,11349
|
40
|
+
openeo_gfmap-0.4.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|