Closed SanderDevisscher closed 3 years ago
@SanderDevisscher : According to the World Register of Marine Species crayfish families are Astacidae, Cambaridae and Parastacidae https://www.gbif.org/species/8022 https://www.gbif.org/species/4479 https://www.gbif.org/species/8670
Be careful, some species have multiples names. It would be useful to regroup them (I create a new post "issue" for the synonyms and climate matching approach) I will be in holydays next week but RomainWilleput can help if needed.
Steps:
[x] Add taxonkeys origin user input with whitelist & all as options
[x] If taxonkeys origin == whitelist => implement white list logic https://github.com/inbo/riparias-prep/blob/f87406d4aa245dd3b1a4225025438701c8d03a65/scripts/crayfish_koppen_geiger_matching.Rmd#L53
[x] Else => implement families logic
keys2 <-c(8022, 4479, 8670)
[x] Since the download size will be huge I'll implement some logic to check for previous downloads
if(dir.exists("./Exoten/Chinese_wolhandkrab/Input/")){
filelist <- dir("./Exoten/Chinese_wolhandkrab/Input/",
pattern = ".zip",
full.names = TRUE)
filelist_info <- file.info(filelist)
filelist_info <- filelist_info %>%
filter(ctime == max(ctime, na.rm = TRUE))
if(nrow(filelist_info) == 1){
old_data <- rownames(filelist_info)
}else{
warning("Multiple zip-files are the same age. downloading new data")
old_data <- ""
}
}else{
old_data <- ""
}
&
rerun <- menu(choices = c("Yes", "No"),
title = "Download new data?",
graphics = TRUE)
if(old_data == "" || rerun == 1){ }
5_all_crayfish_cm
- branch
If you would provide me with a list of crayfish families (example https://www.gbif.org/species/8670) to consider with the corresponding taxonkeys I can do a gbif download based on this.
=> firstly however I would like to focus on the rework for the higher resolution raster files. I'll open a new issue for this analysis.
Originally posted by @SanderDevisscher in https://github.com/inbo/riparias-prep/issues/1#issuecomment-810311413