dlab-berkeley / R-Geospatial-Fundamentals-Legacy

This is the repository for D-Lab's Geospatial Fundamentals in R with sf workshop.
Other
53 stars 18 forks source link

Define reclassification matrix #36

Open CheFusi opened 1 year ago

CheFusi commented 1 year ago

The whole matrix below is quite challenging to follow. It's unclear the traslation that is happen. The notes attempt to help but I think they could be more explicit.

Note: by default, the ranges dont include left val, but include right

reclass_vec <- c(0, 20, NA, # water will be set to NA (i.e. 'left out' of our analysis) 20, 21, 1, # we'll treat developed open space as greenspace,

based on the NLCD description

            21, 30, 0,  # developed and hardscape will be set to 0s
            30, 31, NA, 
            31, Inf, 1) # greenspace will have 1s
CheFusi commented 1 year ago

It's clear if the actual image of the legend is embedded into the rmd file.

https://www.mrlc.gov/data/legends/national-land-cover-database-2011-nlcd2011-legend