BrunaLab / bdffpRain

R package for rain gauge data from the Biological Dynamics of Forest Fragments Project.
MIT License
0 stars 0 forks source link

Focus this repo on precipitation data for wider BDFFP use #20

Closed Aariq closed 3 years ago

Aariq commented 3 years ago

Some of the code in this repo might make more sense in the HeliconiaDemography repo. For example, for the demography project, there is an appendix where I justify using published gridded data (Xavier et al.) by comparing to an imputed rain gauge dataset using only rain guages and the nearby EMBRAPA stations. But for the purposes of this repo, it is probably best to use many sources of data to inform the imputation, including Xavier et al.

So:

Aariq commented 3 years ago

Hey, @embruna, when you get a chance, can you change the name of this repo to something like BDFFP-rainfall? I want it to be just for the rainfall data product and I don't have permissions to change the name.

Aariq commented 3 years ago

What if I got rid of everything except the cleaned daily precipitation data?

To get monthly data and thus calculate SPI and SPEI I need to do imputation using other sources of data to inform the missing values. The code to download and wrangle all the various weather data sources to inform the imputation is a mess (some BASH code, som R code, requires environment variables and API tokens, etc.), and not very reproducible.

The package would then only have one exported object: the cleaned daily precipitation records Vignettes would include 1) the pointblank validation report and 2) a smaller example of imputation using one or two easy to download gridded data sources.

Aariq commented 3 years ago

working on this on the packages branch