<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Chad,<br>
    <br>
    Thanks for the tips.&nbsp; I think we can work with the new service with
    the fdsnws/station<b> matchtimeseries</b> parameter and text format,
    I will check when I continue developments after a vacation next
    week...<br>
    <br>
    We are using text output already, but in our schools availability
    web service this returns exactly the query parameters one needs to
    make a subsequent timeseries request, for example:<br>
    <a
href="http://namazu.unice.fr/ws/availability/query?&amp;starttime=2013-02-01T10:09:49&amp;endtime=2013-02-03T10:09:49&amp;sta=CIVF&amp;cha=BH*"
      +="" target="_blank">http://namazu.unice.fr/ws/availability/query?&amp;starttime=2013-02-01T10:09:49&amp;endtime=2013-02-03T10:09:49&amp;sta=CIVF&amp;cha=BH*</a><br>
    <br>
    the reply to which allows easy construction of:<br>
<a class="moz-txt-link-freetext" href="http://namazu.unice.fr/ws/timeseries/query?&amp;sta=CIVF&amp;cha=BHZ&amp;start=2013-02-02T11:34:00.000&amp;end=2013-02-02T11:34:00.000&amp;output=plot">http://namazu.unice.fr/ws/timeseries/query?&amp;sta=CIVF&amp;cha=BHZ&amp;start=2013-02-02T11:34:00.000&amp;end=2013-02-02T11:34:00.000&amp;output=plot</a><br>
    <br>
    I am not sure if we will continue with this behaviour since it is
    not standard IRIS WS, but maybe keep it as an additional output
    type, e.g. output=tsquery, when we roll our availability service
    into fdsnws/station.<br>
    <br>
    Thanks,<br>
    <br>
    Anthony<br>
    <br>
    <div class="moz-cite-prefix">On 2013/07/03 18:51, Chad Trabant
      wrote:<br>
    </div>
    <blockquote
      cite="mid:27DC9DA0-815C-4BA8-AC60-A201DC91F477@iris.washington.edu"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <div><br>
      </div>
      <div>Hi Anthony,</div>
      <div><br>
      </div>
      <div>In the background the same "extent" (earliest and latest
        data) information is used by both services, the availability
        service simply trims it down to your request time window. &nbsp;It is
        important to note that this does not mean that time series are
        guaranteed to exist in that window (there could be gaps that are
        not represented in our quick-to-query extent information). &nbsp;We
        are looking towards being able to provide more granular data
        coverage information, it is a challenging problem.</div>
      <div><br>
      </div>
      <div>If you only want to match your request window to the
        availability times our fdsnws-station service will already do
        that for you. &nbsp;The <b>matchtimeseries</b> parameter limits
        results to channels where the availability intersects with your
        starttime and endtime selection. &nbsp;In short, add
        matchtimeseries=true to your request and you do not need to do
        your own availability checking.</div>
      <div><br>
      </div>
      <div>Regarding the response size, unless you really like XML or
        need the details included in that format you might consider
        using the text output (format=text) which is much more compact
        and easily parsed:</div>
      <div><br>
      </div>
      <div><a moz-do-not-send="true"
