VeruGHub / easyclimate

Easy access to high-resolution daily climate data for Europe
https://verughub.github.io/easyclimate/
GNU General Public License v3.0
46 stars 1 forks source link

Remove option to summarise values per polygon #19

Closed Pakillo closed 3 years ago

Pakillo commented 3 years ago

terra::extract allows a 'fun' argument to summarise values per polygon (eg. mean, min, etc). This was implemented in easyclimate, but we now think it's better to remove that possibility from the user to avoid the problem of large negative values used as NA in the original rasters

Pakillo commented 3 years ago

Related to this. Change value to be considered as NA from -10000 to maybe -9000? This line: https://github.com/VeruGHub/easyclimate/blob/99d94cf7caa868be2a5993d0141128cea940fdcf/R/get_daily_climate.R#L210