load CRUCL data - #132
Open
vullioud wants to merge 37 commits into
Open
Conversation
courtiol
reviewed
Dec 3, 2020
courtiol
reviewed
Dec 3, 2020
courtiol
reviewed
Dec 3, 2020
courtiol
reviewed
Dec 3, 2020
courtiol
reviewed
Dec 3, 2020
courtiol
reviewed
Dec 3, 2020
courtiol
reviewed
Dec 3, 2020
courtiol
reviewed
Dec 3, 2020
courtiol
reviewed
Dec 3, 2020
|
|
||
| ## need different way for rasterlayer and raster brick | ||
| data_points <- lapply(raster, function(x) { | ||
| if(raster::nlayers(x) < 2) { |
courtiol
reviewed
Dec 3, 2020
courtiol
reviewed
Dec 3, 2020
courtiol
reviewed
Dec 3, 2020
|
|
||
| ## Second if one value per cell per month | ||
| } else if (split_by == "month") { | ||
| layer <- data$month |
Owner
There was a problem hiding this comment.
Probably not needed, use data$month instead
courtiol
reviewed
Dec 3, 2020
courtiol
reviewed
Dec 3, 2020
courtiol
reviewed
Dec 3, 2020
Co-authored-by: Alexandre Courtiol <alexandre.courtiol@gmail.com>
Co-authored-by: Alexandre Courtiol <alexandre.courtiol@gmail.com>
Co-authored-by: Alexandre Courtiol <alexandre.courtiol@gmail.com>
Co-authored-by: Alexandre Courtiol <alexandre.courtiol@gmail.com>
Co-authored-by: Alexandre Courtiol <alexandre.courtiol@gmail.com>
Co-authored-by: Alexandre Courtiol <alexandre.courtiol@gmail.com>
Co-authored-by: Alexandre Courtiol <alexandre.courtiol@gmail.com>
Co-authored-by: Alexandre Courtiol <alexandre.courtiol@gmail.com>
Co-authored-by: Alexandre Courtiol <alexandre.courtiol@gmail.com>
Co-authored-by: Alexandre Courtiol <alexandre.courtiol@gmail.com>
Co-authored-by: Alexandre Courtiol <alexandre.courtiol@gmail.com>
Simplify code Co-authored-by: Alexandre Courtiol <alexandre.courtiol@gmail.com>
courtiol
reviewed
Dec 13, 2020
| #' GNIPDataDEagg <- prepsources(data = GNIPDataDE) | ||
| #' ## Create a processed dataset for Germany with tmp and dtr | ||
| #' GNIPDataDEagg <- prepsources(data = GNIPDataDE, | ||
| #' data_needed = list(tmp =TRUE, dtr = TRUE)) |
Owner
There was a problem hiding this comment.
Suggested change
| #' data_needed = list(tmp =TRUE, dtr = TRUE)) | |
| #' data_needed = list(tmp = TRUE, dtr = TRUE)) |
courtiol
reviewed
Dec 13, 2020
| #' GNIPDataDEyearly <- prepsources(data = GNIPDataDE, | ||
| #' split_by = "year") | ||
| #' split_by = "year", | ||
| #' data_needed = list(tmp =TRUE, dtr = TRUE)) |
Owner
There was a problem hiding this comment.
Suggested change
| #' data_needed = list(tmp =TRUE, dtr = TRUE)) | |
| #' data_needed = list(tmp = TRUE, dtr = TRUE)) |
courtiol
reviewed
Dec 13, 2020
| #' month = 5:8, | ||
| #' year = 1995:1996) | ||
| #' year = 1995:1996, | ||
| #' data_needed = list(tmp =TRUE, dtr = TRUE)) |
Owner
There was a problem hiding this comment.
Suggested change
| #' data_needed = list(tmp =TRUE, dtr = TRUE)) | |
| #' data_needed = list(tmp = TRUE, dtr = TRUE)) |
courtiol
reviewed
Dec 13, 2020
| #' prop_random = 0.9, | ||
| #' random_level = "obs") | ||
| #' random_level = "obs", | ||
| #' data_needed = list(tmp =TRUE, dtr = TRUE)) |
Owner
There was a problem hiding this comment.
Suggested change
| #' data_needed = list(tmp =TRUE, dtr = TRUE)) | |
| #' data_needed = list(tmp = TRUE, dtr = TRUE)) |
courtiol
reviewed
Dec 13, 2020
| #' prop_random = 0.5, | ||
| #' random_level = "source") | ||
| #' random_level = "source", | ||
| #' data_needed = list(tmp =TRUE, dtr = TRUE)) |
Owner
There was a problem hiding this comment.
Suggested change
| #' data_needed = list(tmp =TRUE, dtr = TRUE)) | |
| #' data_needed = list(tmp = TRUE, dtr = TRUE)) |
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.
a function to load CRUCL data. Return the extended dataset and a list of raster