usgs / libcomcat

Library of functions and wrapper scripts for accessing ANSS ComCat server data
Other
71 stars 41 forks source link

Getting magnitudes is incomplete #260

Open hschovanec-usgs opened 2 years ago

hschovanec-usgs commented 2 years ago

Describe the bug Some events have more origin products than phase-data products. This means that the if/else statement may artificially limit the number of magnitudes: https://github.com/usgs/libcomcat/blob/d24ff0373f6037940efbbfb8149673321703f8ae/libcomcat/classes.py#L677-L680

To Reproduce See Tohoku as an example: https://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson&eventid=official20110311054624120_30

There are 2 quakemls for phase-data, but 5 quakemls for origin