We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We've been producing these after-the-fact for downstream users, using code like the following:
## make annual standAgeMaps from cohortData lapply(2011:2100, function(year) { cohortData <- qs::qread(file = file.path(resultsDir, paste0("cohortData_", year, "_year", year, ".qs"))) cohortData[, bWeightedAge := floor(sum(age * B) / sum(B) / 10) * 10, .(pixelGroup)] cohortDataReduced <- cohortData[, c("pixelGroup", "bWeightedAge")] cohortDataReduced <- unique(cohortDataReduced) pixelGroupMap <- raster(file.path(resultsDir, paste0("pixelGroupMap_", year, "_year", year, ".tif"))) names(pixelGroupMap) <- "pixelGroup" standAgeMap <- rasterizeReduced(cohortDataReduced, pixelGroupMap, "bWeightedAge", mapCode = "pixelGroup") writeRaster(standAgeMap, filename = file.path(resultsDir, paste0("standAgeMap_", year, ".tif")), overwrite = TRUE) TRUE })
We should produce these during the simulation - possibly in this module, or in another Biomass_ module.
Biomass_
The text was updated successfully, but these errors were encountered:
standAgeMapGenerator() was added to LandR in v1.1.1
standAgeMapGenerator()
LandR
Sorry, something went wrong.
No branches or pull requests
We've been producing these after-the-fact for downstream users, using code like the following:
We should produce these during the simulation - possibly in this module, or in another
Biomass_
module.The text was updated successfully, but these errors were encountered: