In the identify page, is there a way to list only adult males, for example? Using the directions from https://www.inaturalist.org/pages/search+urls, I can show only adults or I can show only males, but I can’t figure out how to show only adult males. This is of course using the Life Stage and Sex annotation values.
Just modify the address in your browser by adding “&term_id=9&term_value_id=1” just after the first “term_id=1&term_value_id=2”. Use proper numbers.
This doesn’t seem to work. What happens as far as I can tell is it ignores the first pair of items (Life Stage) and only filters on sex: https://www.inaturalist.org/observations/identify?place_id=110679&verifiable=true&taxon_id=358855&term_id=9&term_value_id=2&term_id=9&term_value_id=11
you can’t do this in one step in the system. you need to either:
- get the results of two separate queries (one for males, one for adults) and then join the two result sets yourself (match on id and keep only the ones in both sets), or
- get the results of one of the queries, and:
- filter for that set for the second critera on your own, or
- if the first result set is small (maybe less than 500 obs), then get the results of the second crtieria while also applying a filter
&id=[comma-separated list of ids from that first set]
…
based on:
… here’s what i would do:
note that there are only 71 observations for: https://www.inaturalist.org/observations?place_id=110679&verifiable=true&taxon_id=358855&term_id=9&term_value_id=11
that tells me that i can use the last approach above.
so i’ll get the observation ids from:
https://api.inaturalist.org/v1/observations?place_id=110679&verifiable=true&taxon_id=358855&term_id=9&term_value_id=11&only_id=true&per_page=200
As I am a taxonomist but don’t not know too much about informatics, how could I search the taxon “Lachnaia paradoxa” and “male”? thanks
You can also search for observations with a particular annotation in the “Identify” module under “additional filters”.
Thanks, pisum!
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.