rioxarray 0.15.0__tar.gz → 0.15.1__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 (31) hide show
  1. {rioxarray-0.15.0 → rioxarray-0.15.1}/CONTRIBUTING.rst +1 -1
  2. {rioxarray-0.15.0/rioxarray.egg-info → rioxarray-0.15.1}/PKG-INFO +51 -4
  3. {rioxarray-0.15.0 → rioxarray-0.15.1}/pyproject.toml +1 -1
  4. {rioxarray-0.15.0 → rioxarray-0.15.1}/rioxarray/rioxarray.py +18 -15
  5. {rioxarray-0.15.0 → rioxarray-0.15.1/rioxarray.egg-info}/PKG-INFO +51 -4
  6. {rioxarray-0.15.0 → rioxarray-0.15.1}/rioxarray.egg-info/requires.txt +4 -4
  7. {rioxarray-0.15.0 → rioxarray-0.15.1}/setup.cfg +7 -7
  8. {rioxarray-0.15.0 → rioxarray-0.15.1}/AUTHORS.rst +0 -0
  9. {rioxarray-0.15.0 → rioxarray-0.15.1}/LICENSE +0 -0
  10. {rioxarray-0.15.0 → rioxarray-0.15.1}/LICENSE_datacube +0 -0
  11. {rioxarray-0.15.0 → rioxarray-0.15.1}/LICENSE_xarray +0 -0
  12. {rioxarray-0.15.0 → rioxarray-0.15.1}/MANIFEST.in +0 -0
  13. {rioxarray-0.15.0 → rioxarray-0.15.1}/README.rst +0 -0
  14. {rioxarray-0.15.0 → rioxarray-0.15.1}/rioxarray/__init__.py +0 -0
  15. {rioxarray-0.15.0 → rioxarray-0.15.1}/rioxarray/_io.py +0 -0
  16. {rioxarray-0.15.0 → rioxarray-0.15.1}/rioxarray/_options.py +0 -0
  17. {rioxarray-0.15.0 → rioxarray-0.15.1}/rioxarray/_show_versions.py +0 -0
  18. {rioxarray-0.15.0 → rioxarray-0.15.1}/rioxarray/crs.py +0 -0
  19. {rioxarray-0.15.0 → rioxarray-0.15.1}/rioxarray/exceptions.py +0 -0
  20. {rioxarray-0.15.0 → rioxarray-0.15.1}/rioxarray/merge.py +0 -0
  21. {rioxarray-0.15.0 → rioxarray-0.15.1}/rioxarray/py.typed +0 -0
  22. {rioxarray-0.15.0 → rioxarray-0.15.1}/rioxarray/raster_array.py +0 -0
  23. {rioxarray-0.15.0 → rioxarray-0.15.1}/rioxarray/raster_dataset.py +0 -0
  24. {rioxarray-0.15.0 → rioxarray-0.15.1}/rioxarray/raster_writer.py +0 -0
  25. {rioxarray-0.15.0 → rioxarray-0.15.1}/rioxarray/xarray_plugin.py +0 -0
  26. {rioxarray-0.15.0 → rioxarray-0.15.1}/rioxarray.egg-info/SOURCES.txt +0 -0
  27. {rioxarray-0.15.0 → rioxarray-0.15.1}/rioxarray.egg-info/dependency_links.txt +0 -0
  28. {rioxarray-0.15.0 → rioxarray-0.15.1}/rioxarray.egg-info/entry_points.txt +0 -0
  29. {rioxarray-0.15.0 → rioxarray-0.15.1}/rioxarray.egg-info/not-zip-safe +0 -0
  30. {rioxarray-0.15.0 → rioxarray-0.15.1}/rioxarray.egg-info/top_level.txt +0 -0
  31. {rioxarray-0.15.0 → rioxarray-0.15.1}/setup.py +0 -0
@@ -135,7 +135,7 @@ Before you submit a pull request, check that it meets these guidelines:
135
135
  2. If the pull request adds functionality, the docs should be updated. Put
136
136
  your new functionality into a function with a docstring, and add the
137
137
  feature to the list in README.rst.
138
- 3. The pull request should work for Python 3.9-3.11.
138
+ 3. The pull request should work for Python 3.10-3.12.
139
139
 
140
140
  Tips
141
141
  ----
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rioxarray
3
- Version: 0.15.0
3
+ Version: 0.15.1
4
4
  Summary: geospatial xarray extension powered by rasterio
5
5
  Home-page: https://github.com/corteva/rioxarray
6
6
  Download-URL: http://python.org/pypi/rioxarray
