iobis / obistools

Tools for data enhancement and quality control
https://iobis.github.io/obistools
Other
25 stars 6 forks source link

depth check issue #43

Closed pieterprovoost closed 6 years ago

pieterprovoost commented 7 years ago

What's up with point 5? Should be ok?

library(obistools)
library(robis)

pol <- occurrence("Polychaeta", geometry = "POLYGON ((6.50391 54.59753, 6.45996 53.14677, 8.26172 53.17312, 8.08594 54.54658, 6.50391 54.59753))")
problems <- check_depth(pol[1:1500,], depthmargin = 10)
bathymetry <- lookup_xy(problems, shoredistance = FALSE, grids = TRUE, areas = FALSE)$bathymetry

rbind(
  problems$minimumDepthInMeters,
  problems$maximumDepthInMeters,
  problems$depth,
  bathymetry
)
            [,1] [,2] [,3] [,4] [,5] [,6]
           448.0   51   73  159 18.1 19.0
           448.0   51   73  159 15.1 19.0
           448.0   51   73  159 16.6 19.0
bathymetry  12.2    5   11   17 18.4  1.4
samuelbosch commented 6 years ago

Point 5 is not ok because minimumDepthInMeters > maximumDepthInMeters.