Skip to content
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

Overlap error in plant height code when trying to remove soil from the mask #38

Open
tejasri19 opened this issue Nov 9, 2022 · 2 comments

Comments

@tejasri19
Copy link

CHM.S <- fieldMask(CHM.R, mask = EX1.RemSoil$mask) [1] "1 layers available" Error in .local(x, y, ...) : extents do not overlap

Help needed @filipematias23

@tejasri19 tejasri19 changed the title Overlap error while trying to find plant height Overlap error in plant height code when trying to remove soil from the mask Nov 9, 2022
@filipematias23
Copy link
Collaborator

Hey there,

Do you know if both images have the same projection?

Best,
Filipe

@tejasri19
Copy link
Author

tejasri19 commented Nov 17, 2022

Hey there,

Do you know if both images have the same projection?

Best, Filipe

@filipematias23
Here are the projections of both extent files:

` DSM0
class : RasterStack
dimensions : 805, 1263, 1016715, 4 (nrow, ncol, ncell, nlayers)
resolution : 0.09327783, 0.09327783 (x, y)
extent : 296557.3, 296675.1, 4888179, 4888255 (xmin, xmax, ymin, ymax)
crs : +proj=utm +zone=16 +datum=WGS84 +units=m +no_defs
names : new_DSM0.1, new_DSM0.2, new_DSM0.3, new_DSM0.4
min values : 0, 0, 0, 0
max values : 255, 255, 255, 255

DSM1.C
class : RasterStack
dimensions : 668, 177, 118236, 4 (nrow, ncol, ncell, nlayers)
resolution : 0.09327783, 0.09327783 (x, y)
extent : 296607, 296623.5, 4888185, 4888247 (xmin, xmax, ymin, ymax)
crs : +proj=utm +zone=16 +datum=WGS84 +units=m +no_defs
names : new_DSM1.1, new_DSM1.2, new_DSM1.3, new_DSM1.4
min values : 0, 0, 0, 255
max values : 255, 255, 255, 255 `

We can observe that extent values do not match.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants