BioDT / uc-ces

Modelling code for cultural ecosystem services pDT within BioDT
https://wiki.eduuni.fi/display/cscRDIcollaboration/4.1.1.2.1+Cultural+Ecosystem+Services
MIT License
2 stars 0 forks source link

GBIF download data script #6

Closed simonrolph closed 1 year ago

simonrolph commented 1 year ago

We need R script, for each of the target species,:

  1. Checks how many records are available on GBIF and compares that to the number of records that the model was last rerun
  2. If that number is different then downloads the data (which will prompt model rerun)
  3. Generate citation via GBIF

Prototype here: https://github.com/simonrolph/sdm-targets-pipeline/blob/main/R/1_gbif_refresh.R

simonrolph commented 1 year ago

Current implementation pulls data from api as and when needed rather than building a local cache - more traffic to API but simplest implementation for now. Possibly to revisit when data demands are clearer.