using reproject_match to resample small GSD to large GSD in small AOI #248
Unanswered
joemcglinchy
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I see dask in your errors. Unfortunately reproject and clip do not currently support dask (#119). |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I have a use case where i'm trying to use
reproject_match
to resample a dataset with a small GSD (1 meter) to a larger GSD (landsat 30m, sentinel 10m), within a small AOI. I'm leverage theclip
operator on both datasets, loaded in full as xarray DataArrays, before callingreproject_match
on the small GSD dataset. I've included a repro case, with all files, on google drive here: https://drive.google.com/drive/folders/1O7xAL0uGk799WqZFqsFqGeAJjCnqSYTy?usp=sharingThe Landsat DataArray is quite small, 2x2 pixels. However, the result of reprojecting the smaller GSD dataset to match the Landsat dataset has all values equal to -9999.0, so I'm wondering if there is some kind of mismatch, either in the band coordinate labels or the spatial reference information that is causing trouble behind the scenes. The smaller GSD dataset is coming from an H5 file, so i'm constructing the DataArray 'from scratch', so to speak, and defining its CRS with the
write_crs
method.A different problem is surfacing when trying to do the same with the Sentinel2 DataArray. I'm receiving a memory error, which I might expect, but the error traceback says it is trying to allocate an array with dimensions that seem odd to me at first glance. Traceback below.
Can anyone offer thoughts to what may be happening here?
Beta Was this translation helpful? Give feedback.
All reactions