<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>Hi,</div><div><br></div><div>Prepare to be surprised.</div><div><br></div><div>Looking at the source of our PDE information there is no magnitude for the event you identified. &nbsp;Here is a link to the PDE for February 2010:</div><div><a href="ftp://hazards.cr.usgs.gov/pde/ehdf201002.dat">ftp://hazards.cr.usgs.gov/pde/ehdf201002.dat</a></div><div><br></div><div>If you find the event line starting "GS  201002132325418733999N117186W" (aka 2013-02-13T23:25:41) you'll see that there is no magnitude information.</div><div><br></div><div>Furthermore, I found the event in the NEIC catalog search and it is listed as a M0.0:</div><div><a href="http://comcat.cr.usgs.gov/earthquakes/eventpage/pde20100213232541870_8#summary">http://comcat.cr.usgs.gov/earthquakes/eventpage/pde20100213232541870_8#summary</a></div><div><br></div><div>Spot checking a few of the other "mystery" events and the story is the same.</div><div><br></div><div>So there are events with no magnitudes.</div><div><br></div><div>Chad</div><div><br></div><br><div><div>On Apr 22, 2013, at 3:51 PM, Philip Crotwell &lt;<a href="mailto:crotwell@seis.sc.edu">crotwell@seis.sc.edu</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div><div><div><br></div>Switching to xml output and adding includeallmagnitudes still shows no magnitudes. For example:<br><a href="http://service.iris.washington.edu/fdsnws/event/1/query?nodata=404&amp;starttime=2010-01-14&amp;endtime=2010-04-15&amp;orderby=magnitude&amp;limit=2500&amp;maxlat=45.33&amp;minlat=18.65&amp;maxlon=-99.14&amp;minlon=-129.72&amp;includeallmagnitudes=true">http://service.iris.washington.edu/fdsnws/event/1/query?nodata=404&amp;starttime=2010-01-14&amp;endtime=2010-04-15&amp;orderby=magnitude&amp;limit=2500&amp;maxlat=45.33&amp;minlat=18.65&amp;maxlon=-99.14&amp;minlon=-129.72&amp;includeallmagnitudes=true</a><br>
<br></div><div>Or directly<br><a href="http://service.iris.edu/fdsnws/event/1/query?eventid=2844489">http://service.iris.edu/fdsnws/event/1/query?eventid=2844489</a><br><br></div>Kind of surprising that a PDE-M event in 2010 would not have a magnitude.<br>
<br></div><div>Hopefully this is a database error, or bad data. It would be nice if clients did not need to be defense about the existence of magnitudes. But maybe you always have to be defensive. :(<br></div><div><br></div>
Philip<br>&nbsp;<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 22, 2013 at 6:07 PM, Russ Welti <span dir="ltr">&lt;<a href="mailto:russ@iris.washington.edu" target="_blank">russ@iris.washington.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto; "><div style="word-wrap:break-word">I am seeing a small, sometimes up to 2%, number of events served up with no mag values.<div>
<br></div><div>This in format=text, if that matters.</div><div><br></div><div>If I use minmag=0 and maxmag=9 and query</div><div><a href="http://service.iris.washington.edu/fdsnws/event/1/query?format=text&amp;nodata=404&amp;minmag=0&amp;maxmag=9&amp;starttime=2010-01-14&amp;endtime=2010-04-15&amp;orderby=magnitude&amp;limit=2500&amp;maxlat=45.33&amp;minlat=18.65&amp;maxlon=-99.14&amp;minlon=-129.72" target="_blank">service.iris.washington.edu/fdsnws/event/1/query?format=text&amp;nodata=404&amp;minmag=0&amp;maxmag=9&amp;starttime=2010-01-14&amp;endtime=2010-04-15&amp;orderby=magnitude&amp;limit=2500&amp;maxlat=45.33&amp;minlat=18.65&amp;maxlon=-99.14&amp;minlon=-129.72</a></div>
<div><br></div><div>...skipping to the last N lines of output: &nbsp;all is good.</div><div><pre style="line-height:normal;text-indent:0px;letter-spacing:normal;text-align:start;font-variant:normal;text-transform:none;font-style:normal;white-space:pre-wrap;word-wrap:break-word;font-weight:normal;word-spacing:0px"></pre><blockquote type="cite"><pre style="line-height:normal;text-indent:0px;letter-spacing:normal;text-align:start;font-variant:normal;text-transform:none;font-style:normal;white-space:pre-wrap;word-wrap:break-word;font-weight:normal;word-spacing:0px">2843778|2010-01-26T04:20:27|37.477|-121.79|7.8|NC|NEIC PDE|NEIC PDE-M||MD|2.0|NC|CENTRAL CALIFORNIA
2843696|2010-01-24T07:30:35|37.86|-121.799|14.3|NC|NEIC PDE|NEIC PDE-M||MD|2.0|NC|CENTRAL CALIFORNIA
2848695|2010-04-11T02:26:49|32.67|-115.887|8.4|PAS|NEIC PDE|NEIC PDE-M||ML|2.0|PAS|CALIF.-BAJA CALIF. BORDER REGION
2843273|2010-01-15T12:36:10|37.57|-121.84|12.0|NC|NEIC PDE|NEIC PDE-M||MD|2.0|NC|CENTRAL CALIFORNIA
2846259|2010-03-08T06:03:14|33.316|-116.376|7.3|PAS|NEIC PDE|NEIC PDE-M||ML|1.9|PAS|SOUTHERN CALIFORNIA
2843226|2010-01-14T15:28:55|33.911|-118.471|10.4|PAS|NEIC PDE|NEIC PDE-M||ML|1.9|PAS|SOUTHERN CALIFORNIA
2848014|2010-04-05T10:02:35|34.031|-117.516|11.4|PAS|NEIC PDE|NEIC PDE-M||ML|1.7|PAS|SOUTHERN CALIFORNIA
2845037|2010-02-27T08:31:52|33.999|-117.181|9.0|PAS|NEIC PDE|NEIC PDE-M||ML|1.5|PAS|SOUTHERN CALIFORNIA</pre></blockquote></div><div><br></div><div>But if I leave mag out entirely from that query</div><div><br></div><div>
<a href="http://service.iris.washington.edu/fdsnws/event/1/query?format=text&amp;nodata=404&amp;starttime=2010-01-14&amp;endtime=2010-04-15&amp;orderby=magnitude&amp;limit=2500&amp;maxlat=45.33&amp;minlat=18.65&amp;maxlon=-99.14&amp;minlon=-129.72" target="_blank">service.iris.washington.edu/fdsnws/event/1/query?format=text&amp;nodata=404&amp;starttime=2010-01-14&amp;endtime=2010-04-15&amp;orderby=magnitude&amp;limit=2500&amp;maxlat=45.33&amp;minlat=18.65&amp;maxlon=-99.14&amp;minlon=-129.72</a></div>
<div><br></div><div>last few lines now include 5 "mystery" events:</div><div><pre style="line-height:normal;text-indent:0px;letter-spacing:normal;text-align:start;font-variant:normal;text-transform:none;font-style:normal;white-space:pre-wrap;word-wrap:break-word;font-weight:normal;word-spacing:0px"></pre><blockquote type="cite"><pre style="line-height:normal;text-indent:0px;letter-spacing:normal;text-align:start;font-variant:normal;text-transform:none;font-style:normal;white-space:pre-wrap;word-wrap:break-word;font-weight:normal;word-spacing:0px">2843226|2010-01-14T15:28:55|33.911|-118.471|10.4|PAS|NEIC PDE|NEIC PDE-M||ML|1.9|PAS|SOUTHERN CALIFORNIA
2848014|2010-04-05T10:02:35|34.031|-117.516|11.4|PAS|NEIC PDE|NEIC PDE-M||ML|1.7|PAS|SOUTHERN CALIFORNIA
2845037|2010-02-27T08:31:52|33.999|-117.181|9.0|PAS|NEIC PDE|NEIC PDE-M||ML|1.5|PAS|SOUTHERN CALIFORNIA
2844574|2010-02-16T09:21:28|34.007|-117.187|8.3|PAS|NEIC PDE|NEIC PDE-M|||||SOUTHERN CALIFORNIA
2848951|2010-04-14T22:59:01|37.39|-121.78|0.0|NC|NEIC PDE|NEIC PDE-M|||||CENTRAL CALIFORNIA
2844821|2010-02-23T05:57:26|38.83|-122.809|1.7|NC|NEIC PDE|NEIC PDE-M|||||NORTHERN CALIFORNIA
2844760|2010-02-21T07:57:56|34.785|-118.927|11.8|PAS|NEIC PDE|NEIC PDE-M|||||SOUTHERN CALIFORNIA
2844489|2010-02-13T23:25:41|33.999|-117.186|8.8|PAS|NEIC PDE|NEIC PDE-M|||||SOUTHERN CALIFORNIA</pre></blockquote><div><br></div></div><div>It affects me some, because when in certain tight loops, say drawing or sorting events, if I can assume they will have some valid magnitude I can keep that loop as fast as possible.</div>
<div><br></div><div>Currently I discard them at fetch time.</div><div><br></div><div>The workaround is of course to always specify a mag range even if it is 0-10, but I wonder if that is the intended side effect of specifying a range vs. not....</div>
<div><br></div><div>No mag range specified, 2 invalid events:</div><div><span>&lt;IRIS Earthquake Browser-18.jpg&gt;</span></div><div><br></div><div>Specify a range 0-10 and the two bad ones are not served:</div>
<div><span>&lt;IRIS Earthquake Browser-19.jpg&gt;</span></div><div><br></div><div><br></div><div><br></div><div>Thanks!</div><span class="HOEnZb"><font color="#888888"><div>Russ</div><div><br></div>
</font></span></div><br>_______________________________________________<br>
webservices mailing list<br>
<a href="mailto:webservices@iris.washington.edu">webservices@iris.washington.edu</a><br>
<a href="http://www.iris.washington.edu/mailman/listinfo/webservices" target="_blank">http://www.iris.washington.edu/mailman/listinfo/webservices</a><br>
<br></blockquote></div><br></div>
_______________________________________________<br>webservices mailing list<br><a href="mailto:webservices@iris.washington.edu">webservices@iris.washington.edu</a><br>http://www.iris.washington.edu/mailman/listinfo/webservices<br></blockquote></div><br></body></html>