ABbiodiversity / cure4insect

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

Veg models predict in the S when species is not there #23

Closed psolymos closed 6 years ago

psolymos commented 6 years ago
psolymos commented 6 years ago

Possible solution, that relates to some other issues with multi-species aggregate results:

psolymos commented 6 years ago

Using the new functionality from #24 we can do the following:

  1. calculate SI
  2. assess abund < limit threshold at the NSRxLUF level in the whole province and record in a NSRxLUF x SPP matrix as 0/1
  3. make a 0/1 raster and multiply it with SI (it will get 0 where species does not count)
  4. increment final raster with new species values
  5. at the end, use the matched 0/1 matrix rowSums as denominator for SI average
psolymos commented 6 years ago

The N/S non-prediction issue needs to be dealt with at early stages, providing NA instead of 0 in loaded species data, and masked in rasters as well.