ABbiodiversity / cure4insect

Custom Reporting for Intactness and Sector Effects
https://abbiodiversity.github.io/cure4insect/
Other
4 stars 2 forks source link

Geospatial bugs found #18

Closed psolymos closed 6 years ago

psolymos commented 6 years ago

1. Need to alert user when one of the N/S rasters is missing, like in "CanadaLynx" (N only):

> prmat2 <- predict_mat(object, xy, mveg/rowSums(mveg), msoil/rowSums(msoil))
Error in (function (classes, fdef, mtable)  : 
  unable to find an inherited method for function ‘extract’ for signature ‘"NULL", "SpatialPoints"’
In addition: Warning message:
In .check(as.factor(colnames(soil)), names(object$csoil)) :
  as.factor(colnames(soil)) had unmatched levels: NA's introduced

2. make_multispecies_map("intactness") is messing up clipping, need to plot sequentially to trubleshoot (richness, intactness, crop T/F etc).