b-cubed-eu / gcube

Simulation framework for biodiversity data cubes
https://b-cubed-eu.github.io/gcube/
Other
2 stars 2 forks source link

Test warning in `grid_designation()` #43

Closed PietrH closed 4 months ago

PietrH commented 7 months ago
Warning (test-grid_designation.R:245:3): no minimal coordinate uncertainty for empty grid cells
No column `coordinateUncertaintyInMeters` present! Assuming no uncertainty around observations.
Backtrace:
    ▆
 1. └─simcuber::grid_designation(observations_sf1, grid = grid_df1) at test-grid_designation.R:245:3
 2.   └─simcuber::sample_from_uniform_circle(observations, seed) at simcuber/R/grid_designation.R:199:5
 3.     └─cli::cli_warn(...) at simcuber/R/sample_from_uniform_circle.R:93:5

Warning (test-grid_designation.R:247:3): no minimal coordinate uncertainty for empty grid cells
No column `coordinateUncertaintyInMeters` present! Assuming no uncertainty around observations.
Backtrace:
    ▆
 1. └─simcuber::grid_designation(...) at test-grid_designation.R:247:3
 2.   └─simcuber::sample_from_binormal_circle(observations, p_norm, seed) at simcuber/R/grid_designation.R:201:5
 3.     └─cli::cli_warn(...) at simcuber/R/sample_from_binormal_circle.R:132:5
────────────────────────────────────────────────────────────────────────────────
✔ |         32 | sample_from_binormal_circle                                    
✔ |         26 | sample_from_uniform_circle                                     
✔ |          1 | sample_observations                                            
✔ |          1 | simulate_occurrences                                           
✔ |         11 | simulate_timeseries