<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 Philip,</div><div><br></div><div>The starttime and endtime parameters (and before/after variants) are all applied to channel epoch times. &nbsp;So even when requesting, for example, metadata at the station level, it is the channels that are used to identify which station epochs to return. &nbsp;The documentation has been updated to reflect that, thanks for pointing out the error.</div><div><br></div><div>We had sketched out an idea where the time limit parameters are applied to various level metadata based on which NSLC parameters are supplied. &nbsp;This idea was left in the docs and not removed (it has been now). &nbsp;In practice we figured it would be more confusing than it's worth. &nbsp;With our current implementation we return the "right" thing the vast majority of the time anyway.</div><div><br></div><div>Hopefully that clarifies the responses you were receiving from the service.</div><div><br></div><div>Chad</div><div><br></div><div><div>On May 3, 2013, at 2:39 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><br>Just to make sure I am doing this correctly...<br><br>If I have a known channel start time, say 1995-03-21T17:16:00, then to limit the returned xml to be just the response for that single channel I should use endafter and endtime like this:<br>
<a href="http://service.iris.edu/fdsnws/station/1/query?network=IU&amp;sta=ANMO&amp;loc=--&amp;cha=BHZ&amp;endafter=1995-03-21T17:16:00&amp;endtime=1995-03-21T17:16:00&amp;level=response&amp;nodata=404">http://service.iris.edu/fdsnws/station/1/query?network=IU&amp;sta=ANMO&amp;loc=--&amp;cha=BHZ&amp;endafter=1995-03-21T17:16:00&amp;endtime=1995-03-21T17:16:00&amp;level=response&amp;nodata=404</a><br>
<br>In contrast, if I use starttime andendtime like this:<br><a href="http://service.iris.edu/fdsnws/station/1/query?network=IU&amp;sta=ANMO&amp;loc=--&amp;cha=BHZ&amp;starttime=1995-03-21T17:16:00&amp;endtime=1995-03-21T17:16:00&amp;level=response&amp;nodata=404">http://service.iris.edu/fdsnws/station/1/query?network=IU&amp;sta=ANMO&amp;loc=--&amp;cha=BHZ&amp;starttime=1995-03-21T17:16:00&amp;endtime=1995-03-21T17:16:00&amp;level=response&amp;nodata=404</a><br>
<br>then I get both the channel I want, as well as the one that was operational immediately before the time I am interested in.<br><br>But the docs are confusing as they say that:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; startbefore, endbefore, startafter, endafter<br>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; These criteria are applied at the station level, regardless of which level is requested or which channel, network, location,&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; station filters are used.<br><br>Which I think means that my above query should not work, even though it does seem to, as the time restriction I am trying for is on the channel times and there was one station operating over this time that had 5 channels, but both of my above queries return fewer (one or two).<br>
<br>The fdsn ws specification doesn't make the way time params are interpreted very clear as it only says that these 4 times "Limit to metadata epochs...", but does not say they are limited to the station or in fact what they are applied to. I am guessing that the iris docs are wrong, but the fdsn spec also seems incomplete.<br>
</div><div><br>The other confusing thing to me is that the iris docs talk about how the time criteria apply based on whether there is a channel or location or station parameter and ignores the level parameter, but i dont' see any similar idea in the fdsn spec. Is this an iris implementation detail, or is the spec incomplete? I feel like the most natural way is to have the time criteria apply to the level asked for, but maybe I am missing something. Some experimentation seems to show that the level param is actually what controls the time aspect, but not totally sure.<br>
<br>IMHO, this whole starttime, endtime, startsbefore, endbefore, startsafter, endafter system seems really confusing. All the other systems of querying this type of data in the past have used a simple start/end window, and the "effective times" of the channel-like objects were "half open intervals" that included their begin, but not their end. In math notation, [start, end), meaning if you asked for an interval where the start/end were the same, you got the single channel that you likely wanted. I am not sure the added complexity and non-intuitiveness of these 6 time query parameters is really worth it.<br>
<br>Can someone clarify how all this is supposed to work?<br><br>thanks,<br>Philip</div></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>