Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libcomcat search function does not return same results as web API #230

Open
good-kiwi opened this issue Jul 24, 2020 · 0 comments
Open

libcomcat search function does not return same results as web API #230

good-kiwi opened this issue Jul 24, 2020 · 0 comments
Labels

Comments

@good-kiwi
Copy link

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:

  1. 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
  2. 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)
  3. 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

@good-kiwi good-kiwi added the bug label Jul 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant