geoarray 0.19.0__tar.gz → 0.19.2__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 (44) hide show
  1. {geoarray-0.19.0 → geoarray-0.19.2}/.gitlab-ci.yml +11 -1
  2. geoarray-0.19.2/AUTHORS.rst +13 -0
  3. {geoarray-0.19.0 → geoarray-0.19.2}/HISTORY.rst +16 -0
  4. {geoarray-0.19.0/geoarray.egg-info → geoarray-0.19.2}/PKG-INFO +7 -6
  5. {geoarray-0.19.0 → geoarray-0.19.2}/docs/conf.py +1 -1
  6. {geoarray-0.19.0 → geoarray-0.19.2}/geoarray/__init__.py +5 -5
  7. {geoarray-0.19.0 → geoarray-0.19.2}/geoarray/baseclasses.py +11 -7
  8. {geoarray-0.19.0 → geoarray-0.19.2}/geoarray/masks.py +4 -4
  9. {geoarray-0.19.0 → geoarray-0.19.2}/geoarray/metadata.py +4 -4
  10. {geoarray-0.19.0 → geoarray-0.19.2}/geoarray/subsetting.py +4 -4
  11. {geoarray-0.19.0 → geoarray-0.19.2}/geoarray/version.py +6 -6
  12. {geoarray-0.19.0 → geoarray-0.19.2/geoarray.egg-info}/PKG-INFO +7 -6
  13. {geoarray-0.19.0 → geoarray-0.19.2}/geoarray.egg-info/requires.txt +1 -1
  14. {geoarray-0.19.0 → geoarray-0.19.2}/pyproject.toml +8 -9
  15. geoarray-0.19.0/AUTHORS.rst +0 -13
  16. {geoarray-0.19.0 → geoarray-0.19.2}/.coveragerc +0 -0
  17. {geoarray-0.19.0 → geoarray-0.19.2}/.editorconfig +0 -0
  18. {geoarray-0.19.0 → geoarray-0.19.2}/.gitattributes +0 -0
  19. {geoarray-0.19.0 → geoarray-0.19.2}/.github/ISSUE_TEMPLATE.md +0 -0
  20. {geoarray-0.19.0 → geoarray-0.19.2}/.gitignore +0 -0
  21. {geoarray-0.19.0 → geoarray-0.19.2}/CONTRIBUTING.rst +0 -0
  22. {geoarray-0.19.0 → geoarray-0.19.2}/LICENSE +0 -0
  23. {geoarray-0.19.0 → geoarray-0.19.2}/MANIFEST.in +0 -0
  24. {geoarray-0.19.0 → geoarray-0.19.2}/Makefile +0 -0
  25. {geoarray-0.19.0 → geoarray-0.19.2}/README.rst +0 -0
  26. {geoarray-0.19.0 → geoarray-0.19.2}/docs/Makefile +0 -0
  27. {geoarray-0.19.0 → geoarray-0.19.2}/docs/_build/html/_static/file.png +0 -0
  28. {geoarray-0.19.0 → geoarray-0.19.2}/docs/_build/html/_static/minus.png +0 -0
  29. {geoarray-0.19.0 → geoarray-0.19.2}/docs/_build/html/_static/plus.png +0 -0
  30. {geoarray-0.19.0 → geoarray-0.19.2}/docs/authors.rst +0 -0
  31. {geoarray-0.19.0 → geoarray-0.19.2}/docs/contributing.rst +0 -0
  32. {geoarray-0.19.0 → geoarray-0.19.2}/docs/history.rst +0 -0
  33. {geoarray-0.19.0 → geoarray-0.19.2}/docs/index.rst +0 -0
  34. {geoarray-0.19.0 → geoarray-0.19.2}/docs/installation.rst +0 -0
  35. {geoarray-0.19.0 → geoarray-0.19.2}/docs/make.bat +0 -0
  36. {geoarray-0.19.0 → geoarray-0.19.2}/docs/readme.rst +0 -0
  37. {geoarray-0.19.0 → geoarray-0.19.2}/docs/usage.rst +0 -0
  38. {geoarray-0.19.0 → geoarray-0.19.2}/examples/notebooks/features_and_usage.ipynb +0 -0
  39. {geoarray-0.19.0 → geoarray-0.19.2}/geoarray.egg-info/SOURCES.txt +0 -0
  40. {geoarray-0.19.0 → geoarray-0.19.2}/geoarray.egg-info/dependency_links.txt +0 -0
  41. {geoarray-0.19.0 → geoarray-0.19.2}/geoarray.egg-info/not-zip-safe +0 -0
  42. {geoarray-0.19.0 → geoarray-0.19.2}/geoarray.egg-info/top_level.txt +0 -0
  43. {geoarray-0.19.0 → geoarray-0.19.2}/setup.cfg +0 -0
  44. {geoarray-0.19.0 → geoarray-0.19.2}/tox.ini +0 -0