@@ -15,20 +15,67 @@ Classifier: License :: OSI Approved :: Apache Software License
15
15
  Classifier: Operating System :: OS Independent
16
16
  Classifier: Topic :: Scientific/Engineering :: GIS
17
17
  Classifier: Programming Language :: Python
18
- Classifier: Programming Language :: Python :: 3.9
19
18
  Classifier: Programming Language :: Python :: 3.10
20
19
  Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
21
  Classifier: Programming Language :: Python :: 3
22
22
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
23
23
  Classifier: Typing :: Typed
24
- Requires-Python: >=3.9
24
+ Requires-Python: >=3.10
25
25
  Description-Content-Type: text/x-rst
26
+ License-File: LICENSE
27
+ Requires-Dist: packaging
28
+ Requires-Dist: rasterio>=1.3
29
+ Requires-Dist: xarray>=2022.3.0
30
+ Requires-Dist: pyproj>=3.3
31
+ Requires-Dist: numpy>=1.23
26
32
  Provides-Extra: interp
33
+ Requires-Dist: scipy; extra == "interp"
27
34
  Provides-Extra: doc
35
+ Requires-Dist: sphinx-click; extra == "doc"
36
+ Requires-Dist: nbsphinx; extra == "doc"
37
+ Requires-Dist: sphinx_rtd_theme; extra == "doc"
28
38
  Provides-Extra: test
39
+ Requires-Dist: pytest>=3.6; extra == "test"
40
+ Requires-Dist: pytest-cov; extra == "test"
41
+ Requires-Dist: pytest-timeout; extra == "test"
42
+ Requires-Dist: dask; extra == "test"
43
+ Requires-Dist: netcdf4; extra == "test"
29
44
  Provides-Extra: dev
45
+ Requires-Dist: scipy; extra == "dev"
46
+ Requires-Dist: sphinx-click; extra == "dev"
47
+ Requires-Dist: nbsphinx; extra == "dev"
48
+ Requires-Dist: sphinx_rtd_theme; extra == "dev"
49
+ Requires-Dist: pytest>=3.6; extra == "dev"
50
+ Requires-Dist: pytest-cov; extra == "dev"
51
+ Requires-Dist: pytest-timeout; extra == "dev"
52
+ Requires-Dist: dask; extra == "dev"
53
+ Requires-Dist: netcdf4; extra == "dev"
54
+ Requires-Dist: pylint; extra == "dev"
55
+ Requires-Dist: mypy; extra == "dev"
56
+ Requires-Dist: pre-commit; extra == "dev"
30
57
  Provides-Extra: all
31
- License-File: LICENSE
58
+ Requires-Dist: scipy; extra == "all"
59
+ Requires-Dist: sphinx-click; extra == "all"
60
+ Requires-Dist: nbsphinx; extra == "all"
61
+ Requires-Dist: sphinx_rtd_theme; extra == "all"
62
+ Requires-Dist: pytest>=3.6; extra == "all"
63
+ Requires-Dist: pytest-cov; extra == "all"
64
+ Requires-Dist: pytest-timeout; extra == "all"
65
+ Requires-Dist: dask; extra == "all"
66
+ Requires-Dist: netcdf4; extra == "all"
67
+ Requires-Dist: scipy; extra == "all"
68
+ Requires-Dist: sphinx-click; extra == "all"
69
+ Requires-Dist: nbsphinx; extra == "all"
70
+ Requires-Dist: sphinx_rtd_theme; extra == "all"
71
+ Requires-Dist: pytest>=3.6; extra == "all"
72
+ Requires-Dist: pytest-cov; extra == "all"
73
+ Requires-Dist: pytest-timeout; extra == "all"
74
+ Requires-Dist: dask; extra == "all"
75
+ Requires-Dist: netcdf4; extra == "all"
76
+ Requires-Dist: pylint; extra == "all"
77
+ Requires-Dist: mypy; extra == "all"
78
+ Requires-Dist: pre-commit; extra == "all"
32
79
 
33
80
  ================
34
81
  rioxarray README
@@ -3,4 +3,4 @@
3
3
  requires = ["setuptools", "wheel"]
4
4
 
5
5
  [tool.black]
6
- target_version = ['py36']
6
+ target_version = ['py310']
@@ -14,6 +14,8 @@ import rasterio.warp
14
14
  import rasterio.windows
15
15
  import xarray
16
16
  from affine import Affine
17
+ from pyproj.aoi import AreaOfInterest
18
+ from pyproj.database import query_utm_crs_info
17
19
  from rasterio.control import GroundControlPoint
18
20
  from rasterio.crs import CRS
