yirgacheffe 1.6.0__py3-none-any.whl → 1.6.1__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.
Potentially problematic release.
This version of yirgacheffe might be problematic. Click here for more details.
- yirgacheffe/operators.py +8 -0
- {yirgacheffe-1.6.0.dist-info → yirgacheffe-1.6.1.dist-info}/METADATA +3 -3
- {yirgacheffe-1.6.0.dist-info → yirgacheffe-1.6.1.dist-info}/RECORD +7 -7
- {yirgacheffe-1.6.0.dist-info → yirgacheffe-1.6.1.dist-info}/WHEEL +0 -0
- {yirgacheffe-1.6.0.dist-info → yirgacheffe-1.6.1.dist-info}/entry_points.txt +0 -0
- {yirgacheffe-1.6.0.dist-info → yirgacheffe-1.6.1.dist-info}/licenses/LICENSE +0 -0
- {yirgacheffe-1.6.0.dist-info → yirgacheffe-1.6.1.dist-info}/top_level.txt +0 -0
yirgacheffe/operators.py
CHANGED
|
@@ -229,6 +229,14 @@ class LayerMathMixin:
|
|
|
229
229
|
def parallel_sum(self, callback=None, parallelism=None, band=1):
|
|
230
230
|
return LayerOperation(self).parallel_sum(callback, parallelism, band)
|
|
231
231
|
|
|
232
|
+
def to_geotiff(
|
|
233
|
+
self,
|
|
234
|
+
filename: Union[Path,str],
|
|
235
|
+
and_sum: bool = False,
|
|
236
|
+
parallelism:Optional[int]=None
|
|
237
|
+
) -> Optional[float]:
|
|
238
|
+
return LayerOperation(self).to_geotiff(filename, and_sum, parallelism)
|
|
239
|
+
|
|
232
240
|
def sum(self):
|
|
233
241
|
return LayerOperation(self).sum()
|
|
234
242
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: yirgacheffe
|
|
3
|
-
Version: 1.6.
|
|
3
|
+
Version: 1.6.1
|
|
4
4
|
Summary: Abstraction of gdal datasets for doing basic math operations
|
|
5
5
|
Author-email: Michael Dales <mwd24@cam.ac.uk>
|
|
6
6
|
License-Expression: ISC
|
|
@@ -71,8 +71,8 @@ print(f'area for species 123: {aoh.sum()}')
|
|
|
71
71
|
Similarly, you could save the result to a new raster layer:
|
|
72
72
|
|
|
73
73
|
```python
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
...
|
|
75
|
+
aoh.to_geotiff("result.tif")
|
|
76
76
|
```
|
|
77
77
|
|
|
78
78
|
Yirgacheffe will automatically infer if you want to do an intersection of maps or a union of the maps based on the operators you use (see below for a full table). You can explicitly override that if you want.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
yirgacheffe/__init__.py,sha256=n0v998xPOMMS6hdAQ16UNzmJUdnN5612HRtdudwjYa4,302
|
|
2
2
|
yirgacheffe/_core.py,sha256=0E56yP63vUiwi0g6ntUzmKhOuWQWoh3sSD6Ui8SWWRI,4082
|
|
3
3
|
yirgacheffe/constants.py,sha256=uCWJwec3-ND-zVxYbsk1sdHKANl3ToNCTPg7MZb0j2g,434
|
|
4
|
-
yirgacheffe/operators.py,sha256=
|
|
4
|
+
yirgacheffe/operators.py,sha256=4REikGD_hDZjY3jfUfo4NmrrCXXu5hn1tYKedbwUlvg,31609
|
|
5
5
|
yirgacheffe/rounding.py,sha256=ggBG4lMyLMtHLW3dBxr3gBCcF2qhRrY5etZiFGlIoqA,2258
|
|
6
6
|
yirgacheffe/window.py,sha256=kR8sHQ6lcixpndOWC18wLRgbgS8y00tq4Fkh8PLESvM,8209
|
|
7
7
|
yirgacheffe/_backends/__init__.py,sha256=jN-2iRrHStnPI6cNL7XhwhsROtI0EaGfIrbF5c-ECV0,334
|
|
@@ -17,9 +17,9 @@ yirgacheffe/layers/h3layer.py,sha256=Hy8kJF9-EQnLaRbZlj4TLSRfpq2-dJga8x4jiiPUHYo
|
|
|
17
17
|
yirgacheffe/layers/rasters.py,sha256=stZOi0sojJqMybvtKpvzfXlFJwRUvW7mA77Q3B4nhzA,13296
|
|
18
18
|
yirgacheffe/layers/rescaled.py,sha256=uam0dsidKpP97gQBig34zXefyNruUbwAnQaeuN68KE4,3104
|
|
19
19
|
yirgacheffe/layers/vectors.py,sha256=4BCGRSzbkFfsGZwLsQS9WelMXV5hDCcLmGGW6mf6MjU,15839
|
|
20
|
-
yirgacheffe-1.6.
|
|
21
|
-
yirgacheffe-1.6.
|
|
22
|
-
yirgacheffe-1.6.
|
|
23
|
-
yirgacheffe-1.6.
|
|
24
|
-
yirgacheffe-1.6.
|
|
25
|
-
yirgacheffe-1.6.
|
|
20
|
+
yirgacheffe-1.6.1.dist-info/licenses/LICENSE,sha256=dNSHwUCJr6axStTKDEdnJtfmDdFqlE3h1NPCveqPfnY,757
|
|
21
|
+
yirgacheffe-1.6.1.dist-info/METADATA,sha256=fn6CGfn17HeAcGhGO1YEbBdc_9WUjTsTnTZPZfQFNU8,22402
|
|
22
|
+
yirgacheffe-1.6.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
23
|
+
yirgacheffe-1.6.1.dist-info/entry_points.txt,sha256=j4KgHXbVGbGyfTySc1ypBdERpfihO4WNjppvCdE9HjE,52
|
|
24
|
+
yirgacheffe-1.6.1.dist-info/top_level.txt,sha256=9DBFlKO2Ld3hG6TuE3qOTd3Tt8ugTiXil4AN4Wr9_y0,12
|
|
25
|
+
yirgacheffe-1.6.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|