@@ -121,7 +121,7 @@ deploy_pypi:
121
121
  - test_geoarray
122
122
  script:
123
123
  - source activate ci_env
124
- - pip install -U twine build
124
+ - pip install -U twine build packaging
125
125
  - python -m build --sdist
126
126
  - twine check dist/*
127
127
  - twine upload dist/* # requires creds as environment variables
@@ -129,3 +129,13 @@ deploy_pypi:
129
129
  - /^v\d+\.\d+\.\d+([abc]\d*)?$/ # PEP-440 compliant version (tags)
130
130
  except:
131
131
  - dev
132
+
133
+
134
+ gitleaks: # Gitleaks security scanner
135
+ image:
136
+ name: zricethezav/gitleaks:latest
137
+ entrypoint: [""]
138
+ stage: test
139
+ before_script: [] # prevents git lfs pull
140
+ script:
141
+ - gitleaks git --platform gitlab --max-decode-depth 5 --verbose --redact $CI_PROJECT_DIR
@@ -0,0 +1,13 @@
1
+ =======
2
+ Credits
3
+ =======
4
+
5
+ Development Lead
6
+ ----------------
7
+
8
+ * `Daniel Scheffler <https://www.gfz.de/staff/daniel.scheffler/sec14/>`__ <danschef@gfz.de>
9
+
10
+ Contributors
11
+ ------------
12
+
13
+ * Jessica Palka <jessica.palka@gfz.de>
@@ -2,6 +2,22 @@
2
2
  History
3
3
  =======
4
4
 
5
+ 0.19.2 (2025-09-11)
6
+ -------------------
7
+
8
+ * !60/!61: Updated GFZ URLs and institute name.
9
+ * !62: Added GitLeaks CI job to auto-detect sectrets.
10
+ * !63: Updated copyrights.
11
+ * !64: Skip corrupted band names in the metadata and raise a RuntimeWarning.
12
+
13
+
14
+ 0.19.1 (2025-05-26)
15
+ -------------------
16
+
17
+ * !57: Pinned holoviews to >1.12.7 to fix an incompatibility within newer environments.
18
+ * !58: Fixed #47 (Integer overflow in GeoArray.read_pointData for rasters larger than int16 max (32767)).
19
+ * !59: Adapted license declaration in pyproject.toml to new PEP 639.
20
+
5
21
 
6
22
  0.19.0 (26.08.2024)
7
23
  -------------------
@@ -1,9 +1,9 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: geoarray
3
- Version: 0.19.0
3
+ Version: 0.19.2
4
4
  Summary: Fast Python interface for geodata - either on disk or in memory
5
- Author-email: Daniel Scheffler <daniel.scheffler@gfz-potsdam.de>
6
- License: Apache-2.0
5
+ Author-email: Daniel Scheffler <daniel.scheffler@gfz.de>
6
+ License-Expression: Apache-2.0
7
7
  Project-URL: Source code, https://git.gfz-potsdam.de/danschef/geoarray
8
8
  Project-URL: Issue Tracker, https://git.gfz-potsdam.de/danschef/geoarray/-/issues
9
9
  Project-URL: Documentation, https://danschef.git-pages.gfz-potsdam.de/geoarray/doc/
@@ -11,7 +11,6 @@ Project-URL: Change log, https://git.gfz-potsdam.de/danschef/geoarray/-/blob/mai
11
11
  Keywords: geoarray,geoprocessing,gdal,numpy
12
12
  Classifier: Development Status :: 4 - Beta
13
13
  Classifier: Intended Audience :: Developers
14
- Classifier: License :: OSI Approved :: Apache Software License
15
14
  Classifier: Natural Language :: English
16
15
  Classifier: Programming Language :: Python :: 3.8
17
16
  Classifier: Programming Language :: Python :: 3.9
@@ -21,6 +20,7 @@ Classifier: Programming Language :: Python :: 3.12
21
20
  Requires-Python: >=3.8
22
21
  Description-Content-Type: text/x-rst
23
22
  License-File: LICENSE
23
+ License-File: AUTHORS.rst
24
24
  Requires-Dist: cartopy>=0.20
25
25
  Requires-Dist: dill
26
26
  Requires-Dist: gdal>=3.8.0
@@ -33,7 +33,7 @@ Requires-Dist: shapely
33
33
  Provides-Extra: interactive-plotting
34
34
  Requires-Dist: folium; extra == "interactive-plotting"
35
35
  Requires-Dist: geojson; extra == "interactive-plotting"
36
- Requires-Dist: holoviews; extra == "interactive-plotting"
36
+ Requires-Dist: holoviews>1.12.7; extra == "interactive-plotting"
37
37
  Provides-Extra: doc
38
38
  Requires-Dist: sphinx-argparse; extra == "doc"
39
39
  Requires-Dist: sphinx_rtd_theme; extra == "doc"
@@ -51,6 +51,7 @@ Provides-Extra: dev
51
51
  Requires-Dist: geoarray[test]; extra == "dev"
52
52
  Requires-Dist: geoarray[doc]; extra == "dev"
53
53
  Requires-Dist: geoarray[lint]; extra == "dev"
54
+ Dynamic: license-file
54
55
 
55
56
  ========
56
57
  geoarray
@@ -56,7 +56,7 @@ master_doc = 'index'
56
56
 
57
57
  # General information about the project.
58
58
  project = u'geoarray'
59
- copyright = u"2017-2023, Daniel Scheffler"
59
+ copyright = u"2017–2025, Daniel Scheffler"
60
60
 
61
61
  # The version info for the project you're documenting, acts as replacement
62
62
  # for |version| and |release|, also used in various other places throughout
@@ -2,10 +2,10 @@
2
2
 
3
3
  # geoarray, A fast Python interface for image geodata - either on disk or in memory.
4
4
  #
5
- # Copyright (C) 2017-2023
6
- # - Daniel Scheffler (GFZ Potsdam, daniel.scheffler@gfz-potsdam.de)
7
- # - Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences Potsdam,
8
- # Germany (https://www.gfz-potsdam.de/)
5
+ # Copyright (C) 2017–2025
6
+ # - Daniel Scheffler (GFZ Potsdam, daniel.scheffler@gfz.de)
7
+ # - GFZ Helmholtz Centre for Geosciences,
8
+ # Germany (https://www.gfz.de/)
9
9
  #
10
10
  # This software was developed within the context of the GeoMultiSens project funded
11
11
  # by the German Federal Ministry of Education and Research
@@ -37,7 +37,7 @@ from .version import __version__, __versionalias__ # noqa (E402 + F401)
37
37
 
38
38
 
39
39
  __author__ = """Daniel Scheffler"""
40
- __email__ = 'danschef@gfz-potsdam.de'
40
+ __email__ = 'danschef@gfz.de'
41
41
  __all__ = ['__version__',
42
42
  '__versionalias__',
43
43
  '__author__',
@@ -2,10 +2,10 @@
2
2
 
3
3
  # geoarray, A fast Python interface for image geodata - either on disk or in memory.
4
4
  #
5
- # Copyright (C) 2017-2023
6
- # - Daniel Scheffler (GFZ Potsdam, daniel.scheffler@gfz-potsdam.de)
7
- # - Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences Potsdam,
8
- # Germany (https://www.gfz-potsdam.de/)
5
+ # Copyright (C) 2017–2025
6
+ # - Daniel Scheffler (GFZ Potsdam, daniel.scheffler@gfz.de)
7
+ # - GFZ Helmholtz Centre for Geosciences,
8
+ # Germany (https://www.gfz.de/)
9
9
  #
10
10
  # This software was developed within the context of the GeoMultiSens project funded
11
11
  # by the German Federal Ministry of Education and Research
@@ -856,7 +856,11 @@ class GeoArray(object):
856
856
 
857
857
  # copy over the band names
858
858
  if 'band_names' in self.metadata.band_meta and self.metadata.band_meta['band_names']:
859
- self.bandnames = self.metadata.band_meta['band_names']
859
+ try:
860
+ self.bandnames = self.metadata.band_meta['band_names']
861
+ except ValueError as e:
862
+ warnings.warn(f'Band names could not be set using the ones in the image metadata. '
863
+ f'Error was: {e}', RuntimeWarning)
860
864
 
861
865
  self._gdalDataset_meta_already_set = True
862
866
 
@@ -1343,7 +1347,7 @@ class GeoArray(object):
1343
1347
  # check availability of holoviews
1344
1348
  if interactive and not find_spec('holoviews'):
1345
1349
  warnings.warn("Interactive mode requires holoviews. Install it by running, e.g., "
1346
- "'conda install -c conda-forge holoviews'. Using non-interactive mode.")
1350
+ "'conda install -c conda-forge 'holoviews>1.12.7''. Using non-interactive mode.")
1347
1351
  interactive = False
1348
1352
 
1349
1353
  if interactive and image2plot.ndim == 3:
@@ -1992,7 +1996,7 @@ class GeoArray(object):
1992
1996
  (imXY[:, 0] >= self.columns) |\
1993
1997
  (imXY[:, 1] >= self.rows)
1994
1998
 
1995
- imYX = np.fliplr(np.array(imXY)).astype(np.int16)
1999
+ imYX = np.fliplr(np.array(imXY)).astype(np.int32)
1996
2000
 
1997
2001
  if imYX.size == 2: # only one coordinate pair
1998
2002
  Y, X = imYX[0].tolist()
@@ -2,10 +2,10 @@
2
2
 
3
3
  # geoarray, A fast Python interface for image geodata - either on disk or in memory.
4
4
  #
5
- # Copyright (C) 2017-2023
6
- # - Daniel Scheffler (GFZ Potsdam, daniel.scheffler@gfz-potsdam.de)
7
- # - Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences Potsdam,
8
- # Germany (https://www.gfz-potsdam.de/)
5
+ # Copyright (C) 2017–2025
6
+ # - Daniel Scheffler (GFZ Potsdam, daniel.scheffler@gfz.de)
7
+ # - GFZ Helmholtz Centre for Geosciences,
8
+ # Germany (https://www.gfz.de/)
9
9
  #
10
10
  # This software was developed within the context of the GeoMultiSens project funded
11
11
  # by the German Federal Ministry of Education and Research
@@ -2,10 +2,10 @@
2
2
 
3
3
  # geoarray, A fast Python interface for image geodata - either on disk or in memory.
4
4
  #
5
- # Copyright (C) 2017-2023
6
- # - Daniel Scheffler (GFZ Potsdam, daniel.scheffler@gfz-potsdam.de)
7
- # - Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences Potsdam,
8
- # Germany (https://www.gfz-potsdam.de/)
5
+ # Copyright (C) 2017–2025
6
+ # - Daniel Scheffler (GFZ Potsdam, daniel.scheffler@gfz.de)
7
+ # - GFZ Helmholtz Centre for Geosciences,
8
+ # Germany (https://www.gfz.de/)
9
9
  #
10
10
  # This software was developed within the context of the GeoMultiSens project funded
11
11
  # by the German Federal Ministry of Education and Research
@@ -2,10 +2,10 @@
2
2
 
3
3
  # geoarray, A fast Python interface for image geodata - either on disk or in memory.
4
4
  #
5
- # Copyright (C) 2017-2023
6
- # - Daniel Scheffler (GFZ Potsdam, daniel.scheffler@gfz-potsdam.de)
7
- # - Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences Potsdam,
8
- # Germany (https://www.gfz-potsdam.de/)
5
+ # Copyright (C) 2017–2025
6
+ # - Daniel Scheffler (GFZ Potsdam, daniel.scheffler@gfz.de)
7
+ # - GFZ Helmholtz Centre for Geosciences,
8
+ # Germany (https://www.gfz.de/)
9
9
  #
10
10
  # This software was developed within the context of the GeoMultiSens project funded
11
11
  # by the German Federal Ministry of Education and Research
@@ -1,9 +1,9 @@
1
1
  # geoarray, A fast Python interface for image geodata - either on disk or in memory.
2
2
  #
3
- # Copyright (C) 2017-2023
4
- # - Daniel Scheffler (GFZ Potsdam, daniel.scheffler@gfz-potsdam.de)
5
- # - Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences Potsdam,
6
- # Germany (https://www.gfz-potsdam.de/)
3
+ # Copyright (C) 2017–2025
4
+ # - Daniel Scheffler (GFZ Potsdam, daniel.scheffler@gfz.de)
5
+ # - GFZ Helmholtz Centre for Geosciences,
6
+ # Germany (https://www.gfz.de/)
7
7
  #
8
8
  # This software was developed within the context of the GeoMultiSens project funded
9
9
  # by the German Federal Ministry of Education and Research
@@ -22,5 +22,5 @@
22
22
  # limitations under the License.
23
23
 
24
24
 
25
- __version__ = '0.19.0'
26
- __versionalias__ = '20240826.01'
25
+ __version__ = '0.19.2'
26
+ __versionalias__ = '20250911.01'
@@ -1,9 +1,9 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: geoarray
3
- Version: 0.19.0
3
+ Version: 0.19.2
4
4
  Summary: Fast Python interface for geodata - either on disk or in memory
5
- Author-email: Daniel Scheffler <daniel.scheffler@gfz-potsdam.de>
6
- License: Apache-2.0
5
+ Author-email: Daniel Scheffler <daniel.scheffler@gfz.de>
6
+ License-Expression: Apache-2.0
7
7
  Project-URL: Source code, https://git.gfz-potsdam.de/danschef/geoarray
8
8
  Project-URL: Issue Tracker, https://git.gfz-potsdam.de/danschef/geoarray/-/issues
9
9
  Project-URL: Documentation, https://danschef.git-pages.gfz-potsdam.de/geoarray/doc/
@@ -11,7 +11,6 @@ Project-URL: Change log, https://git.gfz-potsdam.de/danschef/geoarray/-/blob/mai
11
11
  Keywords: geoarray,geoprocessing,gdal,numpy
12
12
  Classifier: Development Status :: 4 - Beta
13
13
  Classifier: Intended Audience :: Developers
14
- Classifier: License :: OSI Approved :: Apache Software License
15
14
  Classifier: Natural Language :: English
16
15
  Classifier: Programming Language :: Python :: 3.8
17
16
  Classifier: Programming Language :: Python :: 3.9
@@ -21,6 +20,7 @@ Classifier: Programming Language :: Python :: 3.12
21
20
  Requires-Python: >=3.8
22
21
  Description-Content-Type: text/x-rst
23
22
  License-File: LICENSE
23
+ License-File: AUTHORS.rst
24
24
  Requires-Dist: cartopy>=0.20
25
25
  Requires-Dist: dill
26
26
  Requires-Dist: gdal>=3.8.0
@@ -33,7 +33,7 @@ Requires-Dist: shapely
33
33
  Provides-Extra: interactive-plotting
34
34
  Requires-Dist: folium; extra == "interactive-plotting"
35
35
  Requires-Dist: geojson; extra == "interactive-plotting"
36
- Requires-Dist: holoviews; extra == "interactive-plotting"
36
+ Requires-Dist: holoviews>1.12.7; extra == "interactive-plotting"
37
37
  Provides-Extra: doc
38
38
  Requires-Dist: sphinx-argparse; extra == "doc"
39
39
  Requires-Dist: sphinx_rtd_theme; extra == "doc"
@@ -51,6 +51,7 @@ Provides-Extra: dev
51
51
  Requires-Dist: geoarray[test]; extra == "dev"
52
52
  Requires-Dist: geoarray[doc]; extra == "dev"
53
53
  Requires-Dist: geoarray[lint]; extra == "dev"
54
+ Dynamic: license-file
54
55
 
55
56
  ========
56
57
  geoarray
@@ -20,7 +20,7 @@ sphinx_rtd_theme
20
20
  [interactive_plotting]
21
21
  folium
22
22
  geojson
23
- holoviews
23
+ holoviews>1.12.7
24
24
 
25
25
  [lint]
26
26
  flake8
@@ -3,10 +3,10 @@
3
3
 
4
4
  # geoarray, A fast Python interface for image geodata - either on disk or in memory.
5
5
  #
6
- # Copyright (C) 2017-2023
7
- # - Daniel Scheffler (GFZ Potsdam, daniel.scheffler@gfz-potsdam.de)
8
- # - Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences Potsdam,
9
- # Germany (https://www.gfz-potsdam.de/)
6
+ # Copyright (C) 2017–2025
7
+ # - Daniel Scheffler (GFZ Potsdam, daniel.scheffler@gfz.de)
8
+ # - GFZ Helmholtz Centre for Geosciences,
9
+ # Germany (https://www.gfz.de/)
10
10
  #
11
11
  # This software was developed within the context of the GeoMultiSens project funded
12
12
  # by the German Federal Ministry of Education and Research
@@ -34,12 +34,12 @@ build-backend = "setuptools.build_meta"
34
34
  [project]
35
35
  name = "geoarray"
36
36
  description = "Fast Python interface for geodata - either on disk or in memory"
37
- authors = [{name = "Daniel Scheffler", email = "daniel.scheffler@gfz-potsdam.de"}]
38
- license = {text = "Apache-2.0"}
37
+ authors = [{name = "Daniel Scheffler", email = "daniel.scheffler@gfz.de"}]
38
+ license = "Apache-2.0"
39
+ license-files = ["LICEN[CS]E*", "AUTHORS.rst"]
39
40
  classifiers = [
40
41
  "Development Status :: 4 - Beta",
41
42
  "Intended Audience :: Developers",
42
- "License :: OSI Approved :: Apache Software License",
43
43
  "Natural Language :: English",
44
44
  "Programming Language :: Python :: 3.8",
45
45
  "Programming Language :: Python :: 3.9",
@@ -81,7 +81,7 @@ content-type = "text/x-rst"
81
81
  interactive_plotting = [
82
82
  "folium",
83
83
  "geojson",
84
- "holoviews",
84
+ "holoviews>1.12.7",
85
85
  ]
86
86
  doc = [
87
87
  "sphinx-argparse",
@@ -108,7 +108,6 @@ dev = [
108
108
  [tool.setuptools]
109
109
  zip-safe = false
110
110
  include-package-data = true
111
- license-files = ["LICENSE"]
112
111
 
113
112
  [tool.setuptools.packages.find]
114
113
  exclude = [
@@ -1,13 +0,0 @@
1
- =======
2
- Credits
3
- =======
4
-
5
- Development Lead
6
- ----------------
7
-
8
- * `Daniel Scheffler <https://www.gfz-potsdam.de/staff/daniel.scheffler/sec14/>`__ <danschef@gfz-potsdam.de>
9
-
10
- Contributors
11
- ------------
12
-
13
- * Jessica Palka <jessica.palka@gfz-potsdam.de>
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes