Skip to content

Create df with the mortality raster using moving window #22

Answered by andrewmarx
cliu229 asked this question in Q&A
Discussion options

You must be logged in to vote

My best guess is that the 990 in focalWeight(nightlight_zz, 990, 'rectangle') is way too big based on the unit size for the CRS of your raster. If you plot your raster and look at the axes, the 990 in your function is 990 times the distance of 1 unit on your axes. So first make sure your axes make sense, then pick a distance based on that.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@cliu229
Comment options

@cliu229
Comment options

@andrewmarx
Comment options

@cliu229
Comment options

Answer selected by cliu229
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants