Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distance to observations for background points #206

Closed
tpoisot opened this issue Oct 13, 2023 · 0 comments · Fixed by #207
Closed

Distance to observations for background points #206

tpoisot opened this issue Oct 13, 2023 · 0 comments · Fixed by #207
Assignees

Comments

@tpoisot
Copy link
Member

tpoisot commented Oct 13, 2023

This works

presences = replace(presence_layer, false => nothing)
points = keys(presences)

D = similar(temperature)
Threads.@threads for k in keys(D)
    dfunc = SpeciesDistributionToolkit.Fauxcurrences._distancefunction
    D[k] = minimum([dfunc(k, ko) for ko in points])
end

but needs to deal with #194 first + expand the methods to sample a little

@tpoisot tpoisot self-assigned this Oct 13, 2023
tpoisot added a commit that referenced this issue Oct 13, 2023
tpoisot added a commit that referenced this issue Oct 14, 2023
tpoisot added a commit that referenced this issue Oct 14, 2023
tpoisot added a commit that referenced this issue Oct 14, 2023
* Distance to observations for background points
Fixes #206

* add DistanceToEvent background

* Distance to observations for background points
Fixes #206

* doc update with lower spatial res

* doc examples updated

* cleanup figure

* semver: v0.0.9

* chore: remove old file

* dependencies(doc): remove GeoMakie (no need)

* doc: update mask/mask!

* doc?: build with warnings temporarily

* doc?: prepare the documentation cleanup

* Distance to observations for background points
Fixes #206
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging a pull request may close this issue.

1 participant