Closed markuhen closed 6 years ago
Looking at a download of Cenomanian data, it looks like the number the Navigator is reporting as the number of total collections is very close to that which the downloader reports for the number of occurrences. The number of occurrences reported by Navigator seems WAY too high.
This might be a recurrence of #57.
Investigating a potential error in computing the summary statistics in the data service. Navigator also appears to be making two identical calls to data1.2/colls
Using the API route that Navigator uses to filter by time, I was able to replicate this issue.
If you sum occurrences from this api route - https://paleobiodb.org/data1.2/colls/summary.json?lngmin=-180&lngmax=180&latmin=-90&latmax=90&show=time&level=3&interval_id=117 you get 147,355
So is this a Navigator issue, or is the API returning occurrence counts incorrectly?
Fixed. Rewrote interval filter logic in generateMainFilters().
When using the PBDB Explorer and filtering on the Cenomanian stage, the system displays an occurrence count of 144395. When using the diversity end-point, a value of 20216 is returned for number of occurrences.
API Link: https://paleobiodb.org/data1.2/occs/diversity.json?interval=mesozoic&base_name=life
Screenshots: