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

map_dep() by locationID rather than deploymentID? #354

Open
Rafnuss opened this issue Dec 29, 2024 · 3 comments
Open

map_dep() by locationID rather than deploymentID? #354

Rafnuss opened this issue Dec 29, 2024 · 3 comments

Comments

@Rafnuss
Copy link
Collaborator

Rafnuss commented Dec 29, 2024

In my dataset, I have multiple deployments at the same location. Some feature (such as n_species) would look a lot better if the plot was by location rather than deployment. Do you think that it would be a good idea to expend map_dep to also display information by location?

@damianooldoni
Copy link
Member

Indeed, this is something some colleagues/users at INBO are suggesting as well. Thanks @Rafnuss for mentioning it in a issue.

What if lat/lon is not the same for all deployments at the same location? Some options:

  1. Use the coordinates of the centroid: it means loading sf package as dependency to calculate it, not really a very big fan of doing so.
  2. Use the coordinate of the first deployment. Why the first one? Just easier...

In both cases, I think we should return a warning if such situation occurs.

@Rafnuss, @MartijnUH, @jimcasaer: any thoughts about it?

@Rafnuss
Copy link
Collaborator Author

Rafnuss commented Jan 6, 2025

Is it allow to have different lat, lon for the same locationID? Seems like this should not be allow at all (hence warning seems appropriate). Why would you need sf for a centroid? Average lat and average lon should do the job? I would actually prefer a median such that the location actually corresponds to one possibility rather than somewhere in the middler of nowhere or in case of outlier position.

@jimcasaer
Copy link
Collaborator

When cameras are replaced in the same grid of the monitoring frame they sometimes have the same locationname and therefore the same locationID, however the coordinates can change. Until now we each time gave a new locationname if the coordinates were not exactly the same and subsequently deduced the gridcell from the locationname. E.G locationname == Gridcel_array_year

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants