robertdenton / cascadiaquakes

MIT License
0 stars 0 forks source link

Figure out how to geolocate only cascadia quakes #1

Closed robertdenton closed 7 years ago

robertdenton commented 7 years ago

USGS gives feed of all quakes like so:

https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_hour.geojson OR https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_day.geojson

More info

Nest to see if events are near CSZ. +/- 100 miles from coast from BC to CA? Might need to ask an expert about this.

Are there arguments to add to the JSON call? That seems resource-heavy on their side. Might just want to do it on my end.

robertdenton commented 7 years ago

49.6, -128.8 - top left | 49.6, -121.3 - top right 40.6, -128.8 - bot left | 40.6, -121.3 - bot right

See Google Map

screen shot 2017-03-05 at 9 26 00 pm

Going off of maps in this National Science Foundation informational packet and I eye-balled it with just north of border to just south of Eureka, CA. Just west of Vancouver Island and about as far east as Bend.

robertdenton commented 7 years ago
if (quakeid not in old):
    # These could be interpreted as ints or floats, should standardize as float
    newlon   = float(exact[0])
    newlat   = float(exact[1])
    newdepth = float(exact[2])
    # See: https://github.com/robertdenton/cascadiaquakes/issues/
    # and (40.6 < newlat < 49.6)
    if (-128.8 < newlon < -121.3) and (40.6 < newlat < 49.6):
        logger.debug("{0}, {1}: CASCADIA!!!".format(newlon, newlat))

Closing