href="http://service.iris.edu/fdsnws/station/1/query?starttime=2013-01-01T00:00:00&amp;endtime=2013-01-01T01:00:00&amp;sta=CMB&amp;cha=BHZ&amp;level=channel&amp;matchtimeseries=true&amp;format=text">http://service.iris.edu/fdsnws/station/1/query?starttime=2013-01-01T00:00:00&amp;endtime=2013-01-01T01:00:00&amp;sta=CMB&amp;cha=BHZ&amp;level=channel&amp;matchtimeseries=true&amp;format=text</a></div>
      <div><br>
      </div>
      <div>best regards,</div>
      <div>Chad</div>
      <div><br>
      </div>
      <br>
      <div>
        <div>On Jul 3, 2013, at 12:46 AM, Anthony Lomax &lt;<a
            moz-do-not-send="true" href="mailto:alomax@free.fr">alomax@free.fr</a>&gt;
          wrote:</div>
        <br class="Apple-interchange-newline">
        <blockquote type="cite">
          <meta content="text/html; charset=ISO-8859-1"
            http-equiv="Content-Type">
          <div text="#000000" bgcolor="#FFFFFF"> Hello,<br>
            <br>
            The European High Schools are using directly the
            <meta http-equiv="content-type" content="text/html;
              charset=ISO-8859-1">
            IRIS DMC Web Services for data hosted at IRIS and local
            implementations of a subset of these services for other
            data.<br>
            <br>
            One local tool we have developed uses an iris type
            availability ws to check for data available around the
            origin time of an earthquake for a list of
            networks/stations.&nbsp; The old iris availability service
            (deprecated) returns a compact response (even in XML!) for
            such a request, e.g.<br>
            <blockquote><a moz-do-not-send="true"
                class="moz-txt-link-freetext"
href="http://www.iris.edu/ws/availability/query?&amp;starttime=2013-01-01T00:00:00&amp;endtime=2013-01-01T01:00:00&amp;sta=CMB&amp;cha=BHZ&amp;output=xml">http://www.iris.edu/ws/availability/query?&amp;starttime=2013-01-01T00:00:00&amp;endtime=2013-01-01T01:00:00&amp;sta=CMB&amp;cha=BHZ&amp;output=xml</a><br>
            </blockquote>
            <blockquote>&lt;StaMessage&gt;&lt;Source&gt;IRIS-DMC&lt;/Source&gt;&lt;SentDate&gt;2013-07-03T07:31:57&lt;/SentDate&gt;&lt;Station

              net_code="BK"
              sta_code="CMB"&gt;&lt;Lat&gt;38.03455&lt;/Lat&gt;&lt;Lon&gt;-120.38651&lt;/Lon&gt;&lt;Elevation&gt;697.0&lt;/Elevation&gt;&lt;Channel

              chan_code="BHZ" loc_code="00"&gt;<br>
              &lt;Availability&gt;&lt;Extent start="2013-01-01T00:00:00"
              end="2013-01-01T01:00:00"/&gt;&lt;/Availability&gt;<br>
              &lt;/Channel&gt;&lt;/Station&gt;&lt;/StaMessage&gt;<br>
            </blockquote>
            while the replacement , e.g.<br>
            <blockquote><a moz-do-not-send="true"