19
21
 
@@ -531,13 +533,6 @@ class XRasterBase:
531
533
  -------
532
534
  rasterio.crs.CRS
533
535
  """
534
- # pylint: disable=import-outside-toplevel
535
- try:
536
- from pyproj.aoi import AreaOfInterest
537
- from pyproj.database import query_utm_crs_info
538
- except ImportError:
539
- raise RuntimeError("pyproj 3+ required for estimate_utm_crs.") from None
540
-
541
536
  if self.crs is None:
542
537
  raise RuntimeError("crs must be set to estimate UTM CRS.")
543
538
 
@@ -1253,18 +1248,20 @@ class XRasterBase:
1253
1248
  except (KeyError, AttributeError):
1254
1249
  return None
1255
1250
 
1256
- gcps = [
1257
- GroundControlPoint(
1258
- x=gcp["geometry"]["coordinates"][0],
1259
- y=gcp["geometry"]["coordinates"][1],
1260
- z=gcp["geometry"]["coordinates"][2],
1251
+ def _parse_gcp(gcp) -> GroundControlPoint:
1252
+ x, y, *z = gcp["geometry"]["coordinates"]
1253
+ z = z[0] if z else None
1254
+ return GroundControlPoint(
1255
+ x=x,
1256
+ y=y,
1257
+ z=z,
1261
1258
  row=gcp["properties"]["row"],
1262
1259
  col=gcp["properties"]["col"],
1263
1260
  id=gcp["properties"]["id"],
1264
1261
  info=gcp["properties"]["info"],
1265
1262
  )
1266
- for gcp in geojson_gcps["features"]
1267
- ]
1263
+
1264
+ gcps = [_parse_gcp(gcp) for gcp in geojson_gcps["features"]]
1268
1265
  return gcps
1269
1266
 
1270
1267
 
@@ -1282,6 +1279,12 @@ def _convert_gcps_to_geojson(
1282
1279
  -------
1283
1280
  A FeatureCollection dict.
1284
1281
  """
