-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
resample misses some pixels #1651
Comments
This works as expected for me with the CRAN version of "terra" on windows.
|
It also works as expected with the development version on Ubuntu 24.04.1 LTS with
So perhaps it is a matter of the GDAL version. |
thank you
I will try updating all packages.
…On Mon, Nov 25, 2024 at 9:40 PM Robert Hijmans ***@***.***> wrote:
It also works as expected with the development version on Ubuntu 24.04.1
LTS with
gdal(lib="all")
# gdal proj geos
#"3.9.3" "9.4.1" "3.12.2"
So perhaps it is a matter of the GDAL version.
—
Reply to this email directly, view it on GitHub
<#1651 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGGQELPAQNMRN7OGVQR7TXL2CPNQNAVCNFSM6AAAAABSOXVMCCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJZGUZDQMZSG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello
I am using terra to reproject and combine several small rasters (+200). The code I created using terra worked mostly fine, but then I noticed gaps when merging some tiles (the versions of the installed packages that I'm using are listed below).
The code below downloads a tile from the Canadian DEM and reprojects and resample it (for simplicity, the resampling just estimates the total number of pixel). The original raster is in ~80x80m and the resampling transforms it into 1x1km in a UTM coordinates. After resampling, the code creates a figure showing the mismatch (pasted below). In the figure, the dashed red lines are the left and top boundary of the coarse raster. Notice how the Northern section of the 80x80m raster is not transformed, staying as NA values (hence transparent) in the coarse resolution raster.
(a similar problem occurs in other raster files, but the missing section could be the bottom row, instead of the top one, so this is just an example).
Thank you for your help.
Carlos Alberto
This is the current installation (they are the latest available when I try installing them in my Ubuntu 20.04 computer):
The text was updated successfully, but these errors were encountered: