02 de junio de 2022

Python script that counts the number of photos a user has uploaded.

I've often been curious about how many photos I've uploaded and how many photos I take per observation. There is no way to do that through the website, so I used python, iNat API, JSON, and a dozens of small tips from people on stackoverflow to make that happen. The python script works well for any user with less than 10,000 observations. Any user with over that number is limited to stats for just the most recent 10,000 observations. It's not efficient code, but if you want to look anyone's photography habits, try out this code:

https://github.com/AlexanderAbair/iNaturalist_user_photo_stat_generator/blob/main/iNaturalist_user_photo_count.py

Ingresado el 02 de junio de 2022 por alex_abair alex_abair | 0 comentarios | Deja un comentario

29 de diciembre de 2020

URL strings useful for IDing.

I recently ran out of IDs to make on curatorial projects that I've been working on. I'd gone through all 12k observations in my Florida Mint Monitoring Project, and I figured I'd seen all of the Florida mint observations available on iNat.

But then I was thinking about all the mint observations that were stuck in "Dicot" ID limbo. Those observations tend to be stuck at a high level ID for a long time (sometimes even years). After reading this post by @tiwane et al. in the iNat forum, I learned about a whole bunch of useful url string tools. The following url allowed me to search for Florida observations that had at least one ID as something in Lamiaceae but had consensus IDs that were anything but Lamiaceae:

https://www.inaturalist.org/observations/identify?ident_taxon_id=48623&place_id=21&without_taxon_id=48623

The "ident_taxon_id=" and "without_taxon_id=" strings opened up a big set of great mint observations that were just waiting to be nudged towards the correct ID. I'm writing this post in case you're in a similar boat with your organisms and are looking for a way to find those hidden observations. Check out the rest of the useful url strings here.

Ingresado el 29 de diciembre de 2020 por alex_abair alex_abair | 6 comentarios | Deja un comentario

Archivos