1282
+
1283
+ def _gcp_coordinates(gcp):
1284
+ if gcp.z is None:
1285
+ return [gcp.x, gcp.y]
1286
+ return [gcp.x, gcp.y, gcp.z]
1287
+
1285
1288
  features = [
1286
1289
  {
1287
1290
  "type": "Feature",
@@ -1291,7 +1294,7 @@ def _convert_gcps_to_geojson(
1291
1294
  "row": gcp.row,
1292
1295
  "col": gcp.col,
1293
1296
  },
1294
- "geometry": {"type": "Point", "coordinates": [gcp.x, gcp.y, gcp.z]},
1297
+ "geometry": {"type": "Point", "coordinates": _gcp_coordinates(gcp)},
1295
1298
  }
1296
1299
  for gcp in gcps
1297
1300
  ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rioxarray
3
- Version: 0.15.0
3
+ Version: 0.15.1
4
4
  Summary: geospatial xarray extension powered by rasterio
5
5
  Home-page: https://github.com/corteva/rioxarray
6
6
  Download-URL: http://python.org/pypi/rioxarray
@@ -15,20 +15,67 @@ Classifier: License :: OSI Approved :: Apache Software License
15
15
  Classifier: Operating System :: OS Independent
16
16
  Classifier: Topic :: Scientific/Engineering :: GIS
17
17
  Classifier: Programming Language :: Python
18
- Classifier: Programming Language :: Python :: 3.9
19
18
  Classifier: Programming Language :: Python :: 3.10
20
19
  Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
21
  Classifier: Programming Language :: Python :: 3
22
22
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
23
23
  Classifier: Typing :: Typed
24
- Requires-Python: >=3.9
24
+ Requires-Python: >=3.10
25
25
  Description-Content-Type: text/x-rst
26
+ License-File: LICENSE
27
+ Requires-Dist: packaging
28
+ Requires-Dist: rasterio>=1.3
29
+ Requires-Dist: xarray>=2022.3.0
30
+ Requires-Dist: pyproj>=3.3
31
+ Requires-Dist: numpy>=1.23
26
32
  Provides-Extra: interp
33
+ Requires-Dist: scipy; extra == "interp"
27
34
  Provides-Extra: doc
35
+ Requires-Dist: sphinx-click; extra == "doc"
36
+ Requires-Dist: nbsphinx; extra == "doc"
37
+ Requires-Dist: sphinx_rtd_theme; extra == "doc"
28
38
  Provides-Extra: test
39
+ Requires-Dist: pytest>=3.6; extra == "test"
40
+ Requires-Dist: pytest-cov; extra == "test"
41
+ Requires-Dist: pytest-timeout; extra == "test"
42
+ Requires-Dist: dask; extra == "test"
43
+ Requires-Dist: netcdf4; extra == "test"
29
44
  Provides-Extra: dev
45
+ Requires-Dist: scipy; extra == "dev"
46
+ Requires-Dist: sphinx-click; extra == "dev"
47
+ Requires-Dist: nbsphinx; extra == "dev"
48
+ Requires-Dist: sphinx_rtd_theme; extra == "dev"
49
+ Requires-Dist: pytest>=3.6; extra == "dev"
50
+ Requires-Dist: pytest-cov; extra == "dev"
51
+ Requires-Dist: pytest-timeout; extra == "dev"
52
+ Requires-Dist: dask; extra == "dev"
53
+ Requires-Dist: netcdf4; extra == "dev"
54
+ Requires-Dist: pylint; extra == "dev"
55
+ Requires-Dist: mypy; extra == "dev"
56
+ Requires-Dist: pre-commit; extra == "dev"
30
57
  Provides-Extra: all
31
- License-File: LICENSE
58
+ Requires-Dist: scipy; extra == "all"
59
+ Requires-Dist: sphinx-click; extra == "all"
60
+ Requires-Dist: nbsphinx; extra == "all"
61
+ Requires-Dist: sphinx_rtd_theme; extra == "all"
62
+ Requires-Dist: pytest>=3.6; extra == "all"
63
+ Requires-Dist: pytest-cov; extra == "all"
64
+ Requires-Dist: pytest-timeout; extra == "all"
65
+ Requires-Dist: dask; extra == "all"
66
+ Requires-Dist: netcdf4; extra == "all"
67
+ Requires-Dist: scipy; extra == "all"
68
+ Requires-Dist: sphinx-click; extra == "all"
69
+ Requires-Dist: nbsphinx; extra == "all"
70
+ Requires-Dist: sphinx_rtd_theme; extra == "all"
71
+ Requires-Dist: pytest>=3.6; extra == "all"
72
+ Requires-Dist: pytest-cov; extra == "all"
73
+ Requires-Dist: pytest-timeout; extra == "all"
74
+ Requires-Dist: dask; extra == "all"
75
+ Requires-Dist: netcdf4; extra == "all"
76
+ Requires-Dist: pylint; extra == "all"
77
+ Requires-Dist: mypy; extra == "all"
78
+ Requires-Dist: pre-commit; extra == "all"
32
79
 
33
80
  ================
34
81
  rioxarray README
@@ -1,8 +1,8 @@
1
1
  packaging
2
- rasterio>=1.2
3
- xarray>=0.17
4
- pyproj>=2.2
5
- numpy>=1.21
2
+ rasterio>=1.3
3
+ xarray>=2022.3.0
4
+ pyproj>=3.3
5
+ numpy>=1.23
6
6
 
7
7
  [all]
8
8
  scipy
@@ -1,7 +1,7 @@
1
1
  [metadata]
2
2
  author = rioxarray Contributors
3
3
  name = rioxarray
4
- version = 0.15.0
4
+ version = 0.15.1
5
5
  description = geospatial xarray extension powered by rasterio
6
6
  keywords = rioxarray, xarray, rasterio
7
7
  long_description = file: README.rst
@@ -17,9 +17,9 @@ classifiers =
17
17
  Operating System :: OS Independent
18
18
  Topic :: Scientific/Engineering :: GIS
19
19
  Programming Language :: Python
20
- Programming Language :: Python :: 3.9
21
20
  Programming Language :: Python :: 3.10
22
21
  Programming Language :: Python :: 3.11
22
+ Programming Language :: Python :: 3.12
23
23
  Programming Language :: Python :: 3
24
24
  Topic :: Software Development :: Libraries :: Python Modules
25
25
  Typing :: Typed
@@ -30,13 +30,13 @@ download_url = http://python.org/pypi/rioxarray
30
30
  packages = find:
31
31
  zip_safe = False # https://mypy.readthedocs.io/en/stable/installed_packages.html
32
32
  include_package_data = True
33
- python_requires = >=3.9
33
+ python_requires = >=3.10
34
34
  install_requires =
35
35
  packaging
36
- rasterio>=1.2
37
- xarray>=0.17
38
- pyproj>=2.2
39
- numpy>=1.21
36
+ rasterio>=1.3
37
+ xarray>=2022.3.0
38
+ pyproj>=3.3
39
+ numpy>=1.23
40
40
 
41
41
  [options.package_data]
42
42
  rioxarray =
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