-
Notifications
You must be signed in to change notification settings - Fork 41
libcomcat search function does not return same results as web API #230
Copy link
Copy link
Open
Labels
Description
Describe the bug
Using the libcomcat search function for events that occurred from the year 1600 to 1900 of magnitude 6.0 or greater returns exactly 1 result. However, the web API query with the same parameters returns 101 events.
To Reproduce
Steps to reproduce the behavior:
- Go to https://earthquake.usgs.gov/fdsnws/event/1/query?format=xml&starttime=1600-01-01&endtime=1900-01-01&minmagnitude=6 . The XML file returns 101 event entries
- import the libcomcat search function and run the following code:
summary_events = search(starttime=datetime(1600, 1, 1),
endtime=datetime(1900, 1, 1),
minmagnitude=6.0) - See error python returns
time location ... longitude magnitude
0 1868-04-04 10:57:00 Maui region, Hawaii ... -156.5 6.5
[1 rows x 6 columns]
while web query shows 101 events
Expected behavior
I expected the libcomcat search function to return the same results as the webquery.
Screenshots
Not applicable
Environmnet (please complete the following information):
- OS: Windows
- Python Version: 3.8
- Libcomcat Version 2.0.5
- Numpy Version 1.19.1
Additional context
None
Reactions are currently unavailable