rioxarray 0.15.6__tar.gz → 0.15.7__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.
- {rioxarray-0.15.6 → rioxarray-0.15.7}/AUTHORS.rst +1 -0
- {rioxarray-0.15.6/rioxarray.egg-info → rioxarray-0.15.7}/PKG-INFO +1 -1
- {rioxarray-0.15.6 → rioxarray-0.15.7}/pyproject.toml +1 -1
- {rioxarray-0.15.6 → rioxarray-0.15.7}/rioxarray/rioxarray.py +13 -6
- {rioxarray-0.15.6 → rioxarray-0.15.7/rioxarray.egg-info}/PKG-INFO +1 -1
- {rioxarray-0.15.6 → rioxarray-0.15.7}/CONTRIBUTING.rst +0 -0
- {rioxarray-0.15.6 → rioxarray-0.15.7}/LICENSE +0 -0
- {rioxarray-0.15.6 → rioxarray-0.15.7}/LICENSE_datacube +0 -0
- {rioxarray-0.15.6 → rioxarray-0.15.7}/LICENSE_xarray +0 -0
- {rioxarray-0.15.6 → rioxarray-0.15.7}/MANIFEST.in +0 -0
- {rioxarray-0.15.6 → rioxarray-0.15.7}/README.rst +0 -0
- {rioxarray-0.15.6 → rioxarray-0.15.7}/rioxarray/__init__.py +0 -0
- {rioxarray-0.15.6 → rioxarray-0.15.7}/rioxarray/_io.py +0 -0
- {rioxarray-0.15.6 → rioxarray-0.15.7}/rioxarray/_options.py +0 -0
- {rioxarray-0.15.6 → rioxarray-0.15.7}/rioxarray/_show_versions.py +0 -0
- {rioxarray-0.15.6 → rioxarray-0.15.7}/rioxarray/crs.py +0 -0
- {rioxarray-0.15.6 → rioxarray-0.15.7}/rioxarray/exceptions.py +0 -0
- {rioxarray-0.15.6 → rioxarray-0.15.7}/rioxarray/merge.py +0 -0
- {rioxarray-0.15.6 → rioxarray-0.15.7}/rioxarray/py.typed +0 -0
- {rioxarray-0.15.6 → rioxarray-0.15.7}/rioxarray/raster_array.py +0 -0
- {rioxarray-0.15.6 → rioxarray-0.15.7}/rioxarray/raster_dataset.py +0 -0
- {rioxarray-0.15.6 → rioxarray-0.15.7}/rioxarray/raster_writer.py +0 -0
- {rioxarray-0.15.6 → rioxarray-0.15.7}/rioxarray/xarray_plugin.py +0 -0
- {rioxarray-0.15.6 → rioxarray-0.15.7}/rioxarray.egg-info/SOURCES.txt +0 -0
- {rioxarray-0.15.6 → rioxarray-0.15.7}/rioxarray.egg-info/dependency_links.txt +0 -0
- {rioxarray-0.15.6 → rioxarray-0.15.7}/rioxarray.egg-info/entry_points.txt +0 -0
- {rioxarray-0.15.6 → rioxarray-0.15.7}/rioxarray.egg-info/requires.txt +0 -0
- {rioxarray-0.15.6 → rioxarray-0.15.7}/rioxarray.egg-info/top_level.txt +0 -0
- {rioxarray-0.15.6 → rioxarray-0.15.7}/setup.cfg +0 -0
- {rioxarray-0.15.6 → rioxarray-0.15.7}/setup.py +0 -0
|
@@ -59,6 +59,7 @@ Thanks goes to these wonderful people (`emoji key <https://allcontributors.org/d
|
|
|
59
59
|
<tr>
|
|
60
60
|
<td align="center"><a href="https://github.com/xaviernogueira"><img src="https://avatars.githubusercontent.com/u/58796351?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Xavier Nogueira</b></sub></a><br /><a href="https://github.com/corteva/rioxarray/issues?q=author%3Axaviernogueira" title="Bug reports">🐛</a></td>
|
|
61
61
|
<td align="center"><a href="https://github.com/valanm22"><img src="https://avatars.githubusercontent.com/u/84893551?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Valan Baptist Mathuranayagam</b></sub></a><br /><a href="https://github.com/corteva/rioxarray/commits?author=valanm22" title="Documentation">📖</a></td>
|
|
62
|
+
<td align="center"><a href="https://github.com/peterm790"><img src="https://avatars.githubusercontent.com/u/52179978?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Peter Marsh</b></sub></a><br /><a href="https://github.com/corteva/rioxarray/commits?author=peterm790" title="Code">💻</a> <a href="https://github.com/corteva/rioxarray/commits?author=peterm790" title="Tests">⚠️</a></td>
|
|
62
63
|
</tr>
|
|
63
64
|
</table>
|
|
64
65
|
|
|
@@ -435,7 +435,7 @@ class XRasterBase:
|
|
|
435
435
|
new_attrs.pop("grid_mapping", None)
|
|
436
436
|
data_obj[var].rio.update_encoding(
|
|
437
437
|
{"grid_mapping": grid_mapping_name}, inplace=True
|
|
438
|
-
).rio.
|
|
438
|
+
).rio.set_attrs(new_attrs, inplace=True).rio.set_spatial_dims(
|
|
439
439
|
x_dim=x_dim, y_dim=y_dim, inplace=True
|
|
440
440
|
)
|
|
441
441
|
# remove grid_mapping from attributes if it exists
|
|
@@ -444,7 +444,7 @@ class XRasterBase:
|
|
|
444
444
|
new_attrs.pop("grid_mapping", None)
|
|
445
445
|
return data_obj.rio.update_encoding(
|
|
446
446
|
{"grid_mapping": grid_mapping_name}, inplace=True
|
|
447
|
-
).rio.
|
|
447
|
+
).rio.set_attrs(new_attrs, inplace=True)
|
|
448
448
|
|
|
449
449
|
def write_crs(
|
|
450
450
|
self,
|
|
@@ -1235,11 +1235,18 @@ class XRasterBase:
|
|
|
1235
1235
|
)
|
|
1236
1236
|
data_obj = self._get_obj(inplace=True)
|
|
1237
1237
|
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1238
|
+
if gcp_crs:
|
|
1239
|
+
data_obj = data_obj.rio.write_crs(
|
|
1240
|
+
gcp_crs, grid_mapping_name=grid_mapping_name, inplace=inplace
|
|
1241
|
+
)
|
|
1242
|
+
try:
|
|
1243
|
+
grid_map_attrs = data_obj.coords[grid_mapping_name].attrs.copy()
|
|
1244
|
+
except KeyError:
|
|
1245
|
+
data_obj.coords[grid_mapping_name] = xarray.Variable((), 0)
|
|
1246
|
+
grid_map_attrs = data_obj.coords[grid_mapping_name].attrs.copy()
|
|
1241
1247
|
geojson_gcps = _convert_gcps_to_geojson(gcps)
|
|
1242
|
-
|
|
1248
|
+
grid_map_attrs["gcps"] = json.dumps(geojson_gcps)
|
|
1249
|
+
data_obj.coords[grid_mapping_name].rio.set_attrs(grid_map_attrs, inplace=True)
|
|
1243
1250
|
self._gcps = list(gcps)
|
|
1244
1251
|
return data_obj
|
|
1245
1252
|
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|