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

Add support for overlapping satellite CSV regions #46

Closed
johnbradley opened this issue Jul 11, 2023 · 2 comments · Fixed by #49
Closed

Add support for overlapping satellite CSV regions #46

johnbradley opened this issue Jul 11, 2023 · 2 comments · Fixed by #49
Assignees

Comments

@johnbradley
Copy link
Collaborator

Satellite CSV data can now be joined with iNaturalist observations (see #44). The satellite data may contain overlapping regions. This can result in multiple regions being matched for a single iNaturalist observation. When this occurs choose the region who's center is the closest to the observation lat/long.

@johnbradley johnbradley self-assigned this Jul 11, 2023
johnbradley added a commit that referenced this issue Jul 11, 2023
When joining RGB or Landcoverage satellite data with iNaturalist
observations and multiple regions are found return the region
that has the closest centroid.

Fixes #46
johnbradley added a commit that referenced this issue Jul 11, 2023
When joining RGB or Landcoverage satellite data with iNaturalist
observations and multiple regions are found return the region
that has the closest centroid.

Fixes #46
@johnbradley
Copy link
Collaborator Author

In a meeting today a change was requested for this issue. Instead of finding the satellite region containing the observation find the satellite region with the closest centroid. Additional add two new columns to the resulting CSV:

  • sat_in column with values of 1 or 0 for if the observation is within the satellite region
  • sat_distance distance the observation is from the centroid of the matching satellite region

@johnbradley
Copy link
Collaborator Author

We should also add a message on the fetch-observations screen explaining that the RGB/Landcover checkboxes are only meant for QUEST 2023.
I slightly tweaked a suggestion by @egrace479 for this message and came up with:

Note the RGB and landcover satellite is specific to the Princeton, NJ 
area, as it was developed for QUEST 2023.

johnbradley added a commit that referenced this issue Jul 12, 2023
When joining RGB or Landcoverage satellite data with iNaturalist
observations found return the region that has the closest centroid.
Include a columns for for `in` and `distance. `in` will be either
0 or 1. `distance` will be the distance from the lat/long point
to the center of the closest satellite region.

Fixes #46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant