PoisotLab / SimpleSDMLayers.jl

Simple layers for species distribution modeling and bioclimatic data
https://docs.ecojulia.org/SimpleSDMLayers.jl/stable/
MIT License
19 stars 2 forks source link

Bugs in the BIOCLIM example #80

Closed tpoisot closed 3 years ago

tpoisot commented 3 years ago
_pixel_score(x) = x >= 0.5 ? 2.0(1.0-x) : 2.0x

and then add

prediction = BIOCLIM(predictors, models)

rescale!(prediction, collect(0.0:0.05:1.0))

cutoff = broadcast(x -> x > 0.05, prediction)

plot(prediction, c=:lightgrey)
mask(cutoff, prediction) |> plot!
scatter!(longitudes(records), latitudes(records), lab="")