<div dir="ltr"><div><div><div><br></div>Fair enough. In fact the only reason I am asking about it is because of the dynamic nature of the PDE &quot;catalog&quot; or &quot;catalogs&quot; and the fact that the W dissappears once the M comes out. In some sense asking for &quot;only the PDE-W&quot; is kind of weird in that the result you get back today might dissappear tomorrow, and yet the notion of wanting locations that are of &quot;from teh NEIC and at least PDE-W quality&quot; (whatever that means) seems natural as a seismologist. Not sure if you want to go there, but I wonder if contributor=PDE_W should really mean &quot;PDE-W or better&quot; in the sense that the Monthly is the replacement for the W and so asking or the W should include M if the time range overlaps both. And PDE-Q would mean PDE-Q and PDE-W and PDE-M. Just an idea.<br>
<br></div>It is really too bad that web service query params and/or quakeml can&#39;t cleanly deal with the notion of a dynamic catalog that becomes &quot;better&quot; in stages over time. The old static notion of a fixed catalog doesn&#39;t really match and similarly the exact match catalog/contributor query params seems to slightly miss as well.<br>
<br></div>Not really sure I have an answer, and simply sending two queries seems a reasonable work around.<br><div><div><br></div><div>Understand your point about 400 vs 404. You have to draw the line somewhere. I guess catalog/contributor seem to both be short enough and static enough of a list. Maybe rule of thumb should be if you list the possible options in the documentation, then check and 400, otherwise 404. Not a big deal.<br>
<br></div><div>Philip<br></div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 14, 2013 at 5:24 PM, Chad Trabant <span dir="ltr">&lt;<a href="mailto:chad@iris.washington.edu" target="_blank">chad@iris.washington.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><br></div><div>Hi Philip,</div><div><br></div><div>No, there is no way to select via a list of contributors.  This is also not part of the specification for the FDSN version of the service, and it&#39;s not an extension we plan on offering unless a more people ask for it (a comma-separated list would also mean comma&#39;s are disallowed in a contributor string, not really a big deal but a consequence to consider).  Honestly, the use case is pretty narrow and something like your suggestion of making two separate queries is probably more appropriate.</div>
<div><br></div><div>As for returning a 400 or 404, we will think on that a bit.  I think I understand your logic (the list of contributors is know and it could be checked), but I could extend that argument to networks, stations, locations, channels and perhaps more.  Should we return a 400 when a network is requested that we have no data for?  Or do we return &quot;no data&quot; (404 in the case of this service).</div>
<div><br></div><div>Chad</div><div><div class="h5"><div><br></div><div><br></div><div>On Mar 14, 2013, at 12:05 PM, Philip Crotwell &lt;<a href="mailto:crotwell@seis.sc.edu" target="_blank">crotwell@seis.sc.edu</a>&gt; wrote:</div>
</div></div><div><br><blockquote type="cite"><div><div class="h5"><div dir="ltr"><div><div><div><div><div>Is there a way in the event service to query for events that are in the NEIC PDE-W or NEIC PDE-M but not get events that only occur in the NEIC PDE-Q or NEIC ALERT? In other words, I want to process using the weekly or the monthly, but I don&#39;t want to use the Q or the ALERT.  <br>

</div><br></div>Some time ago I was told that you cannot specify more than one contributor, which seems to be the case as this query returns no data. So, my guess is that I need to do this as 2 separate queries and merge the results locally if both return data?<br>

<br><a href="http://www.iris.edu/ws/event/query?starttime=2010-10-27T06:30:00&amp;endtime=2011-10-01T06:30:00&amp;minmag=7&amp;contributor=NEIC+PDE-M,NEIC+PDE-W&amp;orderby=time&amp;output=xml" target="_blank">http://www.iris.edu/ws/event/query?starttime=2010-10-27T06:30:00&amp;endtime=2011-10-01T06:30:00&amp;minmag=7&amp;contributor=NEIC+PDE-M,NEIC+PDE-W&amp;orderby=time&amp;output=xml</a><br>

<br></div>Also, if you are not going to accept multiple contributors or catalogs, it might be good to cause an 400 error on this query instead of a 404. You do checking on some other fields like orderby and output, so might as well check catalog and contributor.<br>

<br></div><div>In other words this query gives a 404 but probably should give a 400.<br><br><a href="http://www.iris.edu/ws/event/query?starttime=2010-10-27T06:30:00&amp;endtime=2011-10-01T06:30:00&amp;minmag=7&amp;contributor=BLAH&amp;orderby=time&amp;output=xml" target="_blank">http://www.iris.edu/ws/event/query?starttime=2010-10-27T06:30:00&amp;endtime=2011-10-01T06:30:00&amp;minmag=7&amp;contributor=BLAH&amp;orderby=time&amp;output=xml</a><br>

<br>Similar for this one.<br><br><a href="http://www.iris.edu/ws/event/query?starttime=2010-10-27T06:30:00&amp;endtime=2011-10-01T06:30:00&amp;minmag=7&amp;catalog=BLAH&amp;orderby=time&amp;output=xml" target="_blank">http://www.iris.edu/ws/event/query?starttime=2010-10-27T06:30:00&amp;endtime=2011-10-01T06:30:00&amp;minmag=7&amp;catalog=BLAH&amp;orderby=time&amp;output=xml</a><br>

</div><div><br></div>thanks,<br></div>Philip<br>
</div></div></div>
_______________________________________________<br>webservices mailing list<br><a href="mailto:webservices@iris.washington.edu" target="_blank">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>
</blockquote></div><br></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>