Occurrence Inventories https://www.gbif.org/developer/occurrence support only a few properties: basisOfRecord, year, datasets, countries and publishingCountry.
I suggest to add
/occurrence/counts/monthOfYear /occurrence/counts/dayOfYear
These would be useful for creating fligh-period charts.
Regards,
Adriaan van Os
Hi Adriaan,
On 12/01/2019 10:32, Adriaan van Os wrote:
Occurrence Inventories https://www.gbif.org/developer/occurrence support only a few properties: basisOfRecord, year, datasets, countries and publishingCountry.
I suggest to add
/occurrence/counts/monthOfYear /occurrence/counts/dayOfYear
These would be useful for creating fligh-period charts.
The documentation isn't particularly clear, but you can create the month chart using the search + facet API:
https://api.gbif.org/v1/occurrence/search?facet=month&facetLimit=12&...
dayOfYear isn't supported, I've recorded the suggestion here: https://github.com/gbif/occurrence/issues/88
Thanks!
Matthew
Matthew Blissett wrote:
The documentation isn't particularly clear, but you can create the month chart using the search + facet API:
Yes, a GBIF API Wiki or some more examples would be helpful,
https://api.gbif.org/v1/occurrence/search?facet=month&facetLimit=12&...
Great, thanks !
Regards,
Adriaan van Os
Matthew Blissett wrote:
The documentation isn't particularly clear, but you can create the month chart using the search + facet API:
https://api.gbif.org/v1/occurrence/search?facet=month&facetLimit=12&...
As an example, I looked at the flight time of Nymphalis antiopa, which is known to be around April-May and August-September. The GBIF Occurrences per Month chart https://www.gbif.org/occurrence/charts?has_coordinate=true&has_geospatial_issue=false&taxon_key=5130682 shows a lot of occurrences in January. I tracked these down to Finish datasets with eventDate January 01 at 00:00 but for a valid year.
In other words, these are year-only dates, spoiling the Occurrences per Month chart. How do I filter them out ? Is teventDate given in one or multiple database fields, with possble NULL values ? A work-around would be to give them month number 0.
Regards,
Adriaan van Os
On 26/01/2019 12:19, Adriaan van Os wrote:
Matthew Blissett wrote:
The documentation isn't particularly clear, but you can create the month chart using the search + facet API:
https://api.gbif.org/v1/occurrence/search?facet=month&facetLimit=12&...
As an example, I looked at the flight time of Nymphalis antiopa, which is known to be around April-May and August-September. The GBIF Occurrences per Month chart https://www.gbif.org/occurrence/charts?has_coordinate=true&has_geospatial_issue=false&taxon_key=5130682 shows a lot of occurrences in January. I tracked these down to Finish datasets with eventDate January 01 at 00:00 but for a valid year.
This is an unfortunate limitation of our current system. We're working on an improvement as part of a larger effort to update our occurrence indexing, but for the moment month-only or year-only dates are indexed as the first of the month/year. We don't add an issue flag to these dates, but even if we did, another limitation of the API is it's not possible to exclude issues in the fast searches or charts.
We can't set an event date of e.g. 2016-00-00, as that's not a valid ISO format date, but we can look at leaving the "month" and "day" fields empty.
Regards,
Matt
participants (2)
-
Adriaan van Os
-
Matthew Blissett