trias-project / occ-cube-alien

🗺 Occurrence cubes for non-native taxa in Belgium and Europe
MIT License
2 stars 2 forks source link

Assign grid belgium #6

Closed damianooldoni closed 5 years ago

damianooldoni commented 5 years ago

This PR adds pipeline assign_grid.Rmd to ./src/belgium/. In this pipeline:

  1. Connection to database created in pipeline create_db.Rmd is established
  2. latitude, longitude and coordinate uncertainty are loaded in memory
  3. Default uncertainty 1000 meter is assigned to occurrences without uncertainty (value written to db as well)
  4. The occurrence coordinates are transformed to Lambert (CRS of Belgian grid)
  5. The occurrences are assigned randomly in the circle with radius equal to uncertainty
  6. The grid cell where the occurrence falls in found and saved in column eea_cell_code
  7. Column in 6. is written in database
  8. Preview
  9. Connection to database closed.

IMPORTANT: if you still didn't start to review PR #5 , please ignore it as you can review this one and get two pipelines at the price of one :+1:

peterdesmet commented 5 years ago

Was able to run create_db.Rmd successfully.

peterdesmet commented 5 years ago

And assign_grid.Rmd as well.