href="http://service.iris.edu/fdsnws/station/1/query?starttime=2013-01-01T00:00:00&amp;endtime=2013-01-01T01:00:00&amp;sta=CMB&amp;cha=BHZ&amp;level=channel&amp;includeavailability=true">service.iris.edu/fdsnws/station/1/query?starttime=2013-01-01T00:00:00&amp;endtime=2013-01-01T01:00:00&amp;sta=CMB&amp;cha=BHZ&amp;level=channel&amp;includeavailability=true</a><br>
            </blockquote>
            returns a monster response (attached!) including:<br>
            <blockquote>&lt;DataAvailability&gt;&lt;Extent
              start="2010-12-17T19:52:43"
              end="2013-07-02T12:00:00"/&gt;&lt;/DataAvailability&gt;<br>
            </blockquote>
            Note that besides the huge size of the response (we need to
            make multiple requests for a list of stations), the
            &lt;DataAvailability&gt;&lt;Extent in the two responses are
            different - the first confirms a data window within our
            requested time span (exactly the response we want), while
            the second seems to present to total time of data available,
            which we would have to further process to confirm that our
            time window of interest is available.<br>
            <br>
            Is all of the above behaviour and the differences between
            the two responses correct?&nbsp; Is there any way or any plans to
            get the more compact, old-style availability response?<br>
            <br>
            Thanks,<br>
            <br>
            Best regards to all,<br>
            <br>
            Anthony<br>
            <br>
            <div class="moz-signature">-- <br>
              Sent from my iClayTablet <br>
              <br>
              <hr style="position:absolute; left:0px; width:70%;"> <br>
              &nbsp;&nbsp; <b style="color:darkred; font-size:larger">Anthony
                Lomax</b> <br>
              &nbsp;&nbsp; <b style="color:dimgray;">161 All&eacute;e du Micocoulier,
                06370 Mouans-Sartoux, France</b> <br>
              &nbsp;&nbsp; <b style="color:dimgray;"> tel: +33 (0)4 93 75 25 02
                &nbsp;&nbsp; e-mail: <a moz-do-not-send="true"
                  href="mailto:anthony@alomax.net">anthony@alomax.net</a>
                &nbsp;&nbsp; web: <a moz-do-not-send="true"
                  href="http://www.alomax.net/">http://www.alomax.net</a>
              </b> <br>
              <br>
              &nbsp;&nbsp; <b style="color:darkgreen;">Science &amp; Special
                Topics: </b> <b style="color:dimgray;"><a
                  moz-do-not-send="true"
                  href="http://www.alomax.net/science">http://www.alomax.net/science</a></b>
              <br>
              &nbsp;&nbsp; <b style="color:darkgreen;">Software: </b> <b
                style="color:dimgray;"><a moz-do-not-send="true"
                  href="http://www.alomax.net/software">http://www.alomax.net/software</a></b>
              <b style="color:darkgreen;"> - updates: </b> <b
                style="color:dimgray;"><a moz-do-not-send="true"
                  href="https://twitter.com/ALomaxNet">https://twitter.com/ALomaxNet</a></b>
              <br>
              <hr style="position:absolute; left:0px; width:50%;"> </div>
          </div>
          <span>&lt;fdsnws-station_2013-07-03T07_33_01.xml&gt;</span>_______________________________________________<br>
          webservices mailing list<br>
          <a moz-do-not-send="true"
            href="mailto:webservices@iris.washington.edu">webservices@iris.washington.edu</a><br>
          <a class="moz-txt-link-freetext" href="http://www.iris.washington.edu/mailman/listinfo/webservices">http://www.iris.washington.edu/mailman/listinfo/webservices</a><br>
        </blockquote>
      </div>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
webservices mailing list
<a class="moz-txt-link-abbreviated" href="mailto:webservices@iris.washington.edu">webservices@iris.washington.edu</a>
<a class="moz-txt-link-freetext" href="http://www.iris.washington.edu/mailman/listinfo/webservices">http://www.iris.washington.edu/mailman/listinfo/webservices</a>
</pre>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      Sent from my iClayTablet <br>
      <br>
      <hr style="position:absolute; left:0px; width:70%;"> <br>
      &nbsp;&nbsp; <b style="color:darkred; font-size:larger">Anthony Lomax</b> <br>
      &nbsp;&nbsp; <b style="color:dimgray;">161 All&eacute;e du Micocoulier, 06370
        Mouans-Sartoux, France</b> <br>
      &nbsp;&nbsp; <b style="color:dimgray;"> tel: +33 (0)4 93 75 25 02 &nbsp;&nbsp;
        e-mail: <a href="mailto:anthony@alomax.net">anthony@alomax.net</a>
        &nbsp;&nbsp; web: <a href="http://www.alomax.net/">http://www.alomax.net</a>
      </b> <br>
      <br>
      &nbsp;&nbsp; <b style="color:darkgreen;">Science &amp; Special Topics: </b>
      <b style="color:dimgray;"><a href="http://www.alomax.net/science">http://www.alomax.net/science</a></b>
      <br>
      &nbsp;&nbsp; <b style="color:darkgreen;">Software: </b> <b
        style="color:dimgray;"><a href="http://www.alomax.net/software">http://www.alomax.net/software</a></b>
      <b style="color:darkgreen;"> - updates: </b> <b
        style="color:dimgray;"><a href="https://twitter.com/ALomaxNet">https://twitter.com/ALomaxNet</a></b>
      <br>
      <hr style="position:absolute; left:0px; width:50%;"> </div>
  </body>
</html>