Error with rio.pad_box() When Padding Multiple GeoTIFFs with Consistent Geometry #760
Unanswered
dimplejaiin
asked this question in
Q&A
Replies: 2 comments
-
Can a reproject match template based on your zarr store help? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Related #155 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am working on aligning multiple GeoTIFF datasets to ensure they have consistent dimensions based on a predefined bounding box. Initially, I attempted to use the padding option available in xarray, but due to limitations/requirements specific to my use case, I transitioned to using rioxarray's pad_box() method. Unfortunately, I've encountered an issue where the dataset dimensions seem to conflict when updating a Zarr store, despite the expectation that padding should result in consistent dimensions across datasets.
Error Message
Expected Behavior
The expectation is for the rio.pad_box() method to successfully pad the datasets, maintaining consistent x, y dimensions for both images when the bounding box is the same, and subsequently allowing updates to the Zarr store without encountering dimension size mismatch errors.
Steps to Reproduce
Code to Reproduce
Environment
Python version: 3.9
rioxarray: 0.13.3
rasterio: 1.3.8
xarray: 2022.12.0
GDAL: 3.6.4
Seeking Suggestions
Is there a recommended method for achieving this padding without encountering dimension size conflicts, especially in scenarios requiring updates to Zarr stores? Any insights or alternative approaches would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions