Visiting Organisms...


I changed an existing GitHub script to provide links to organisms found visiting or nectaring at plants in a given project. The code relies on the "Plant that the organism was found on" and "Nectar Plant" observation fields.

So for Goldenrods, the URL would look like this for the umbrella...
https://stockslager.github.io/iNat/visiting_my_project.html?project_id=cincinnati-re-wild-backyard-ecological-restoration-umbrella&per_page=30&page=1&taxon_id=48678

Clicking the appropriate links in the table would show the organisms found visiting / nectaring at the different species of Solidago planted across all projects within the umbrella (you can also pass it your individual project in place of the umbrella).

If you don't pass it a taxon_id, it will show every species with an iconic_taxa of "Plantae" within the umbrella and links to any organisms found visiting or nectaring at those species.
https://stockslager.github.io/iNat/visiting_my_project.html?project_id=cincinnati-re-wild-backyard-ecological-restoration-umbrella&per_page=30&page=1


Posted on October 21, 2024 08:43 PM by stockslager stockslager

Comments

Fun search. Since most of the goldenrods bloom around the same time and provide similar ecological services, setting the search to pull all the results for the genus, rather than individual species, might be more informative, though I'm not sure that the observation fields will allow a search to be broadened that way.

Posted by m_whitson about 15 hours ago

I'm not sure that's possible... I don't think you can do a server side "join" on observation fields since they're user defined. Maybe you could spin through arrays on the client side (do an external join) but it seems like it would take "hard coding" or somewhat sophisticated logic that I am no longer capable of! :o)

Posted by stockslager about 15 hours ago

Add a Comment

Sign In or Sign Up to add comments