DO NOT MERGE: Match pixels, but offset in time (for ex-ante forecasting of additionality)#115
Open
abbyevewilliams wants to merge 22 commits intomainfrom
Open
DO NOT MERGE: Match pixels, but offset in time (for ex-ante forecasting of additionality)#115abbyevewilliams wants to merge 22 commits intomainfrom
abbyevewilliams wants to merge 22 commits intomainfrom
Conversation
Removed the problematic lines for ecoregion and access
Uncommented lines needed for ecoregion and access
…85-ex-ante-offset
Pick up changes to slope calculation
Fix Issue #121: force layer to disk before saving.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The idea for this very experimental branch is to create a set of matched pixels which represents the project, but offset in time. This is useful for making ex-ante predictions of deforestation for projects which haven't yet started.
I've tried to match the deforestation characteristics (LUCs and CPCs) of the project at t0 to those of the matched pixels at t-10. So if a project is 95% forested at t0 (now), we create a set of matched pixels which was 95% forested at t-10 (10 years ago). We can then measure deforestation in the matched pixels in the past 10 years to get a sense of what the next 10 years are likely to be like for the project. I've done some slightly janky renaming of columns in order to achieve this.
Here's a sketch which hopefully makes more sense:
The additionality output won't mean anything here but the resulting pairs are quite useful for further analyses.
In keeping with the format of the branch
aew85-evaluationsI have added a new folder,evaluations, which containsex_ante_evaluation_template.Rmdas well as the scripts called by the R markdown file and a methods diagram which gets knitted into the final output.scripts/tmfpython.shhas been updated to match. This allows you to run the whole branch and knit an ex-ante report in one go.--- There are many, many places where the code could be improved!!! ---